Skip to content

Instantly share code, notes, and snippets.

@ir-g
ir-g / hello-world.rs
Created May 3, 2014 21:00
A hello world in rust!
fn main() {
println!("hello?");
}
@ir-g
ir-g / gist:2201853ee42ddf257e68
Last active August 29, 2015 14:00
Matrix, in the shell!
echo -e "\e[1;40m" ; clear ; while :; do echo $LINES $COLUMNS $(( $RANDOM % $COLUMNS)) $(( $RANDOM % 72 )) ;sleep 0.05; done|awk '{ letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()"; c=$4; letter=substr(letters,c,1);a[$3]=0;for (x in a) {o=a[x];a[x]=a[x]+1; printf "\033[%s;%sH\033[2;32m%s",o,x,letter; printf "\033[%s;%sH\033[1;37m%s\033[0;0H",a[x],x,letter;if (a[x] >= $1) { a[x]=0; } }}'
@ir-g
ir-g / lego star wars.md
Created May 18, 2014 14:48
PS2 Game Cheats

Enter codes at shop. Via here.

Password	What it does
BBV889	 Imperial Officer
NNZ316	TIE Fighter Pilot
BNC332	Death Star Trooper
UCK868	Beach Trooper
CVT125	Imperial Spy
PEJ821	Tusken Raider
@ir-g
ir-g / location.json
Last active August 29, 2015 14:02
An example location spec, for Hasreon.
{
"name": "Place 1",
"description":"A place named 'Place 1'",
"adj-n": "Place 3",
"adj-e": false,
"adj-s": "Place 0",
"adj-w": false,
}
@ir-g
ir-g / README.md
Created October 22, 2014 16:32
Basic project template

Title

Content

@ir-g
ir-g / .travis.yml
Last active July 18, 2016 02:46
Travis CI for Github Pages
language: ruby
before_install:
- travis_retry gem install jekyll
- travis_retry gem install kramdown
script: jekyll build --safe
@ir-g
ir-g / app.js
Last active August 29, 2015 14:09
// Require all libraries in use
var mustache = require('mustache');
var harp = require("harp");
var express = require("express");
var http = require("http");
var fs = require("fs");
var cookieparse= require("cookie-parser");
var bodyParser = require('body-parser');
var app = express();
@ir-g
ir-g / README.md
Last active July 28, 2023 03:12
If programming languages were countries, which country would each language represent?

Via quora.

Java: USA -- optimistic, powerful, likes to gloss over inconveniences.

C++: UK -- strong and exacting, but not so good at actually finishing things and tends to get overtaken by Java.

Python: The Netherlands. "Hey no problem, let'sh do it guysh!"

Ruby: France. Powerful, stylish and convinced of its own correctness, but somewhat ignored by everyone else.

@ir-g
ir-g / task1.css
Last active August 29, 2015 14:20
Stuff
/* Set the body style to be... */
body {
/* Set background to be grey */
background: #f5f5f5;
/* Set the main font to be Helvetica, and to fall back to sans-serif. */
font-family: Helvetica, sans-serif;
/* Set the top padding to be 0px, and the padding on the right to be 5%. */
padding: 0 5%;
}
/* Start style for the element with id "message" */
@ir-g
ir-g / toggleSubscription.js
Last active August 29, 2015 14:20
A collection of tools for managing Steam Workshop subscriptions.
SubscribeItem();