-
Can't debug in minimized pane
-
console.log(1, 2, 3)
shows123
(not1 2 3
) -
console.log(undefined, "undefined")
showsundefinedundefined
. Ditto fornull
and"null"
-
Object properties that are on prototype chain are displayed in console (e.g.
console.log("foo")
displays object with anything defined onString.prototype
) -
Can't inspect logged object (by clicking on it) [CLOSED BY DESIGN]
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
#!/bin/bash | |
# from http://www.hilarymason.com/blog/bash-get-http-response-codes-for-a-list-of-urls/ | |
while read line | |
do | |
echo $(curl --write-out %{http_code} --silent --output /dev/null $line) | |
done <$1 |
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
from twisted.internet import defer, fail, succeed | |
from twisted.python import failure | |
class DeferredMemoizer(object): | |
def __init__(self, func): | |
self._func = func | |
self._pool = {} | |
self._results = {} |
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
DO WHAT THE **** YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Eli Perelman http://eliperelman.com | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE **** YOU WANT TO PUBLIC LICENSE |
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
/* sample aggregate command queries */ | |
// make sure we're using the right db; this is the same as "use mydb;" in shell | |
db = db.getSisterDB("aggdb"); | |
// just passing through fields | |
var p1 = db.runCommand( | |
{ aggregate : "article", pipeline : [ | |
{ $project : { | |
tags : 1, | |
pageViews : 1 |
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
$ git branch -r --merged | | |
grep origin | | |
grep -v '>' | | |
grep -v master | | |
xargs -L1 | | |
awk '{split($0,a,"/"); print a[2]}' | | |
xargs git push origin --delete |
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
#! /usr/bin/env python | |
import sys | |
import os | |
from PySide.QtCore import * | |
from PySide.QtGui import * | |
from PySide.QtWebKit import * | |
app = QApplication(sys.argv) | |
app.setQuitOnLastWindowClosed(True) |
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 express = require('express') | |
var app = express.createServer(); | |
var JSHINT = require('jshint').JSHINT; | |
app.use(express.bodyParser()); | |
app.get('/', function(req, res){ | |
res.send('hello world'); | |
}); |
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
#!/bin/sh | |
# purge-cache: Script to purge varnish cache. Defaults are defined in | |
# /etc/default/varnish. | |
# | |
# Cosimo <[email protected]> | |
# Based on reload-vcl, by Stig Sandbeck Mathisen <ssm at debian dot org> | |
# Settings | |
defaults=/etc/default/varnish |
I want to preface this rant. I appreciate diversity and competition. Also, I'm not just an MS or Apple hater. If they make a great product I'll consider using it. I try to look past brands and use products that solve problems well.
UI design is all about disclosing information. Shapes, proportions, perspectives, colors, reactions and transformations! There are infinite ways to go about expressing ideas when speaking the language of design. In order to prevent a colosal goat fuck of a UI, each expression must be executed judiciously.