Skip to content

Instantly share code, notes, and snippets.

namespace :gem
task :spec => :version do
file = File.new(__DIR__ + "fold.gemspec", 'w+')
spec = %{
Gem::Specification.new do |s|
s.name = "fold"
s.version = "#{@version}"
s.platform = Gem::Platform::RUBY
s.has_rdoc = false
s.summary = "Toolkit for creating whitespace active mini-languages. Inspired by Haml. Feature light."
Cache-Control:3600
Connection:keep-alive
Content-Encoding:gzip
Content-Type:application/javascript
Date:Thu, 04 Sep 2014 20:49:28 GMT
etag:"da61b0fbe99dd7a95220af00ffe17231"
last-modified:Wed, 03 Sep 2014 21:00:27 GMT
Server:NetDNA-cache/2.2
Transfer-Encoding:chunked
Vary:Accept-Encoding
form.ajaxForm().ajaxSubmit({
// target: "#divToUpdate",
url: that._options.uploadUrl,
// dataType: "json",
method: "POST",
iframe: true,
success: function(response) {
that.insertImage(response,
form.find(that._options.titleSelector).val(),
form.find(that._options.altSelector).val());
$.password
:blur
if @value === ""
.hide()
var faux = $this.prev()
faux.show().val(faux.attr('default_value'))
.blur()
$.faux-password
Strangly, this breaks with Mongrel when uploading a matching "*.mp3" (possibly others)
@collin
collin / gist:3363
Created July 31, 2008 00:24 — forked from nex3/gist:3262
$.password
:blur
if @value === ""
.hide()
// Eventually, indenting beneath something will set it as the context
.prev()
.show().val(@default_value)
.blur()
module Johnson
module Nodes
attr_accessor :value
class FallThrough < Node
def initialize(_row, _column, value)
@value = value
end
end
end
require 'rubygems'
require 'pathname'
__DIR__ = Pathname.new(__FILE__).dirname.expand_path
eval (__DIR__+".irbrc").read if (__DIR__+".irbrc").exist?
<!doctype html>
<html lang=“en”>
<head>
<meta charset="utf-8">
<title>About | Janet Ferguson Full Stack Web Developer</title>
<!--[if lt IE 9]>
<script src="dist/html5shiv.js"></script>
<![endif]-->
</head>
<body>
@collin
collin / superstition.sh
Created March 26, 2015 19:24
actual stack trace from node
1) "before each" hook:
Error: timeout of 2000ms exceeded. Ensure the done() callback is being called in this test.
at null.<anonymous> (/bin/v0.10.35/lib/node_modules/mocha/lib/runnable.js:170:19)
at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)