View data-markdown.user.js
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
// ==UserScript== | |
// @name *[data-markdown] | |
// @version 2.0 | |
// @description Use Markdown, sometimes, in your HTML. | |
// @author Paul Irish <http://paulirish.com/> and others | |
// @include * | |
// ==/UserScript== | |
// Contribs: | |
// Thaddee Tyl <http://espadrine.github.com/> |
View -
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
~ Asciicast recording started. Hit ^D (that's Ctrl+D) or type "exit" to finis | |
h. | |
4:09PM passcod ~/nanobot | |
≈ python -v | |
import _frozen_importlib # frozen | |
import imp # builtin | |
import sys # builtin | |
# installing zipimport hook | |
import 'zipimport' # <class '_frozen_importlib.BuiltinImporter'> |
View polyomino.py
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
# -*- coding: utf-8 -*- | |
#!/usr/bin/env python | |
import sys | |
class Polyomino(object): | |
def __init__(self, iterable): | |
self.squares = tuple(sorted(iterable)) | |
def __repr__(self): |
View gist:6350405
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
[10:26:16] <devinus> phinze: apparently Oracle won't let you download the dmg until you have a cookie in your browser | |
[10:26:19] <devinus> grooosss | |
[10:26:31] <phinze> devinus: ewww | |
[10:27:25] <phinze> stupid oracle | |
[10:27:38] <phinze> here's somebody trying to work out how to script it http://ivan-site.com/2012/05/download-oracle-java-jre-jdk-using-a-script/ | |
[10:27:53] <phinze> but then we're getting into annoyingly murky territory | |
[10:29:47] <devinus> phinze: should i give up or is there a way to pass a cookie along? | |
[10:45:24] <phinze> devinus: looking at CurlDownloadStrategy quick | |
[10:46:25] <devinus> phinze: in curl, this works: curl -b gpw_e24=http%3A%2F%2Fwww.oracle.com -O -L http://download.oracle.com/otn-pub/java/jdk/7u25-b15/jdk-7u25-macosx-x64.dmg | |
[10:46:40] <phinze> so i guess theoretically we could subclass it and override CurlDownloadStrategy#_fetch |
View libwww.diff
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
diff --git a/Library/src/Makefile.am b/Library/src/Makefile.am | |
index be1857d..5139eca 100644 | |
--- a/Library/src/Makefile.am | |
+++ b/Library/src/Makefile.am | |
@@ -405,7 +405,6 @@ BUILT_SOURCES = \ | |
HTAtom.h \ | |
HTBInit.h \ | |
HTBTree.h \ | |
- HTBind.h \ | |
HTBind.h \ |
View users_controller.coffee
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
registerNewUser: -> | |
@session.flush().then (models)=> | |
newUser = @get('content') | |
@transitionToRoute('user', newUser) | |
, (response)-> | |
console.log response |
View hookz.rb
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 Lolcommits | |
class Hookz < Plugin | |
def initialize(runner) | |
super | |
self.name = 'hookz' | |
self.default = true | |
end | |
def run |
View gist:6096628
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
exports.user = function (req, res) { | |
User.findById(req.params.id, function (err, user) { | |
if (err) { | |
res.send(err); | |
} else { | |
Friend.findOne({ | |
userId: req.signedCookies.userid | |
}, function (err, user2) { | |
console.log('hit1'); | |
console.log(user2); |
View PKGBUILD
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
# Contributor: Leslie P. Polzer <polzer@gnu.org> | |
# Contributor: bender02 at archlinux dot us | |
# Contributor: Felix Saparelli <me@passcod.name> | |
pkgname=mongoose | |
pkgver=3.7 | |
pkgrel=1 | |
pkgdesc="Small and quick-to-use web server; https/php/cgi support" | |
arch=('i686' 'x86_64') | |
license=('MIT') |
View index.html
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
<script type="text/javascript" src="jquery.min.js"></script> | |
<script type="text/javascript" src="script.js"></script> | |
<style> | |
nav#main a[data-current] { color: red; } | |
</style> | |
<nav id="main"> | |
<a href="#!/">A</a> | |
<a href="#!/derp">B</a> |
NewerOlder