This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function echoRequest(ReqtRequest $request) { | |
$resp = new RestResponseOk(array( | |
'url' => $url, | |
'verb' => $verb, | |
'headers' => $headers, | |
'args' => $get_args, | |
'body' => $body, | |
), $request); | |
$resp->render(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
RewriteRule ^index.php$ - [L] | |
RewriteRule .* index.php [L,QSA] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# git-svn-rebase-all | |
# by Dave Ingram <http://github.com/dingram/> | |
# | |
SHELL=${SHELL:-/bin/bash} | |
curbranch=$(git symbolic-ref HEAD 2>/dev/null) | |
if [ $? -eq 0 ]; then | |
curbranch=${curbranch##*/} | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
# ------------------------------------------------------------------------------ | |
# Fish style live command coloring. | |
# ------------------------------------------------------------------------------ | |
# Token types styles. | |
# See http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#SEC135 | |
ZLE_RESERVED_WORD_STYLE='bold' | |
ZLE_ALIAS_STYLE='bold' | |
ZLE_BUILTIN_STYLE='bold' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl -w | |
use LWP::UserAgent; | |
use HTTP::Request::Common; | |
use HTML::Entities; | |
use Getopt::Long; | |
# Generate lipsum (courtesy of lipsum.com) | |
# probably needs neatening up here and there | |
# comments? who needs comments? perl is easy to understand... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function numToCol(c) { | |
var r = ''; | |
if (c > 25) { | |
r = String.fromCharCode('A'.charCodeAt(0) + parseInt(c / 26, 10) - 1); | |
} | |
r = r + String.fromCharCode('A'.charCodeAt(0) + parseInt(c % 26, 10)); | |
return r; | |
} | |
function getCellForDate_(d) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"***************************************************************************** | |
" Vim Sessions | |
"***************************************************************************** | |
" ignore 'options' because of latex-suite (would be pointless to save that!) | |
set sessionoptions=blank,curdir,folds,help,resize,tabpages,winsize | |
if has('win32') || has('win64') | |
set sessionoptions+=slash,unix | |
map <leader>ss :mksession! ~/_vimsession<cr> | |
map <leader>sr :source ~/_vimsession<cr> | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.___gcfg={lang:'en-GB'};var _gaq=_gaq||[];_gaq.push(['_setAccount','UA-123456-9']);_gaq.push(['_trackPageview']);!function(d,s){var st=d.getElementsByTagName(s)[0],j=function(i,u){if(d.getElementById(i))return;var js=d.createElement(s);js.id=i;js.async=true;js.src=u;st.parentNode.insertBefore(js,st)};setTimeout(function(){j("twitter-wjs","//platform.twitter.com/widgets.js");j("facebook-jssdk","//connect.facebook.net/en_GB/all.js#xfbml=1");j("gplusone-sdk","https://apis.google.com/js/plusone.js")}, 0);j("ga-sdk",('https:'==d.location.protocol?'https://ssl':'http://www')+'.google-analytics.com/ga.js')}(document,'script'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# By Dave Ingram | |
export TZ="Europe/London" | |
case $( date +%I ) in | |
01) DOCTOR='William Hartnell' ;; | |
02) DOCTOR='Patrick Troughton' ;; | |
03) DOCTOR='Jon Pertwee' ;; | |
04) DOCTOR='Tom Baker' ;; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../components/polymer/polymer.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
#core_scaffold { | |
position: absolute; | |
top: 0px; | |
right: 0px; |
OlderNewer