Skip to content

Instantly share code, notes, and snippets.

View zeroeth's full-sized avatar
🤖
🐱 🤖 🐱 🤖

[0] zeroeth

🤖
🐱 🤖 🐱 🤖
View GitHub Profile
@zeroeth
zeroeth / Gemfile
Created April 11, 2012 05:26
Rails Lightweight Stack. Most of this is detailed on Crafting Rails Applications - http://pragprog.com/book/jvrails/crafting-rails-applications
source :rubygems
# We are not loading Active Record, nor Active Resources etc.
# We can do this in any app by simply replacing the rails gem
# by the parts we want to use.
gem "actionpack", "~> 3.2"
gem "railties", "~> 3.2"
gem "tzinfo"
# Let's use thin
@zeroeth
zeroeth / refresh.html
Created June 19, 2012 14:54 — forked from anonymous/refresh.html
html review
// helpful links
http://www.w3schools.com/html/html_forms.asp
http://css-tricks.com/
http://960.gs/
<html>
<head>
<title>my title</title>
<style type="text/css">
li { color: red }
#!/usr/bin/ruby
# inkscape -b '#ffffff' -e circles.png -w 3000 circles.svg
# gem install color-tools
require 'color'
# http://code.google.com/p/chipmunk-physics/
# svn checkout http://chipmunk-physics.googlecode.com/svn/trunk/ chipmunk-physics-read-only
# cmake -D BUILD_RUBY_EXT=ON .
# make && sudo make install
@zeroeth
zeroeth / README.mkd
Created July 9, 2012 19:18 — forked from christophermanning/README.md
Voronoi Diagram with Force Directed Nodes and Delaunay Links

Created by Christopher Manning

Summary

Nodes are linked to nodes in neighboring cells. The cell's color is a function of its area.

Controls

  • Drag the nodes to interact with the diagram.
  • Use the mousewheel to add/remove nodes.
@zeroeth
zeroeth / crimea.csv
Created August 2, 2012 21:44 — forked from mbostock/.block
Stacked Bar Chart
date wounds other disease
5/1854 0 95 105
6/1854 0 40 95
7/1854 0 140 520
8/1854 20 150 800
9/1854 220 230 740
10/1854 305 310 600
11/1854 480 290 820
12/1854 295 310 1100
1/1855 230 460 1440
@zeroeth
zeroeth / crimea.csv
Created August 3, 2012 20:18 — forked from mbostock/.block
Sideways stacked bar timeseries
95 0
45 1
10 2
30 1
80 2
5 0
@zeroeth
zeroeth / gist:3959703
Created October 26, 2012 16:17 — forked from jessedearing/gist:2351836
Create self-signed SSL certificate for Nginx
#!/bin/bash
echo "Generating an SSL private key to sign your certificate..."
openssl genrsa -des3 -out myssl.key 1024
echo "Generating a Certificate Signing Request..."
openssl req -new -key myssl.key -out myssl.csr
echo "Removing passphrase from key (for nginx)..."
cp myssl.key myssl.key.org
openssl rsa -in myssl.key.org -out myssl.key
@zeroeth
zeroeth / AsciiArtGenerator
Created December 10, 2012 06:21 — forked from mortennobel/AsciiArtGenerator
Create image with ASCII chars ordered by intensity
import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.util.*;
/**
* Create an ASCII letters sorted by intensity. By including the inverse letters
* the number of combinations are increased.
*
#!/bin/bash
# modified from https://gist.github.com/1288596 by http://github.com/jehiah
# JAN 01 2013 by http://github.com/zeroeth
#
# Show distance between local master and remote branches
# list how far apart from local master each branch is
echo "Distance from master:"
git for-each-ref --format="%(refname:short) %(upstream:short)" refs/heads | \
@zeroeth
zeroeth / 1.png
Created January 25, 2013 21:02 — forked from jeffkreeftmeijer/1.png
1.png