Skip to content

Instantly share code, notes, and snippets.

Avatar

Sam Rahimi samrahimi

View GitHub Profile
@samrahimi
samrahimi / Robot.cs
Created Mar 17, 2017
C3PO, The Psychic Robot - Coding Exercise for Horoscope.com
View Robot.cs
/*
* Implementation of the Robot coding exercise using a thread-safe lazy singleton pattern.
* To save time, the 2 chip implementations only support arrays of integers and not other numeric types
* Detailed explanations of design decisions are written as comments throughout this file. Test script is at
* the end.
*
* TESTING INSTRUCTIONS: Build, Run. Test results will be displayed as the output of a console app.
*
* IMPORTANT: Compatibility with Windows or the Visual Studio build environment is expected but not guaranteed.
* This code was developed, built, and tested using Jetbrains "Rider" IDE and the "Mono"
@samrahimi
samrahimi / godfunction.html
Last active Nov 27, 2016
The God Function
View godfunction.html
<html>
<body>
<style>
/*
* This code will run as is in desktop versions of Chrome. Download and enjoy.
* Inspired by truth and beauty ;)
*/
body {
background-color:black;
}
@samrahimi
samrahimi / gist:034d0d0d0858e41079d8
Created Jan 25, 2016
Verifying that +samrahimi is my blockchain ID. https://onename.com/samrahimi
View gist:034d0d0d0858e41079d8
Verifying that +samrahimi is my blockchain ID. https://onename.com/samrahimi