Skip to content

Instantly share code, notes, and snippets.

View mattparlane's full-sized avatar

Matt Parlane mattparlane

View GitHub Profile
@mattparlane
mattparlane / gist:9824481
Created March 28, 2014 03:11
gulpfile.js
var gulp = require('gulp'),
gutil = require('gulp-util'),
coffee = require('gulp-coffee'),
yaml = require('./js/gulp/regen-yaml.js');
var paths = {
coffee: ['coffee/**/*.coffee', 'coffee/**/*.litcoffee'],
yaml: ['structure.yaml', 'language-strings.yaml'],
};
@mattparlane
mattparlane / gist:9756123
Created March 25, 2014 06:20
done() handler not firing for DELETE request when Content-Type header is set
require 'sinatra'
get '/' do
'
<script src=//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.js></script>
<script>
$(function() {
$("a").click(function() {
var url = $(this).data("url");
$.ajax({
@mattparlane
mattparlane / gist:9756121
Created March 25, 2014 06:19
done() handler not firing for DELETE request when Content-Type header is set
require 'sinatra'
get '/' do
'
<script src=//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.js></script>
<script>
$(function() {
$("a").click(function() {
var url = $(this).data("url");
$.ajax({
wg@wgdev:~/topaz$ ~/pypy/rpython/bin/rpython -Ojit targettopaz.py
[translation:info] 2.7.3 (140cb204a130, Jul 02 2013, 22:00:22)
[translation:info] [PyPy 2.1.0-alpha0 with GCC 4.6.3]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc'
[translation:info] Translating target as defined by targettopaz
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-default-1/gcctest.c -o /tmp/usession-default-1/gcctest.o
[platform:execute] gcc /tmp/usession-default-1/gcctest.o -pthread -lrt -o /tmp/usession-default-1/gcctest
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-default-1/gcctest.c -o /tmp/usession-default-1/gcctest.o
[platform:execute] gcc /tmp/usession-default-1/gcctest.o -pthread -lrt -o /tmp/usession-default-1/gcctest
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-default-1/platcheck_0.c -o /tmp/usession-default-1/platcheck_0.o
Oct 7 10:13:46 nz1 wg-ruby: NoMethodError - undefined method `unpack' for nil:NilClass:
Oct 7 10:13:46 nz1 wg-ruby: #011/home/wg/.rvm/gems/jruby-1.6.8/gems/moped-1.2.5/lib/moped/connection.rb:88:in `read'
Oct 7 10:13:46 nz1 wg-ruby: #011/home/wg/.rvm/gems/jruby-1.6.8/gems/moped-1.2.5/lib/moped/connection.rb:169:in `with_connection'
Oct 7 10:13:46 nz1 wg-ruby: #011/home/wg/.rvm/gems/jruby-1.6.8/gems/moped-1.2.5/lib/moped/connection.rb:86:in `read'
Oct 7 10:13:46 nz1 wg-ruby: #011/home/wg/.rvm/gems/jruby-1.6.8/gems/moped-1.2.5/lib/moped/protocol/query.rb:140:in `receive_replies'
Oct 7 10:13:46 nz1 wg-ruby: #011/home/wg/.rvm/gems/jruby-1.6.8/gems/moped-1.2.5/lib/moped/connection.rb:125:in `receive_replies'
Oct 7 10:13:46 nz1 wg-ruby: #011org/jruby/RubyArray.java:2347:in `collect'
Oct 7 10:13:46 nz1 wg-ruby: #011/home/wg/.rvm/gems/jruby-1.6.8/gems/moped-1.2.5/lib/moped/connection.rb:124:in `receive_replies'
Oct 7 10:13:46 nz1 wg-ruby: #011/home/wg/.rvm/gems/jruby-1.6.8/gems/moped-1.2.5/lib/moped/node.rb: