This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How long has the average employee been working here? | |
When was the last time someone was promoted? | |
What technology changes are you most excited about? | |
What are the companies long term goals? | |
Who are your main competitors? | |
How often are releases done? | |
How many environments do you have? dev/test/staging/prod? | |
Who does the design of the project? | |
Where do feature requests come from? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# New machine setup for UBUNTU | |
# | |
# fixes bad defaults, and installs base packages | |
# | |
gsettings set org.gnome.shell.extensions.desktop-icons show-home false | |
gsettings set org.gnome.shell.extensions.desktop-icons show-trash false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Entity Attribute Value Model in Postgres | |
CREATE TABLE public.entity ( | |
id serial NOT NULL, | |
type varchar(25) NOT NULL, | |
PRIMARY KEY (id) | |
); | |
CREATE TABLE public.defined_attributes ( | |
key varchar(25) NOT NULL, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; | |
;; Censor text temporarily in emacs | |
;; | |
;; (Using this for screen shots mostly) | |
(defvar censor-face | |
'(:foreground "black" :background "black") | |
"Face to use for censoring") | |
(defun censor () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
from math import log | |
from random import randint | |
def log2(n): | |
return log(n) / log(2) | |
# | |
# Simple count min |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import random | |
import time | |
import string | |
import Queue | |
import threading | |
from urllib2 import Request, urlopen, URLError, HTTPError | |
import hashlib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Willpower trainer | |
# | |
# It's a really bad, ad hoc state machine | |
# | |
import random | |
import pygame |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import Tkinter as Tk | |
import random | |
class Schelling(): | |
"""A Schelling model. | |
This is a model of a city undergoing dynamic racial segregation.""" | |
race_colors = ["#F9C", "#000", "#FF0", "#F00", "#533"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "disjoint_set.h" | |
void disjoint_set_new(disjoint_set_t *set) { | |
set->parent = set; | |
set->rank = 0; | |
} | |
disjoint_set_t *disjoint_set_find(disjoint_set_t *set) { | |
disjoint_set_t *root = set->parent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.net.* ; | |
import java.io.* ; | |
import java.util.* ; | |
public class Server { | |
public static void main( String[] args) { | |
try { | |
ServerSocket sock = new ServerSocket(4712,100) ; | |
while(true) new Handler(sock.accept()).start() ;} | |
catch(IOException e) { | |
System.err.println(e) ;};}} |
NewerOlder