instruction
stringlengths
71
71.9k
Inspired by this answer and previous a commentator of code review use: Given a complex Perl data structure, traverse/jigger/modify as follows: If ORACLE_SID is 'key' in any hash then keep only ORACLE_SID section matching of $ENV{ORACLE_SID} Eliminate any single level arrays, if after step 1, we're left with s_level ar...
A while back I asked a question about my Simon Says game and did well on my assignment! But now we need to go back in a make some modifications to the game to be more advanced. I've done that as well, but I need some tips to make it more pristine and little cleaner, some things I'm still working on, but any help here w...
I have implemented a simple client-server solution using Java sockets and useful classes from java.util.concurrent. The communication protocol is rather simple: Client sends a string with the appended request_info#. A server responds to a client with the message that provides a description on how to use a server. If...
This is a program I wrote to grab restaurants/bars from Google, Yelp, and Foursquare. It then ranks them more effectively based on the rating, the number of ratings, and the number of data sources using a Bayesian average. My guess is that the main method could be broken into more functions. I'm also guessing I'm missi...
In my OpenCL kernel, I have the following logic: size_t id = get_global_id(0); uchar index0 = (id / 32760) % 16; uchar index1 = (id / 2184) % 15; uchar index2 = (id / 156) % 14; uchar index3 = (id / 12) % 13; uchar index4 = (id / 1) % 12; if (index1 >= index0) ++index1; if(index2 >= index0 || index2 >= in...
I have four fields a, b, c, and d. All of them must be populated if any of them have a value. So what I want to do is validate that they are all populated, if any of them have a value. I'm trying to determine the best way to do this. I think I could do this: class User < ActiveRecord::Base validates_presence_o...
I have this great C program I'd like to embed into an iOS app. One passes command line arguments to it and the results are printed to stdout via printf and fputs - like with all the good old Unix programs. Now I'd like to just edit main and the print functions to use my own printf function which collects all the output...
Rock Paper and Scissors is a pretty basic program. The reason I wrote this program is because I wanted to see what a small script that used all of the main programming paradigms looked like. My code contains: OOP: A Player object. FP: First class functions : player.intelligence is a function is stored in a variables a...
I use the following script to download the result of a SEDE query and scrape a specific column from it using BeautifulSoup: import json def extract_column(soup, colname): """ Returns a generator of cell values in selected column. For simple columns like timestamp, a cell value can be simple, for exam...
I had to recently implement a code to count the union of all intervals (if there are overlapping intervals) for an interview. I was provided with the following function stub: public int solution(int[] A, int[] B) { } A[0] and B[0] form one interval, A[1] and B[1] the next one...and so on. I tried two approaches. Co...
Recently I was asked to implement a stack specifically for storing 'int' type data and find memory leaks. Isn't the garbage collector responsible for releasing all the memory? What are the possible memory leaks and how do I handle them? import java.util.NoSuchElementException; public class MyStack { private int st...
Given a String, if the String begins with "red" or "blue" return that color String, otherwise return the empty String public String seeColor(String str) { if(str.length() <= 3){ if(str.equals("red")){ return "red"; } return ""; } else if(str.substring(0, 3).equals("red")){ return "red"; } ...
How can I change my two functions to be more readable functions (i.e. in steps), because I am using pycharm. import collections def compute_word_importance(fpath1,fpath2): mylist1 = [] mylist2 = [] with open(fpath1, 'rt', encoding='UTF-8') as f: for line1 in f: for word in line1.split(...
I'm using node-ftp to download some files from an FTP server; due to nodeback difficulty and nested calls I'm promisified some of the calls, hoping that this will help get me out of pyramid code hell, but I think I'm still mis-applying something. Before I get to my code pasted below, conceptually the pseudo-code of wha...
I have a method which will merger two sorted list together. The function works, but I saw some duplicated code. Any ideas to make the code more elegant? class Node(object): def __init__(self, data=None, next_node=None): self.data = data self.next = next_node def MergeLists(headA, headB): head = ...
I need to be able to store results of a game in a file with names and high scores where I will eventually want to review the file and sort it alphabetically, etc. I'm unsure if I have the correct way of storing the results to be able to do this. class_number = input('Please enter your class number: ') from datetime i...
I wrote a Cordova plugin for an app that I'm working on, and now I'm trying to write an Angular definition to wrap my plugin. So far, I've followed the model in ng-cordova.js: angular.module('ngCordova.plugins.audioPlugin', []) .factory('$audioPlugin', ['$q', function($q) { return { init: function(session...
If you came here because of the title, chances are your server isn't down. But if by some miraculous reason it is: A while ago, I posted a program that would ssh and ping all the servers at work. I got some very good feedback and went ahead and rolled with it. Here's what I came up with: It now is much more readable, ...
The idea of the game is that the player and the computer take turns entering either 1, 2, or 3, and that number is added to a running total. Whoever goes over 21 loses. I need to develop a strategy that lets the computer always win. I have a strategy worked out, but I was wondering if there is a more efficient way to d...
I am wondering if this is a safe and/or sensible way of going about doing the following task: My problem is that I have a folder with loads of directories with names of form YYYY-MM-DD. They are from my camera. Each directory contains picture files. The problem is that the picture files are designated by just 4 digits ...
It is a simple program which allows you to input a username an password. If the username/password is equal to the String it launches a JOptionPane that says "Correct". If it doesn't it launches a JOptionPane that says "Incorrect". import java.awt.event.*; import javax.swing.*; public class Main { //The Strin...
This is an adaption of a single player Battleship game. I made it two player, and I also tried to implement OOP and DRY principles. I would like my code to be reviewed for OOP, DRY, PEP8, and overall best practices. I am new to development (about 1 month strong), so any constructive feedback would be greatly appreciate...
I'm trying to improve my understanding of inheritance and template classes in C++ so I coded a hash table (see compilable source code below). I would be greatly appreciative of any comments on how to improve this code. Description: The LinkedList template class inherits from the template class Stack. The Stack class co...
When I finished this problem, I thought about how I initialized my loop iterator variables i and j. Originally I had i = 0 and j = 0, but then I had to initialize count to 1, instead of 0. And that just seemed a bit odd to me. A similar conundrum came to me when I was incrementing/decrementing count, and deciding if I ...
I am working on Problem 2.30 from Structure and Interpretation of Computer Programs. I book is in scheme, but I am doing the exercises in Clojure. The problem is to write code that takes a tree of numbers and return a new tree with the numbers squared. I have done it in two ways: Without higher-order functions: (defn ...
How can I refactor these switch cases? void selectOption(Shape** shapes, int size, int selection) { int obj1; int obj2; bool init2 = false; bool init = false; int option = 0; do { cout << "\n (1) Rectangle #1" << "\n (2) Rectangle #2" << "\n (3) Circle #1" ...
I'd say currently my understanding of C# is within the range of (1Beginner-10Intermediate) a solid 4-5. Thus I am seeking to broaden my understanding of C#; I've started coding an IRC bot to improve. This is the code: using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; ...
My problem is this: Given two strings, append them together and return the result. However, if the strings are different lengths, omit chars from the longer String so it is the same length as the shorter String. So "Hello" and "Hi" yield "loHi". The strings may be any length. Is there a way to do it without using of S...
I will first explain the context. I want to read serie subtitles contained in .srt files. I have already done the part of extracting the words from the files (and how many times the word appears for a serie) but when it comes to inserting the data in my SQL Server database, it takes more and more time to do the updates...
I just watched the video from "Think Like a Programmer, Episode 2: Puzzles & Problems". The problem is: Assign number 1-7 to three departments in a city: Fire, Police, Sanitation. Requirement: Each department should have a unique number Police should be an even number Fire + Police + Sanitation = 12 Generate a li...
Does someone want to review my solution to part 1 of Day 7 Advent of Code in Scala? The assignment is here: http://adventofcode.com/day/7 Without repeating the whole text, in short: Given a text file of the following form (simplified): x AND y -> a x -> 1 y -> 0 calculate the value of a. Here is an example of a full i...
I've written a program that encrypts files (or stdin) with a user-specified key from 1 to 255. This "encryption" is very insecure, but still a bit better than ROT13 (at least for people trying to crack it using pencils and paper). How can I improve this program? #include <stdio.h> #include <stdlib.h> #include <string.h...
I have wrote some service in AngularJS that use defer, can you check my code and tell me if I getting it right? Service (I dont really like name: WatchableTeaser, have you got another?): .factory('Teaser', function ($resource, DateUtils) { return $resource('api/teasers/:id', {}, { 'query': {method: 'GET', i...
I have recently written a jQuery plugin called Pageee. Pageee is a jQuery plugin to scroll through full pages automatically, by arrow buttons, or by dragging the page. I have now come to Code Review to ask you if you have any suggestions to the code appearance (readability), the browser support (should only support ...
I have working code with original design, and now I had a slight design change so trying to code review that as well. I already had code review on my original design here. Original Design: I am using RestTemplate as my HttpClient to execute a URL and then my server will return a JSON string as the response. The custome...
I have made a mental Maths game but it seems quite long, is there anyway in which I can simplify it? And can you also help me with my other Maths game, Ten quick questions ? correctq=0 actualanswer = 0 print("Welcome to Mental Maths") print("If you chose Division rpund down to the nearest whole number") mode = input("(...
Like my previous question about my Mental Maths game , I have written a script for a ten questions Maths game and again it seems like there is a more simple method, can anyone take me out of the dark on this one? def tenquestions(): mode=input("(E)asy, (M)edium, (H)ard") questions=0 rightqs=0 while ques...
This code takes the position of your mouse cursor, and it creates circles where the cursor is. strokeWeight(3); stroke(24, 0, 0); fill(245, 0, 0); background(255, 255, 255); draw = function() { ellipse(mouseX, mouseY, 30, 30) }; I would like to know: If there is a way to shorten this code, but sti...
I'm trying to check in my meteor app for a defined timeout (idle user) to show a modal. But the way I did it seems a bit too complicated to me. I'm doing a setInterval for 1 minute. Then a counter - which is stored in a Session var (maybe a local reactive var would be smarter?) - will be incremented by one. If there is...
I have this monstrosity @nation_biopsy = User.all.where(country: @nation).group_by{ |u| [u.institute_type, u.biopsy] } .map{ |i, o| ["name" => i[0], "y" => User.where(id: o.map(&:id)) .sum("biopsy")]}.flatten.to_json What it is doing is finding all the users in my database that belong to a cou...
I have two datasets that are both within a worksheet, call them Data and IBES. The code checks whether the 6 variables are the same in each dataset and then writes the value from a specific column to the other dataset. To find this value the code runs through 288503 lines which is dramatically slow. How can I speed up ...
I have 3 different functions I have tried in my programs. I want a function which continues to loop until an integer is entered. Which would be the best to use? Or is there a better one? def valid_int(question): """Creates a loop until an integer is entered""" py_version = find_version() if py_version == 3...
See this post for the previous question. I have made several enhancements to this compiler and language that make it a lot easier to work with, as well as slightly decreasing executable size (if new features are used properly). I've decided to call the new language brainfix, as I don't think anyone has used this name b...
Here is my latest version of my addition script. I have tried to take on all the advice I have been given by people like @Janos and @Hosch250 and also tried to keep to the guidelines set by the PEP8 (I recommend it to anyone who hasn't read it yet). Now I have done it, so please tell me if I have missed anything/there...
I made an Atari breakout game from Java from an inspiration from Google's Atari Breakout Doodle. Here is the code for the main Controller: This actually works. Try it by putting it all in an atariBreakout folder. package atariBreakout; import java.awt.*; import java.awt.event.*; import java.util.ArrayList; import java...
I have created some code to split strings. The code will split the given string by the given delimiter into an array which is inside a struct it returns. I am using strtok to do the actual tokenizing, but in my code the original string will not be changed. split.h #ifndef SPLIT_H #define SPLIT_H #ifdef __cplusplus ex...
In my application, well-defined operations on collections of business entities are modularized and carried out using one or more routines, each of which operates on a unique type of data associated with (but not necessarily contained in the objects that represent) these business entities. A routine may have logic that...
I am implementing the said question on "Cracking the Coding interview" using HashSet. Please have a look and suggest how I can improve the efficiency of the following code considering that I am only taking either all lower case or upper case characters. static void detrUniqChar(String str) { int flag = 0; //Flag decla...
I have made a game (I like to code when in my spare time) where words are taken at random from a list and displayed on a label. If they type it correctly, their wordcount goes up by 1 and the word is removed from the list. If they get it wrong, the word remains. If they enter nothing in an attempt to skip the long word...
1. Problem Statement Write a JavaScript function calcCircleArea(r) that takes as a parameter the radius of a circle and calculates and returns its area. Put the function in a file named circle-area.js. Write a HTML page circle-area.html that includes the script circle-area.js and calculates and prints in the page body...
I decided to try to make my own tree style class. I may use it in a project, but it's primarily to practice. I would appreciate any feedback for improvements, best practices, etc. import sys class Node(object): def __init__(self, name=None, data=None, parent=None): self.name = name self.data = data...
Reads the user's first and last name (an entire line as a single string), then prints the last name followed by a comma and the first initial. Ensure the code re-prompts until the user types a name that is at least 5 letters total in length and has at least one space in it. For example: Type your name: Jessica Miller...
This is my EventHandler class, which is extremely simple and can be used on lambdas and similar: template<typename Signature, typename...Ax> class Event { private: typedef std::function<Signature(Ax...)> Function; Function _func; public: void CallFunc(Ax... ax) { if (_func) { ...
I created a simple Authorization module with Rails. I found that there are other authorization systems, such as CanCanCan, but they grant permissions at Model level and, for this particular website I am developing, it is more convenient to authorize at Controller level. The idea is simple: the permissions are stored in...
I'm working on making an iOS app to solve physics problems and I'm starting by just having it solve basic kinematics problems with the following formulas (I've coded it in C instead of Swift to start because I know C better): Time: \$t\$ Change in Distance: \$d\$ Average Velocity: \$v_a\$ Initial Velocity: \$v_i\$ Fi...
I have the following algorithm to find a minimum of three input numbers: min(a,b,c): x := a if b < x then x := b if c < x then x := c return x end min(a,b,c) I'm trying to implement a Mic-1 micro code following the algorithms above: OP1, OP2, OP3 = any 16 bit 2s complement value OPRES: 0 .LOC 50 main...
This year I have been participating in the Advent of Code series of challenges, and it just so happened that I'd be doing them in Javascript. Not my usual weapon of choice, but I do have some experience in it. Day 11 asks us to find the next valid password given a set of three requirements. The idea is that you'd be in...
I just finished coding a game of 21, similar to Blackjack, but with a simplified dealing mechanism. #include <iostream> using namespace std; #include <string> #include <ctime> #include <cstdlib> int main() { bool loop = true; int loopchoice; srand(time(0)); int player1 = 1+(rand()%10); int player2 ...
(See the previous iteration.) Now I have optimized my natural merge sort: Suppose the input sequence is $$\langle 2, 1, 4, 3, 6, 5, \dots, n, n - 1 \rangle.$$ My previous iterations would degrade to \$\Theta(n \log n)\$ on this input. This version will not: After reversing the second run (\$\langle 4, 3 \rangle\$), the...
Currently I'm engaged with implementing a Drag and Drop GUI. I've discovered that there a not many resources (tutorials, etc.) available. So I wrote this: function Cursor(cssSelector, rightLimit, bottomLimit) { var element = document.querySelector('#square'); var styles = window.getComputedStyle(square); ...
I want to customise how my objects are printed using the .format() function. I have two problems to make that happen in clear and concise way. But since the second one stems from the first one I'm presenting both here. Formatting array Passing options to .format() in array seems to me to be awfully messy if I want to m...
I need to handle concurrent request by waiting the result of an already running operation. Requests for data may come in simultaneously with same/different credentials. For each unique set of credentials there can be at most one GetDataInternal call in progress, with the result from that one call returned to all queued...
I wrote a quick program in Python to play against itself in a game of (random) tic-tac-toe. It seems to work, but can you guys please look at it and let me know if I'm doing things the 'correct' (i.e. idiomatic) and efficient way. import random # Tic Tac Toe # Board is laid out as: # 0, 1, 2, # 3, 4, 5, # 6, 7, ...
I know this code works, but is it correct to define them as functions or should I use something else? import math def Fibonnacci_sequence(): i=int(input("How many numbers of the fibonnacci sequence do you want to see: ")) a = 1 b = 1 n = 1 print(a) print(b) n = n + 1 while n < i: ...
Your method should accept a real number as a parameter representing a limit, and should add and print terms of the sequence until the sum of terms meets or exceeds that limit. For example, if your method is passed 2.0, print terms until the sum of those terms is at >= 2.0. You should round your answer to 3 digits past...
I have a filter method that receives a list composed of dictionaries. You must discard dictionaries that have their handle or their citizen_number elements off the filtered result as well as concatenate any lists inside that dictionary. In addition to that, in case an element on that main list is a Noneit should be ski...
I would love a code review of this LSD radix sort implementation. I've rolled my own, and have implemented counting sort as well. I feel like some of the data structures I've chosen could be improved. My List<List<char[]>>, for instance, is a little gross and makes fiddling with its innards more complex than I think ne...
For my CS class, I need to, by the end, have written an entire website. The idea for my site is to supply information about Uromastyces. Because of this, most of each page will be nearly identical. The only part that changes will be the main body that contains unique information (this seems to be common on most large s...
I've been trying to figure out how to stop Twig escape using the following code, which I feel is a little nicer with the succinct ternary operator. I hope someone can confirm I'm using the correct syntax and if there are any performance issues doing it like this (as well as alternative methods, if any): <body{{ bodyCla...
Diffie-Hellman is a key exchange that allows 2 people to share a symmetric key without interaction beforehand. First, a person shares an equation; in this case, we use: $$3^x \mod{17}$$ Next, each person generates a random, usually prime, number. Then, they plug it in the equation. Let's use 5 and 7: Alice: \$3^5 \mod...
A interesting challenge was brought to my attention: to "flip" an array. I thought it might be more convenient if its bounds were symmetrical, say [-N..N] instead of [0 .. 2N + 1]. Now I'm curious about what could be done to make this Array more mature. Say, like a Boost component. #include <cassert> #include <iostream...
This SQL query took 38 minutes to delete just 10K of rows. How can I optimize it? Index already exists for CREATEDATE from table2. declare @tmpcount int declare @counter int SET @counter = 0 SET @tmpcount = 1 WHILE @counter <> @tmpcount BEGIN SET ROWCOUNT 10000 SET @counter = @counter + 1 DELETE table1 ...
Following the paradigms of SCARY iterators, there should only be a single iterator-type for contiguous iterators per value-type. Here my code for that iterator, working with C++11+: #include <type_traits> #include <iterator> template<class T, class U> struct is_more_cv_qualified : std::integral_constant<bool, std::is_...
Given a string of digits, find the minimum number of additions required for the string to equal some target number. Each addition is the equivalent of inserting a plus sign somewhere into the string of digits. After all plus signs are inserted, evaluate the sum as usual. For example, consider the string "12" (...
I have developed small test project as a template for production project. In this template I've found a way that the application saves and loads its own settings (ini-file). Main Form1 will contain many other sub-forms Form2, Form3, ... FormN Each sub-form has its own settings, but only main form is responsible for s...
Every call to the web service goes through a custom queuing system. This has a limit that is set to 1. Every call that enters the same time with another call is purged and not handled. Not sure if this is completely thread safe. public void QueueForExecution(T value) { lock (_queueLock) { if (_entryCoun...
I'm a beginner at coding, and I am looking to improve the structure of how I write code and will take any tips. Posted a simple program that takes your name as input, then runs the string through a switch statement to print out how many of each character your name has, as well as any spaces and symbols. package practic...
var fpslist = db.FPSinformations.Where(x => x.Godown_Code != null && x.Godown_Code == godownid).ToList(); var data1 = fpslist.GroupBy(x => x.Ration_Card_Type1) .Select(x => new { CardType_Name = x.Key, CardType_Count = x.Sum(y => y.Ration_Card_Count1) }).ToList(); var data2 = fpslist.GroupBy...
So I have a simple userform where I require the User to input the target month, and the day to analyse data up to. This is just a small section of code to govern populating the month selection and then determining days based on the month. Particular questions: Is this a smart way to handle dates generally? Is this a go...
I've written the code below with what little knowledge I have of JavaScript at the moment. The code simulates the process of removing multiple videos at once from a playlist like the one you see on YouTube. As it stands now, the code removes a total of four videos (each positioned at the index 0, 2, 5, and 7), using th...
I thought Ver 2 was fairly solid but ending up modifying all but one method for Ver 3. Performance for Generate is the same, but I was able to simplify the method even further. SaveImage is now 12X faster. New to this version is the ability to specify how many ranges to be used when using TPL Parallel.For. using Sys...
My current implementation, class Person { int id; String name; LocalDate start; LocalDate end; /*getters and setters*/ ... } private void checkForTimespanOverlaps(List<Person> persons) { final int totalPersons = superiorSalesAgentHasFunctionDTOs.size(); LocalDate[][] timespans = n...
CreateUser function assumes the data being delivered via parameters are clean and gets called or initiated from the Business Manager (another class). This function is responsible to do the following things: Fetch the Connection String Open the database connection Start the transaction Inserts a user record Loop throug...
Here is the completed code for my first Python project, for which I received some help and feedback here: Collate votes on MP3 files to list them by popularity Seeing as there have been considerable changes since that post, I figured it would be best to start a new post. My goals when starting this project were: Scan ...
I've made an image filtering client for JavaScript that runs on jQuery, Vex and Fabric.JS. You simply include the required files in your html page, along with something like: <script type="text/javascript"> ImageFilter.defaultOptions.imageCallback = server.upload(); </script> and then have a <a><img /></a> structu...
I was playing a game with my family and we lost the dice that went with the game, so I created this small program and I am now trying to create a website with it. mouseClicked = function() { // change to change max and minimum numbers var number= random(0.5, 6.4); // makes number into intiger var integer = roun...
I want to make sure if it's good. Maybe there is another better solution. List<String[]> list = new ArrayList<String[]>(); for (int i = 0; i < 3; i++) { String[] arr = { String.valueOf(i) }; list.add(arr); } String json = new Gson().toJson(list); System.out.println(json); Expected outp...
How can I improve this code? var maxDateValue = list.Where(x => x.ID == 1).Max(c => c.LastUpdDt); list.RemoveAll(x => x.ID == 1 & x.LastUpdDt!= maxDateValue);
This is a statement that I use a lot in my code base: (LocalDateTime.now()).format(DateTimeFormatter.ofPattern("ssmmHHddMMMuu")) Should I create a static method for this or is it overkill? public static String getTodaysDateInFormat(String format){ return (LocalDateTime.now()).format(DateTimeFormatter.ofPattern(form...
I have a library of news articles. Each story is unique by id. public String getStory(String id) throws Exception { Connection conn = MysqlDb.getConn(dbName); try { for(Publisher p : Publishers) { PreparedStatement prpStmt = conn.prepareStatement("SELECT story FROM " + p + ...
Inspired by a few inverse tree ascii art F# questions, I wanted to give it a shot in Haskell. As seen in the linked questions, the resulting program reads an Int from stdin (\$0 \leq n \leq 5\$), and displays a tree of dimensions 100 * 63, consisting of \$n\$ Y-formed "trunks-and-branches" of which the three arms each ...
I am working with an array-like data container through a 3rd party API. So I can not change the container itself to add iterators. There are many different array-like classes, and each have a specific data type it will store. There are two unknowns in this case, the class of the array container and the data type stored...
I decided to rewrite a previous program of mine from scratch. The result is a lot better than the previous one but now that it seems like it is working I want to optimize it (hopefully it is not too early..). Provided a UrlList.txt, it read line by line the urls of a manga page, e.g. http://www.readmanga.today/naruto a...
I believe this runs in \$O(V+E)\$ but I wouldn't be able to explain the reasons why. I was looking for some general code review and any help on understanding the runtime. var Graph = function() { this.adj = {}; } Graph.prototype.addEdge = function(v, w) { if (!Array.isArray(this.adj[v])) this.adj[v] = []; ...
I built an app that allows users to add and remove images in a collection view. I want this to be useful online so I save the images into a database and retrieve them every time. I'm looking for constructive criticism on how I solved this problem. It is in swift. The code works just fine, but I notice some lag sometime...
I am creating a website for my buddies and I to track all of our offensive softball stats. I am getting tired of maintaining a huge excel spreadsheet and emailing it out every week, so a website is the way to go. I've created the DB a few times but I want to make sure I am making this thing right without duplicating da...
I am designing a cipher and need to convert between bases repeatedly in a loop. I have optimized everything else, but I'm not too familiar with C++ code, and and am trying to figure out how to make the conversion faster. string digits = "0123456789abcdef"; string tohex(string number) { // Decima...
I use this script to scrape the results of a SEDE page and return as a BeautifulSoup object. A small twist is that if I don't use a SEDE query manually in the browser for a few days, then non-interactive downloads get empty results. (I suspect there is a robot test there.) Rather than fixing the robot test issue, my wo...
This is a concept for a compositor. It would help me if you could review how well I expressed my ideas into the functional language. I first divide everything in an areas that each window covers entirely or not: Then I can walk the areas and render each corresponding window. The actual composing of the vectors is a ty...
This is my first attempt at writing a template class. I am implementing Andrew's Monotone Chain algorithm, as described here to calculate a 2D Convex Hull. Since this is my first try at templates, I would like a review of my code to make sure I get started on the right track. ConvexHull2d.h // ConvexHull2D // Template ...