Skip to content

Instantly share code, notes, and snippets.

View srw's full-sized avatar

Nektra Advanced Computing / Data Big Bang / CoinFabrik srw

View GitHub Profile

Keybase proof

I hereby claim:

  • I am srw on github.
  • I am sebastianwain (https://keybase.io/sebastianwain) on keybase.
  • I have a public key whose fingerprint is 2870 27E1 5714 8514 5460 4F5E 0362 8A8A A6DB BE42

To claim this, I am signing this object:

@srw
srw / Contract Killer 3.md
Created September 24, 2016 20:19 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

public class roulette {
public static void main(String [] args) {
int n=4;
double [] weight = new double [n];
weight[0]=0.4;
weight[1]=0.3;
weight[2]=1.2;
weight[3]=0.1;
double max_weight=1.2;
int [] counter = new int[n];
# blog post: http://blog.slashpoundbang.com/post/3385815540/how-to-generate-an-opml-file-with-ruby
require 'open-uri'
require 'builder'
require 'truffle-hog'
require 'nokogiri'
# CHANGE ME
urls = %w(http://example.com/ http://example.org/)
@srw
srw / hnsearch.py
Created November 12, 2011 12:19
Avoiding HNSearch API limits
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Done under Visual Studio 2010 using the excelent Python Tools for Visual Studio
# http://pytools.codeplex.com/
#
# Article on ideas vs execution at: http://blog.databigbang.com/ideas-and-execution-magic-chart/
import urllib2
import json