0
votes
0answers
2 views

Python 2.7 Powerball Game

This game allows one to either pick their own lottery numbers or have them generated and checks them with the most recent numbers, jackpot, and multiplier. I use concepts such as ...
0
votes
0answers
2 views

Is gathering namespace functions into a map via a macros idiomatic Clojure?

I'm learning Clojure via a pet project. The project would consist of several workers that would be called from other functions. Each worker is defined in their own namespace as a set of functions (...
0
votes
1answer
13 views

Deleting a node in Linked list

For deleting a node in linked list I used 3 steps: 1)Finding the previous node of the node to be deleted. 2)Changing the next of the previous node.(to know what is next see my code it's fully ...
0
votes
0answers
5 views

Arkanoid/Breakout clone with ThreeJS

Here's my attempt at an Arkanoid/Breakout clone using JavaScript with ThreeJS. Let me have it! ...
-3
votes
0answers
7 views

How to fetch value from a field on website

I need to fetch a value from a field from a website which itself needs a username and password for logging in. The website is internetaccount.orange.mu. The value is for 'remaining volume bank'. I ...
-4
votes
0answers
12 views

How to code shuffle-left algorithm?

I am new to programming so this really confuses me. My prof wants us to code this to c. Help me.
2
votes
0answers
11 views

Endless stream: stream a range and return default value if the range is exhausted

Introduction: Motivation Sometimes there is a need to merge N > 1 ranges, and they don't have equal length, but there is a value which can be used in case the range is already exhausted. It is ...
1
vote
0answers
13 views

TypeWriter Javascript effect

I have implemented a Javascript TypeWriter effect for my website. It types out code using the TypeWriter variable by adding each character on and setting a timeout. It then 'deletes' code using text ...
0
votes
0answers
12 views

Set input field value inside an external iframe using jquery or javascript

I am strongly facing iframe problem.I need to set value in other web side's input field.I post my code. already i am checking contentDocument (which return null) and contentWindow not work(which catch ...
3
votes
2answers
19 views

Random quote rotator

On my website, I created like this banner that rotates quotes from an array I made. ...
-1
votes
0answers
12 views

How to vectroize with slice and hstack?

Is there a way to vetorize this with slice and hstack? ...
-1
votes
0answers
10 views

Show past 6 hours weather reort with current time [on hold]

I want to show the weather report of current time and past 6 hours of current time. So, Is it possible?
0
votes
0answers
7 views

Global Map Holder

Global Map Holder - I want to make it more SOLID and DRY There are 2 aims of the packages: First is to provide easy access to 3 csv files: * currencies fix rates (nbp) * programming languages list (...
-2
votes
0answers
10 views

REST API design: do, then undo [on hold]

I am trying to write an api point that changes the status to "suspended" which looks straight forward PATCH /api/artefacts/:id/status {"status": "SUSPENDED"} But ...
2
votes
0answers
17 views

Set positions in a list, keeping tied places then incrementing back to the positions

I have a list of objects which have points and I'm looping through this list to assign the object's position in the list. If the points are tied between multiple objects they share the same position ...
0
votes
1answer
14 views

2D Array HourGlass

My code passed, no problem. But I would like your opinion as to what I could have improved in my code. Unnecessary things, tips, better ways to do the same thing, faster ways, I'm literally open to ...
0
votes
1answer
18 views

Using R to transform Excel files to be combined

I have 50+ excel files that I need to transform (and eventually combine) to use in analyses. I’ve written a code that transforms them into the format I need, but it is extremely slow for files with ...
3
votes
1answer
41 views

Move friendly merge sort - follow-up

This is a follow up to this question. I'm only interested to see if this is implemented correctly for move-only types. ...
1
vote
0answers
9 views

Xamarin Forms with Ninject navigation service

I am new to Xamarin Forms and I have been searching online finding ways to set up navigation in a MVVM fashion. In particular I am designing around a concept I found here. However, I am using Ninject ...
0
votes
0answers
24 views

Excercise from PPP Order class

I did the following two excercise from PPP by Stroustrup: Define an Order class with (customer) name, address, data, and ...
6
votes
4answers
275 views

Add Two Numbers given in Reverse Order from a Linked List

Problem Description You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add ...
-3
votes
0answers
12 views

URL shortener - Symfony 4 [on hold]

Can you make code review of my url shortener written in Symfony 4? The more feedback, the better. https://github.com/selfmadeking/URL-shortener-Symfony-4
1
vote
2answers
41 views

Subset Sums in Java

Given an array of integers, print sums of all subsets in it. Output should be printed in increasing order of sums. Input : arr[] = {2, 3} Output: 0 2 3 5 Input : ...
1
vote
0answers
24 views

Simple single-file PHP login system

This is something that I initially came up with to protect a bunch of scripts on my personal webserver, but am now planning on using with a few public projects too. ...
-6
votes
0answers
20 views

JavaScript: Are there any downsides to omitting semicolons? [on hold]

In some cases I use semicolons (;) and in some cases, not. From time to time I have noticed that you can eventually leave a semi-colon here and then until i reached the point where i removed all of ...
-3
votes
0answers
7 views

in play framework, inserting multiple array of data with diffrent properties in database [on hold]

i want to insert marks of student, meaning that each student have his own marks, and have his id, now i want to insert list of students, each with unique identifications, means in list of student, ...
6
votes
2answers
201 views

Find files by pattern and copy to target location

This is my solution to the Chapter 9 exercise in Automate the Boring Stuff: Selective Copy Write a program that walks through a folder tree and searches for files with a certain file extension ...
-4
votes
0answers
22 views

Letter representing number [on hold]

Hey how can i make a word to convert into numbers? Like if i type 'A' it would return 1 in the innerHTML, B return 2... Dog would return 26, 4+15+7 I will be able to split it and sum the numbers but i ...
-2
votes
0answers
13 views
2
votes
1answer
24 views

Conditional highlighting (Font size colour, size and Bold) using VBA

Note: Question originally asked in SO. Objective of Code In my worksheet I have several columns that need to be compared to other columns. None of these column pairs are contiguous, so it can be ...
10
votes
1answer
44 views

CodeVita challenge: forming the latest valid datetime in a year using some given digits

After answering someone's Code Review question, I decided to tackle a sequel: Given an input consisting of 12 non-decreasing single digits separated by commas, form the latest valid date time in a ...
-4
votes
1answer
65 views

A better way of splitting encoded data; RegEx vs String Operations?

The obvious answer here is to use RegEx for optimisation but I thought someone might like the challenge during their lunch break. The reasons for why I'm decoding these strings would make for a whole ...
2
votes
1answer
61 views

Roslyn analyzer, converted from C# to F#

I'm learning F# and for an exercise, I took a roslyn analyzer in C# and ported it to F#. In the excerpt below the GetParameterInfo function: takes in ...
7
votes
2answers
1k views

CodeFights: Frisbees

Description You and your friends are seizing another summer day, passing around the frisbee in the park. You have the most fun when the game is fair, so as much as possible, you would all like to ...
0
votes
0answers
40 views

Parsing strings to decimals [on hold]

Context I have a Selenium test which asserts certain values are the same throughout the program workflow. There are four values altogether and three of them are always displayed with two decimal ...
2
votes
0answers
23 views

Crypt-arithmetic solver (Brute force) in Python

I'm working on a crypt-arithmetic solver to add two or more numbers. I've used brute-force to find all the permutations. I'm looking forward to improve this algorithm. Kindly review for all the ...
1
vote
0answers
15 views

Closure implementation

I have custom cell of tableview which is used as header as well as normal cell. In custom cell I have this properties ...
1
vote
2answers
41 views

Sort all even numbers in ascending order and then sort all odd numbers in Descending order Java

Given an array of integers (both odd and even), the task is to sort them in such a way that the first part of the array contains odd numbers sorted in descending order, rest portion contains even ...
-2
votes
0answers
29 views

What is OOP and MVC php

I have a Project that consist of an index page that has a modal that has a form: index.php ...
2
votes
2answers
56 views

Scroll text across a fixed width

In an interview, I was asked to write code to produce this output: T TE TES TEST EST ST T The code I wrote was: ...
0
votes
0answers
29 views

Class Module of Table properties, Record Table HeaderName and Column number to dictionary

This code creates a class module that record headers in to a dictionary which then allows for copy and paste data from another file where by the headers match. This helps to create a more dynamic ...
-4
votes
0answers
34 views
3
votes
1answer
51 views

Housing a summary of information in a data file

So far it is working great, but I was wondering if I could optimize a little since I have nearly 30 variables in code of only 100 lines. Since I'm not a coder, I code based on how I would be doing ...
2
votes
0answers
21 views

Pytest fixture for testing a vertex-parsing function

I have just started using pytest and I am still getting used to how they do things. It seems like fixtures are at the core of the library, and that they can be used for making small pieces of dummy ...
1
vote
2answers
46 views

Codility's BinaryGap: Hardware-aware answer [on hold]

This is a well-known question, which some others have posted about on this site. Here's my first shot following a state machine approach: ...
3
votes
2answers
83 views

Find smallest sum of squares to make a number

Leetcode problem 279 “Perfect Squares” is: Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) I wrote the following solution: ...
1
vote
0answers
20 views

Concurrent hash map implementation with Go's channels

I've implemented a concurrent hash map in Go. I'm fairly new to this language as I have mostly Python background so I'm looking for suggestions how to improve my code. I've ran the tests with ...
5
votes
2answers
261 views

Vowel Counter 2000

Today I present to you a program that: Identifies vowels and their total number Prints each vowel's numeric value Adds the numeric value of each vowel found Prints which letters are NOT vowels If ...
2
votes
1answer
55 views

Interview Take Home Challenge: Chat server

Recent take-home challenge I was assigned from a recruiter prior to technical interviews with the team. The team wanted it written in GOlang (I had no experience in the language) but told the ...

15 30 50 per page