a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!
// ORIG_SIZE: 18,826,943,581 | |
// PACKED_SIZE: 13,203,414,226 | |
package net.kzk9; | |
import java.io.*; | |
import java.util.*; | |
import org.apache.hadoop.conf.*; | |
import org.apache.hadoop.hbase.*; | |
import org.apache.hadoop.hbase.client.*; |
require 'rubygems' | |
require 'activesupport' | |
require 'bad_ass_extensions' | |
require 'nokogiri' | |
require 'open-uri' | |
class GitHubber | |
attr_accessor :header, :name, :date, :date_string, :links, :post | |
def initialize(hash, post) |
require 'rubygems' | |
require "open4" | |
require "stringio" | |
require "ruby-debug" | |
n = 424242 | |
muchoutput = %( ruby -e' #{ n }.times { $stderr << 42.to_s }' ) | |
stdin, stdout, stderr = '', '', '' |
import inspect | |
import sys | |
def src(obj): | |
"""Read the source of an object in the interpreter.""" | |
def highlight(source): | |
try: | |
import pygments |
a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!
require 'httparty' | |
require 'rdf' | |
require 'rdf/ntriples' | |
require 'rdf/nquads' | |
require 'json' | |
class Fuseki | |
include HTTParty | |
headers 'Accept' => 'text/plain; charset=utf-8' | |
base_uri 'http://localhost:3030/' | |
grammar SQL | |
rule statement | |
select_statement <Veritas::SQL::Select> | |
| set_operation_statement <Veritas::SQL::SetOperation> | |
| "(" [\s]* statement [\s]* ")" | |
end | |
rule set_operation_statement | |
"(" [\s]* left:select_statement <Veritas::SQL::Select> [\s]* ")" | |
[\s]* set_operator ([\s]+ distinct:`DISTINCT`)? [\s]* |
# | |
# Wide-open CORS config for nginx | |
# | |
location / { | |
if ($request_method = 'OPTIONS') { | |
add_header 'Access-Control-Allow-Origin' '*'; | |
# |
Copyright (c) 2011 pibi, http://pianobit.com | |
Permission is hereby granted, free of charge, to any person obtaining | |
a copy of this software and associated documentation files (the | |
"Software"), to deal in the Software without restriction, including | |
without limitation the rights to use, copy, modify, merge, publish, | |
distribute, sublicense, and/or sell copies of the Software, and to | |
permit persons to whom the Software is furnished to do so, subject to | |
the following conditions: |
"""A caseless dictionary implementation.""" | |
from collections import MutableMapping | |
class CaselessDictionary(MutableMapping): | |
""" | |
A dictionary-like object which ignores but preserves the case of strings. |