Skip to content

Instantly share code, notes, and snippets.

View ruthlessfish's full-sized avatar

Shane Pearson ruthlessfish

View GitHub Profile
@ruthlessfish
ruthlessfish / install-closure.sh
Created March 13, 2012 00:53
Google Closure Tools installer
#!/bin/bash
#
# Google Closure Tools installer
#
# Documentation: https://developers.google.com/closure/
#
INSTALL_PATH=/usr/local/share
#just in case
@ruthlessfish
ruthlessfish / gameof15.html
Created March 14, 2012 18:31
Game of 15
<!DOCTYPE html>
<html lang="en">
<head>
<title>The Game of 15!</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
div {
text-align:center;
}
@ruthlessfish
ruthlessfish / kohana.sh
Created August 20, 2012 20:31
Kohana from the command line
#!/bin/bash
#------------------------------------------------------------------------------
#
# Kohana
#
#
# Run Kohana controllers from the command line
#
# Installation:
#
--
-- PostgreSQL database dump
--
-- Dumped from database version 12.17 (Ubuntu 12.17-0ubuntu0.20.04.1)
-- Dumped by pg_dump version 12.17 (Ubuntu 12.17-0ubuntu0.20.04.1)
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
#!/usr/bin/env php
<?php
// default value
$n = 10;
// set custom n value
if (isset($argv[1]) && is_int($argv[1])) {
$n = $argv[1];
}