Skip to content

Instantly share code, notes, and snippets.

View kirkegaard's full-sized avatar

Christian Kirkegaard kirkegaard

View GitHub Profile
@kirkegaard
kirkegaard / yang_combos.md
Created February 11, 2014 21:57
Super Street Fighter 4: Arcade Edition - Yang Trials

Yang Trials

  • rekka x3
  • h.palm
  • command grab
  • super
  • ultra 1
  • ultra 2
  • lp > cr.hk
  • mp > cr.mp
@kirkegaard
kirkegaard / ssf4ae_trials.txt
Created February 11, 2014 21:52
Super Street Fighter 4: Arcade Edition - Community Trials
SUPER STREET FIGHTER IV: ARCADE EDITION
New Character Trials
Created by: Doopliss/DaDoppen
Table of contents:
1: Opening Words [OW]
{% if extra %}
<form action="{{ path('shortlist_create', {id: extra.id}) }}">
{% else %}
<form action="{{ path('shortlist_create') }}">
{% endif %}
<?php
class Auth
{
protected $realm = 'My Realm';
protected $user = array();
protected $isAuthenticated = false;
protected $nonce = null;
protected $digest = null;
<?php
// ... bootstrap
$app->register(new Silex\Provider\SecurityServiceProvider(), array(
'security.access_rules' => array(
array('^/backend', 'ROLE_ADMIN'),
),
// 'security.role_hierarchy' => array(
// 'ROLE_ADMIN' => array('ROLE_USER', 'ROLE_ALLOWED_TO_SWITCH')
# act like vim
setw -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
# act like GNU screen
@kirkegaard
kirkegaard / soundcloud.com.js
Created June 20, 2012 22:52
clicks the no comments link on soundcloud after about 2.5 sec because of the javascript load delay
function actuateLink(link) {
var allowDefaultAction = true;
if (link.click) {
link.click();
return;
} else if (document.createEvent) {
var e = document.createEvent('MouseEvents');
e.initEvent('click', true, true);
allowDefaultAction = link.dispatchEvent(e);
}

###Amiga 500 (0)

###GameBoy (4)

  • Tetris
  • Kirby’s Dream Land
  • Wario Blast
  • LSDJ

###GameBoy Advance (2)

@kirkegaard
kirkegaard / ae_bounce.js
Created March 9, 2012 13:12
Rubbery bounce effect for After Effects
var amp = .05;
var freq = 4.0;
var decay = 2.0;
var n = 0;
if (numKeys > 0){
n = nearestKey(time).index;
if (key(n).time > time){
n--;
}
#!/usr/bin/env node
/**
* The music indexer for play
*/
var config = require('../config.js').config
, util = require('util')
, fs = require('fs')
, async = require('async')
, colors = require('colors')