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
var http = require('http'), | |
sys = require('sys'); | |
var server = http.createServer(function(request, response) { | |
request.addListener('end', function() { | |
response.writeHead(200, { | |
'Content-Type': 'text/plain' | |
}); | |
response.write(sys.inspect(request)); | |
response.end(); |
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
require 'bitly' | |
module Jekyll | |
class BitlyFilterCache | |
def initialize | |
@result_cache = {} | |
config = Jekyll.configuration({}) | |
@username = config['bitly']['username'] | |
@key = config['bitly']['api_key'] | |
Bitly.use_api_version_3 |
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
// global colour variables: | |
@blue = #3CF; | |
@red = #DF1F45 | |
#content { | |
background: #eee; | |
padding: 25px; | |
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
// Jekyll Pygments syntax highlighter styles | |
// Color scheme | |
$base03: #002B36 | |
$base02: #073642 | |
$base01: #586E75 | |
$base00: #657B83 | |
$base0: #839496 | |
$base1: #93A1A1 | |
$base2: #EEE8D5 |
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
:%s/\r//g |
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
## | |
# Better Errors plugin on Padrino | |
# | |
# https://github.com/charliesome/better_errors | |
# | |
GEMFILE = <<-GEMFILE | |
# Better Errors | |
group :development do |
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
module Foobar | |
class App < Padrino::Application | |
enable :sessions | |
configure :development do | |
use BetterErrors::Middleware | |
BetterErrors.application_root = PADRINO_ROOT | |
set :protect_from_csrf, except: %r{/__better_errors/\d+/\w+\z} | |
end | |
.... |
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
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
connect: { | |
server: { | |
options: {}, | |
} | |
}, |
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
add_filter("mce_external_plugins", "tomjn_mce_external_plugins"); | |
function tomjn_mce_external_plugins($plugin_array){ | |
$plugin_array['typekit'] = get_template_directory_uri().'/typekit.tinymce.js'; | |
return $plugin_array; | |
} |
OlderNewer