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 / 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 / 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();
@ir-g
ir-g / 0_reuse_code.js
Last active September 14, 2015 15:38
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ir-g
ir-g / index.php
Created June 10, 2012 16:44
Lite_CMS Paging system.
<html>
<head>
<title>Pages</title>
<script type="text/javascript">
WebFontConfig = {
google: { families: [ 'Ubuntu:300:latin' ] }
};
(function() {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +