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
$ fig up webpack | |
Recreating firesize_webpack_1... | |
Attaching to firesize_webpack_1 | |
webpack_1 | nodejs v0.10.33 | |
webpack_1 | npm WARN package.json firesize@0.2.0 No repository field. | |
webpack_1 | | |
webpack_1 | > node-sass@2.0.1 install /app/node_modules/sass-loader/node_modules/node-sass | |
webpack_1 | > node scripts/install.js | |
webpack_1 | | |
webpack_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
CmdUtils.CreateCommand({ | |
name: "search-domain-name", | |
icon: "http://instantdomainsearch.com/favicon.ico", | |
author: {name: "Pratham Kumar", email: "pratham@pratham.name"}, | |
description: "Checks availabilty of the domain name with com/net/org TLDs.", | |
homepage: "http://pratham.name/", | |
takes: {"example.com": noun_arb_text}, | |
preview: function (html, q) { | |
var params = {name: q.text}; |
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
CmdUtils.CreateCommand({ | |
names: ["eyes like lightning"], | |
arguments: [ {role: 'object', nountype: noun_arb_text, label: 'input'} ], | |
author: {name: "Duane Johnson", email: "duane.johnson@gmail.com"}, | |
license: "GPL", | |
description: "Opens a speed-reading window above the currently selected text.", | |
help: "Select some text, and then use the eyes like lightning command to start reading it.", | |
preview: function(pblock, args) { |
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
require 'json' | |
$log_filename ||= File.expand_path(File.join("..", "ruby.log.json"), File.dirname(__FILE__)) | |
begin | |
if !File.exist?($log_filename) | |
File.open($log_filename, "w") do |f| | |
f.write "[" | |
end | |
end |
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
class FeatureSet | |
include Enumerable | |
def initialize(*features) | |
@features = features | |
end | |
def randomly_choose_one | |
@features[rand(@features.size)] | |
end | |
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
def app_path(path, params={}) | |
if params.size == 0 | |
uri(path) | |
else | |
query_string = "" | |
params.each_pair do |key, value| | |
query_string += key.to_s + '=' + escape(value.to_s) | |
end | |
uri(path) + '?' + query_string | |
end |
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
$ make | |
gcc -c -std=gnu99 -O2 -fdata-sections -ffunction-sections -Wall -o netrap-controller.o netrap-controller.c | |
netrap-controller.c: In function ‘sockport’: | |
netrap-controller.c:151: warning: unused variable ‘port’ | |
netrap-controller.c: In function ‘new_listen_socket’: | |
netrap-controller.c:410: error: ‘buf’ undeclared (first use in this function) | |
netrap-controller.c:410: error: (Each undeclared identifier is reported only once | |
netrap-controller.c:410: error: for each function it appears in.) | |
netrap-controller.c:414: error: ‘listen_socket’ has no member named ‘protocol’ | |
netrap-controller.c: In function ‘new_http_socket’: |
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
# Here's my method that loops over a collection and yields a block | |
def tardies_for_student(student_id, now=Time.zone.now) | |
submissions_by_student_id[student_id].each do |submission| | |
assignment = @assignments_by_id[submission.assignment_id] | |
yield build_tardy(assignment, submission, now) | |
end | |
end | |
# now I know I can do this... |
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
UBUNTU_IP=172.16.232.100 | |
GUEST_DIR=/media/duane | |
MOUNTPOINT=/tmp/archive | |
if [ ! -d "$MOUNTPOINT" ]; then | |
echo "Mount point $MOUNTPOINT does not exist, creating..." | |
mkdir -p $MOUNTPOINT | |
fi | |
FIRSTDIR=`ls -1 $MOUNTPOINT` |
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
A succinct explanation of the history, problem, and potential solution. | |
Here is a chart I made from the USPTO data to see if the story you tell | |
matches the data. I think it clearly does: | |
http://db.tt/CNanl3IY | |
Also, note how patent volume is essentially "pre-internet" and "post- | |
internet" (circa 1990). |