instruction
stringlengths
71
71.9k
I just went through a very easy online example creating a Rock-Paper-Scissors game, but it seemed like it was not a great use of computing power. It seemed like I was writing out results for every possible outcome instead of declaring properties or attributes for variables that will dictate the results depending on the...
I am dealing with a scenario where I get data in the following form: var data = { 'user.name': 'renatoargh', 'user.age': 27, 'user.interests.0.description': 'coding', 'user.interests.0.receiveNotifications': true, 'user.interests.1.description': 'bungee jumping', 'user.interests.1.receiveNotific...
I'm trying to wrap my head around OOP but so far I feel like I'm just moving functions into classes and calling them methods. I am trying to create a "Rock Paper Scissors" game using OOP best practices. Yesterday I asked someone to review this code and was told that my use of OOP was akin to being handed an electric d...
Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz” It seems that we're shooting for one fizzbuzz question for each language. I'm sick of...
I am trying to implement a IDP initiated Single Sign On Solution (service similar to onelogin's) to Cloud based Service providers such as Google Apps, Salesforce etc. The project is a Maven eclipse project (Web app) and the main servlet which consumes SAML Request sent via HTTP-GET / HTTP-POST and generates a valid SA...
I'm trying to simplify this code. It seems everything runs as it should; however, when in the refresh loop from iMacro, it seems a little inefficient and can take up to 7 seconds to fully execute (it seems to keep looping before actually running the next step). As you can probably figure, it's an iMacros bot coded in J...
This is a single class and dependency free1 unit test framework for Java. The only assertion available is assertTrue (this can be used for all test cases). (Utilizes feature of Java7 : Multi catch) What it does Execute all methods with annotation Test. should fail if any arguments are needed. Calculate elapsed time u...
I have two implementations of the same function. Which of these is easier to understand? Code sample A function makeRectanglePoint(box, index){ var boxToUse; function randomPoint(a, b){ return Math.random() * Math.abs(a - b) + Math.min(b, a) } if(index % 2){ boxToUse = box.p1 } else { boxToUs...
Below is my answer to the Google Code Jam's answer to the Store Credit. As usual the code run's perfectly well, however, my credit_pos function gives a warning when returning the temp array.. You receive a credit C at a local store and would like to buy two items. You first walk through the store and create a list L...
I've decided to try and start programming using Object-Oriented-Programming, so I built a small terrain generator that could be done using something as simple as this: import random for _ in range(1000): print random.choice('*#~o'), Instead, I decided to have a go at OOP and made it like this instead: # Terrain ge...
This is my first time writing async code, I intend to inject the interface IConnection into other classes in my project. Can you please tell me if the implementation class Connection, is the correct usage of await, Task, and async? The code does build, I'm more concerned with async got-ya's that I'm not aware of (I don...
I'm working on learning Haskell, and I've implemented a solution to the first of the 99 Haskell problems. Here is my code: import Data.Int import Test.QuickCheck myLast :: [a] -> Either String a myLast [] = Left "Empty lists have no last element." myLast xs = Right ((reverse xs) !! 0) testMyLast :: [Int] -> Bool test...
In this reply, there's an example of how to remove a node from a XML structure. XElement doc = XElement.Load("test.xml"); doc.XPathSelectElement("//beep").Remove(); Suppose now that we wish to remove not a single node (specifying it by the string value) but a set of nodes (specifying them by an array of strings). One ...
I have a repository called PostsRepository: public class PostsRepository : IPostsRepository { private readonly DatabaseContext context = new DatabaseContext(); public IEnumerable<Post> All() { return context.Posts .OrderBy(post => post.PublishedAt); } public ...
Since implementing static classes in VBA actually seems possible I came up with an idea to try to imitate C#' Enumerable class (well, to some extent...). This is just an idea but it should work with any sort of a class serving the purpose of a static one, ie. Math, Factory, etc. quick note: the original Enumerable use...
I am using the following code to encrypt a file in an SD card in Android: I want the code to be reviewed for: Security (prioritize this) Coding Style Performance void encrypt() throws IOException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException { String myString = getOutputFile(); ...
I have been working on a quiz that I came across within a job application. I am not applying for the job, but I wanted to have a go at the problem. An input file contains integers, both positive and negative (there might be some duplicates). Each line on the file has one integer. Compute the number of y values withi...
I'm trying to implement a generic Sudoku solver (with n x n puzzles). The puzzle itself is contained in the class Feld with: typedef size_t Point; class Feld { public: // containing all the possible values in binary, eg: 7 means this could be 0,1,2 std::vector<Point> pos; Point L0; // length of t...
import random def qsort(qslist): small = [] big = [] if (len(qslist) < 2): return qslist elif (len(qslist) > 1): pivot = qslist[int(random.randrange(len(qslist)))] for x in range(len(qslist)): if qslist[x] <= pivot: small.append(qslist[x]) ...
I am concerned where it can be improved. Main concerns are coding style. Any other improvements are welcome too. Priority is on JavaScript, review for HTML/CSS are welcome too. What it does: Simulate Bubble Sort graphically with animations. Simulate Selection Sort graphically with animations. There are some visual ...
I have the code bellow, which is supposed to be used inside a larger program. Please see notes about the requirements below the code. from __future__ import print_function from Crypto.Cipher import AES from Crypto.Protocol.KDF import PBKDF2 import base64 import os import sys import binascii if sys.version_info.major ...
I am doing a code review and I have encountered a class in an application that is throwing an exception in the constructor: class QueueMessage { private: std::string m_bucketName; std::string m_objectName; public: QueueMessage(const std::string& messageIn) { std::stringstream ss; ss << ...
I am working on some library code and I am trying to optimize my trim() functions. To that effect I am trying to figure out how best to deal with each kind of input. Move semantics are starting to fry my brains a little. Sometimes I think I understand them... but not very often. What I want to do with this piece of cod...
I have a SwingWorker which checks periodically for an internet connection and updates a jLabel accordingly. public class InternetCheckWorker extends SwingWorker<Void, String> { @Override protected Void doInBackground() throws InterruptedException { while (true) { try (Socket...
params[:controller_id].each do |cid| params[:zone_number].each do |pzn| zone_ids << Zone.find_by_controller_id_and_number(cid,pzn).id end end I have multiple controllers and multiples zone_numbers, and I would like to build a single array of zone_ids by iterating through controller and then zone per controller...
My code works, but the problem is that it is taking an increasingly long time to run, with the time required to complete calculations increasing every time I use the macro. I've tried a variety of variations and modifications with the syntax, but as I'm pretty new to VBA, I haven't made a whole lot of progress. Here's ...
Sass code for creating a basic search box. Resulting CSS used for two that are different widths. The goals is to define sass that generates CSS that is easily re-usable as well as concise and efficient and to keep the initial definitions as DRY as possible. Review: Coding style Re-usability DRY principles SASS: $cont...
In AngularJS, I currently have a directive and 2 services which permit me to bind the window resize event, and broadcast it to my application. I would like to know if you could see anything that could be improved in my code, in term of optimization, naming or possible cross browser issues. I have: A directive which ...
I often have a need to log my progress when doing a repetitive task. Logging allows me to continue where I left off if execution is halted (for example, perhaps my VPS server was rebooted by my host). My current working solution is a bit ad hock. Any input on improving this would be appreciated: class RepeatingTask(o...
It's CakePHP, though I'm more interested in what people think about the layout of the indentation, the mark-up, position of logic etc. Any feedback that relates to the subject of writing CakePHP views / front end code should take precedence over CakePHP feedback or logic feedback, though the latters are welcome too ...
(defn ret-match-row "Finds a row in in-seqB that matches in-valA and in-seq-keyB" [in-valA in-seq-keyB in-seqB] (filter #(= in-valA (in-seq-keyB %1)) in-seqB)) I want to expand this function, so that it still must always accept one comparison key and that n more comparison keys could be passed to the function if...
I have a service class that handles recipe management using a piquetteClient (piquette is a web app with a rest API that can run puppet scripts). The thing is this service class has a bunch of methods like runRecipe, searchRecipes, filter, list etc, and they all require a piquetteClient instance. Because I wanted to n...
I have just written the following "hello world" program in Prolog. Although it is as simple as it can be, I would like your feedback as Prolog is very new to me. #!/usr/bin/swipl -q -t main -f main :- write("Hello world!"), nl, fail. Questions Shebang: I am used to use #!/usr/bin/env python in Python. This is th...
I have a SHA512 hex string consisting of my random input and that of the user. Since rand.Seed only accepts a int64 I can never generate enough possibilities to shuffle an array with numbers 1-75: 75! = 2.480914e+109. So my plan was to loop over the hex string 11 times, each time converting 10 hex characters to decimal...
I developed some code for my masters project that will simulate 90 years daily data using 1000 different data sets. The code is working fine and gives the correct output that I wanted but the processing time are very high. It took about 8 hours to finish the simulation. tic %% importing the csv file with selected c...
I am trying to see whether a given timestamp is more than two weeks old or not. If it is two weeks old, then print out "Hello" and if it is not more than two weeks old then print out "World". I have a variable declared as uint64_t which contains the timestamp in milliseconds. uint64_t data_timestamp; How do I check wh...
While surfing and through some experimentation, I have a new method to generate random numbers without using Randomize or Random or RND. It uses RNGCryptoServiceProvider Class for generating random numbers. We can generate a wide range of positive and negative random numbers with this. I built a function which generate...
So I just wrote the following extension method to do roulette selection on a generic list. I'm specifically unsure of the use of the while loop. Is this beautiful or a disgusting mess? // This is either yuck or beautiful public static T rouletteSelect<T>(this List<T> list, Func<T, double> fitnessFunc, double max) { ...
I have a while-do loop nested inside a while-do loop in my program, due to it needing to iterate in two dimensions through an array of arrays, and originally my loop looked like this: while ( tHeightIndex < tSearchHeight - 1 ) && tContinue do while ( tWidthIndex < tSearchWidth - 1 ) && tContinue do let tCur...
This question has a follow-up: Follow up to Shuffling a list of track indices I have a bunch of paths in an ArrayList<String> and when a user has activated the shuffle button, I want to have a random order to play all of them. This class should help me get every index once. The methods getNext() and getPrevious() sho...
The complete SQLConnect library can be found here. The file from which the following method belongs can be found here. At some point I may or may not open questions for reviewing other aspects of this library, but I intend to keep the questions relatively small. This is the largest method in the entire library and is ...
I have been working on a program that walks you through "Petals Around the Rose". I would like anyone to review it and point out any bad coding practices, as well as efficiency problems. import java.util.Scanner; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[]...
As part 2 of my other question concerning this long running project I've been inquiring about on CR, I reimplemented my generic function for determining if an array of arrays is a sub-array or submatrix of a larger array of arrays. I'm looking for advice on better implementation, ways to improve code clarity, advice on...
I'm writing some scripts for a project which need to be maintainable. Someone will be coming in and taking over after a while and I want it to be easy for them to understand what's going on. What it does is take some arguments with details about a pie chart. It opens and processes a CSV file to be formatted for a jav...
I have the following code which works fine, but there has to be a faster way to do this. I want to have it all in one sub. Sub abc_slbstd() Dim abc_cnt, abc_xnt, abc_c, abc_r As Integer abc_xnt = 1 abc_cnt = 0 abc_r = 1 abc_c = 1 Dim abcArr() As Variant Worksheets("abc").Activate abc_lrow = Worksheets("totallist")....
I am trying to represent questions in quizzes. The database is Mysql but I am using fairly generic sql. The assumption is that varchar cannot handle more than 255 though, so I am supporting longer text by having multiple text components. There are four primitive kinds of questions: multiple choice, multiple answer, fi...
I have a faster way to find if a list is circular linked list, in contrast to the solution that Cracking the Coding Interview has offered: In the below algorithm, fast-pointer will either hit null (in case of linear list) or hit starting point/origin (in case of circular) quicker than conventional (fast & slow pointer ...
I have a function that loops through an array of strings containing approximately 3 million lines of strings. My problem is this loop is running too slowly and I want to know how to make it faster. string[] words = { "Hello", "world", "!", "My", "name", "is", "Something", "."}; List<MyClass> result = new List<MyCl...
I have implemented following code to upload and resize image in Django. Please suggest ways to make it more pythonic. def view(request, spot_id) IMAGE_DIR = MEDIA_ROOT + 'spot/' + spot_id if request.method == "POST": form = PublishedSpotForm(request.POST, request.FILES) if form.is_valid...
Because a website I need data from doesn't have any API or RSS feed for their service status, I use a Web Scraper I built using PHP to grab the data I need and structure it as JSON. However I want to make sure the script is as resilient as possible. <?php error_reporting(E_ALL & ~E_NOTICE); header('Content-Type: appl...
After coming up with a formula on this Stack Overflow question, defeating recursion limits and finding a few new ways of calculating these numbers (as per this Stack Overflow question), I decided that it was time to write up the solutions and submit them for a proper review. For those that are not familiar with Fibonac...
Example: If a linkedlist list contains 10->20->30->40, and 2nd node has to be deleted then the output should be 10->30->40 This question is attributed to Geeksforgeeks. Looking for code-review, optimizations and best-practices. class Nodde<T> { Nodde<T> next; T item; Nodde(T item) { ...
I have a mobile game, utilizing cocos2d-x, that has a handler for touch events. What it does: Main function that gets the touch. Loop in module A. All sprites check if the touch coordinates are in the boundary of one of the sprite. If yes, call the function that associated with the action and break the loop. The same ...
This is my sample code to check if a given pair of strings are anagram or not. static bool AreAnagram(string s1, string s2) { if (s1.Length != s2.Length) return false; foreach (char c in s1) { int ix = s2.IndexOf(c); if (ix == -1) ...
def merge_sort(mslist): if len(mslist) < 2: return mslist left = mslist[:int(len(mslist)/2)] right = mslist[int(len(mslist)/2):] left = merge_sort(left) right = merge_sort(right) return merge(left, right) def merge(left,right): result = [] while len(left) > 0 or len(right)...
I have an Excel Worksheet consisting of two columns, one of which is filled with strings and the other of which is empty. I would like to use VBA to assign the value of the cells in the empty column based on the value of the adjacent string in the other column. Dim regexAdmin As Object Set regexAdmin = CreateObject("...
I have a function to calculate the normal distribution in Python: def norm_cdf(z): """ Use the norm distribution functions as of Gale-Church (1993) srcfile. """ # Equation 26.2.17 from Abramowitz and Stegun (1964:p.932) t = 1.0 / (1+0.2316419*z) # t = 1/(1+pz) , p=0.2316419 probdist = 1 - 0.3989423*math.exp(-z...
I have single threaded C# console application that uses FileSystemWatcher to watch folder for new files. My app sees a file being written, waits until it is released, then picks it up and processes it. At the same time it writes a rolling log to a text file: 2014-08-06 16:20:1.500 - Found file : C:\test1.pdf 2014-08-...
Is there any way of optimizing this code? private void ModifyDataTable(DataTable dt) { if (dt != null) { bool b_dataValue = false; decimal rowreport_data0Sum, rowreport_data1Sum, rowreport_data2Sum, rowreport_data3Sum, rowreport_data4Sum; rowreport_data0Sum = rowreport_data1Sum = rowrepo...
I am writing some tests that all follow the same pattern, I feel like repeating myself over and over again, how can I reduce the repetition? The (almost) repeating part is in constructor and the class level variables: VariablesPage public class VariablesPage extends LoadableComponent<VariablesPage> { private final...
I am currently coding a memory game whereby upon the game starts with 14 cards displayed faced down. The player will start by clicking on 2 cards. The cards will be revealed. If both of the card ranks does not match,both cards will be faced down again after 2 second and it will be dealer (BOT) turn. The dealer (BOT)...
I just would like to know if I am heading in the right direction with this. I am trying to learn and understand the concept of MVC, and I am doing that while making my own webpage, so I can learn a little bit more each time. I do not want to put too much code here, but I would simply like to ask, am I doing this right,...
I am creating a Trie class in Java, and am wondering what else can be done to make it even better. I am hoping to add concurrency to speed querying up. public class Trie { private HashMap<Character, HashMap> root; private final Character END_CHARACTER = '$'; public Trie() { initializeRoot(); } ...
This is the improved code to my last question: package Utils; import java.util.ArrayList; import java.util.Random; /** * A ShuffleGenerator will create a private list of indices and shuffle them. * You can access the shuffled indices with the methods getPrevious() and getNext(). * The method initialize(long, int) ...
This is a follow up to this question. I'm just removing some columns based on some condition as well using the same condition and adding the column values which I am going to remove to another column. I'm simply performing an addition of columns as well removing them based upon some condition. I know the below code is...
I've been writing bash script on and off, with pretty good results in terms of getting the job done. However, I'm worried that my script might be very ugly, as I am a beginner. I'm looking for advice concerning this particular one. I want to extract some part of a big text file (here a lammps .lmps file), and manipula...
Regarding these two functions, which do the same thing... Large and confusing: var fade = function(flag){ if (volumeIntervalId) clearInterval(volumeIntervalId); switch (flag){ case 'in': volumeIntervalId = setInterval(function(){ var vol = songInstance.getVolume()...
I'm writing a validator function that receives a byte[] and checks whether it represents a valid UTF-8 byte sequence, according to this table. Is my approach correct? So far it has worked fine with my tests, but I'm worried that I might be missing some edge case, or that the way I'm handling bytes is off. And more imp...
Code dump: function factor(n) { function count(a) { if (a.length == 0) { return []; } else { var x = a.pop(); var l = count(a); if (l[x] == undefined) { l[x] = 0; } l[x]++; return l; } } ...
So I am sure there are better ways to set this up, but I wanted to see how something like this would work in Objective-C, so I went ahead and built a prototype of a Tradeable Card Game. I've never loaded information from a plist before, so this was the perfect opportunity for me to try that. The idea here is that the ...
I wrote a program that will take a number from 0 to 999,999,999,999 and spell out that number in English. How could I improve the readability of my code? class Say UNITS ={ 1=> "one", 2=> "two", 3=> "three", 4=> "four", 5=> "five", 6=> "six", 7=> "seven", 8=> "eight", 9=> "nine" ...
I had some difficulties implementing a redis-like plugin basil.js, particularly the LREM method. The complexity was to loop only once (and not the whole array every time if we have 0 !== count) ascending or descending. My code below works and passes tests, but I was wondering if another smarter implementation (fewer in...
Which one of these web components is designed better? Option 1 contains an a tag within the custom element. <bootstrap-social service="github" size="lg"> <a href="http://github.com/reggi">Sign in with Github</a> </bootstrap-social> Option 2 the custom element has an href tag and the inner text is within the el...
Inspired by the recent surge of questions dealing with changing numbers to their English equivalents (See here, here, and here), I decided to write my own version in Python. zero_to_nineteen = ( "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "...
I threw this together and would love any suggestions on how to improve on this simple DataTable to given Type T mapper. Anything from coding conventions to speed optimizations or "you're doing something stupid". public class test { static ISXLog log = new XLog(); public void runTest() { var data = RetrieveDat...
I have been using a pattern similar to this basic structure below. Can anyone please let me know if this is a correct way to code an object-oriented widget for reuse? I am looking to make code than can also be extended easily and modular. $(function(){ // wrap in jquery .fn wrapper so that may be called on a function ...
Can you check my merge sort implementation? From all of my testing it seems like it works, but I just wanted to make sure I am doing it as good as possible, and it couldn't be optimized any further. private static void merge(int[] c,int[] a, int[] b){ int i = 0;//index for a int j = 0;//index for b for(int...
I'm trying to create an Isometric Game in JavaScript. I think the code is pretty good, but I'd like to know if there is something to improve. var CameraX = 0, CameraY = 0; for(var yChunks = 0; yChunks < NumYChunks; yChunks++) { var ChunkY = yChunks * HalfChunk, ...
I've solved problem #8 in Project Euler, which asks to find the 13 consecutive digits with the greatest product from a particular 1000-digit number. I would like to hear any suggestions regarding my code. My solution is not restricted to 13 digits, and the user is allowed to choose any number of digits (as long as they...
I am using traceview and DDMS to analyse my operation. The following is my traceview as displayed in DDMS: According to the above, the LoaderClass.months() function takes about 51% of the CPU time and 798.80 System time. I have reproduced this function below: public int months(String date) { SimpleDateForm...
This is my first plugin for JavaScript. It originated from a need for a similar feature at work and I decided to make it a bit more generic in case I needed it again. I was just wanting some criticism on my code. I added comments on the defaultOptions to try and give a better picture of what the plugin does. Do I have ...
I have to loop through a list of strings and validate that all are parsable to int and not less than 1. Also, if a string is not parsable but is null or whitespace, then it is OK and my validator should not fail. Here's the code I have come up with which works fine but leads to method complexity: public static bool Ar...
I have the following Scala code: def getLists(token: String, username: String):Future[Try[Seq[Group]]] = { val result:Future[Try[JsValue]] = getAPIResult(token, "https://myapi.com/screen_name=" + username) result.map( x => convertFromJsValueToObject(x)) } def getSubscriptions(token: String, username: Str...
How can I refactor this with less code? This is homework and is cracking a Caesar cipher-text using frequency distribution. I have completed the assignment but would like it to be cleaner. #include <stdlib.h> #include <stdio.h> #include <string.h> #include <ctype.h> #define TEXT_SIZE 100000 // Note, the longer the tex...
I solved this problem on SPOJ: The aliens have arrived to Earth and everything is in harmony, the two races can live together. However, one specific Female Alien does not want to see humans on her way to the university, the alien must use the train as every human does. But she can choose any train station such...
I have an alphanumeric string like sdff45hg589>@#DF456&<jk778P&&FHJ75, of which I want to extract only the numbers, without using regex or any other functions. Dim input As String = "sdff45hg589>@#DF456&<jk778P&&FHJ75" Dim output As String = New String((From c As Char In input Select c Where Char.IsDigit(c)).ToArray(...
This is code for filtering the data of webpage, for the web crawler I made for my project. I know python scripts can lag than other languages, but this takes a lot of time when processing even a single page. I don't want to use any other external libraries for filtering content. Is there any way my current code can be...
I am trying to write an MVC based application from scratch using Java 8 and Swing... I am having some difficulties with this. I want to know if I am going the correct way about this... My controller code is: public class Controllerv2 { private final Map<String, View> views = new HashMap<>(); private final Map<String, C...
I'm doing this problem: After getting her PhD, Christie has become a celebrity at her university, and her Facebook profile is full of friend requests. Being the nice girl she is, Christie has accepted all the requests. Now Kuldeep is jealous of all the attention she is getting from other guys, so he asks her to ...
I'm writing an algorithm to read from a file a list of numbers, and for each, determine if it is valid. If it is, then display which card type it is. public class CreditCardValidator { /** * @param args the command line arguments * @throws java.io.FileNotFoundException */ public static void main...
I'm writing my own game framework and would like to get feedback on the API while I'm writing it. At the moment it's very simple, but I would like some guidance about where to take it. This is a sample main function to create a window: #include <string> #include <iostream> #include "pneu/graphics/Window.hpp" #include ...
We have a database with fixed width columns. The API is really simple and returns everything the database does with little to no actual processing. This results in some unnecessarily long strings in the model. The model has child objects who have grandchildren and can get quite large at times. I've written this functio...
Lately I have been researching how to best unit test an EF repository and given a properly tested repository, what to test in the controller. My research did not reveal many sound examples or explanations but I did what I could. Now I am kindly asking that you review my tests in order to verify their correctness. Examp...
In this Data Explorer query I am trying to do the following: For each tag: Compute sum of answer scores in this tag ("S") Compute count of answers in this tag ("A") For each tag class (Bronze, Silver, Gold) add two columns: S divided by this class's score goal A divided by this class's answer goal I wanted to do ...
So this was originally inspired by @nhgrif's Int extension for translating integer to plain English, however the code is mainly a port of @rolfl's Converting a number to the text representation; taking into consideration the reviews on both answers as well. NumberToText.h: #import <Foundation/Foundation.h> @interfa...
I would like to hear your suggestions about my shuffling function in C++. I've decided to take advantage of using rand() to build a shuffling function. #include <iostream> #include <vector> #include <ctime> bool find(const std::vector<int>& vec, int index) { for (int i = 0; i < vec.size(); ++i){ if ( inde...
I've been thinking about a way to make it easier to safely use math operations with C's basic datatypes (e.g. using the CERT C coding standard). So far, I've come up with something like this: #include <stdlib.h> #include <stdio.h> #include <limits.h> #define safe_add(x, y) _Generic((x + y), \ ...
Scenario: I wanted a task scheduler/doer that enables my application to schedule some tasks to be executed in a specified time but in the same order they were scheduled in or depending on their priorities (DataFlow like). I also wanted it to enable the usage of C# 5 Async/Await functionality so I looked up over the In...
I was given a simple coding exercise as part of a job interview process, for which I received a negative review. This is the question: DiUS is starting a bowling club. To help with the club, we have engaged you to program a scoring system. The features on the system are: One player only In each frame, the bowler has ...
The purpose of making this code is to copy/paste and run it (and it should run). I'm open to all feedback. #!/usr/bin/python # -*- coding: utf-8 -*- # # Author: Nishith # Version: 1.0 # # Description: # A quicktime (part 2 ) generator from ready image sequence. User is # prompted to this path. "First...