Skip to content

Instantly share code, notes, and snippets.

anonymous
anonymous / gist:df5b4f560c4a9437b143
Created June 29, 2015 21:52
redis session keys
ackage main
import "github.com/go-redis/redis"
import "github.com/go-martini/martini"
import "crypto/md5"
import "fmt"
var client *redis.Client
func main() {
@clairernovotny
clairernovotny / WImageRenderer.cs
Last active August 29, 2015 14:13
Image Renderer for WP8 Images
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using News.Controls;
@sebmarkbage
sebmarkbage / react-terminology.md
Last active January 9, 2023 22:47
React (Virtual) DOM Terminology

Given a big domain of types that don't implement IEquatable, e.g (simplified here):

class A {
	public int a;
	public string b;
	public IEnumerable<int?> c;
	public IEnumerable<B> d;
}
@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active April 20, 2024 16:52
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@nf
nf / hello-node.js
Created July 6, 2012 21:14
Hello world web server that scales across multiple processors
var cluster = require('cluster');
var http = require('http');
var numCPUs = require('os').cpus().length;
if (cluster.isMaster) {
// Fork workers.
for (var i = 0; i < numCPUs; i++) {
cluster.fork();
}
cluster.on('exit', function(worker, code, signal) {