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_GREP="$(git grep -i -n -E '#[ ]*TODO' -- '*.py')" | |
IFS=$'\n' read -rd '' -a LINES <<<"$GIT_GREP" | |
for LINE in "${LINES[@]}" | |
do | |
IFS=: read FILE LINE MATCH <<<"$LINE" | |
echo "$FILE:$LINE" | |
git blame $FILE -L $LINE,+1 | |
echo | |
done |
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
import glob | |
import os | |
import re | |
# Create the output directory if it doesn't exist | |
output_dir = './output/' | |
if not os.path.exists(output_dir): | |
os.makedirs(output_dir) | |
# Pull in all the input file names. The "**"" means "this directory and any |
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 Hapi = require('hapi'); | |
var server = new Hapi.Server('localhost', 8000); | |
var add = function (a, b, next) { | |
console.log("Calculating..."); | |
next(null, a + b); | |
}; | |
server.method('sum', add, { cache: { expiresIn: 2000 } }); |
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.exports = function(grunt) { | |
grunt.initConfig({ | |
concat: { | |
js: { | |
src: ['js/jquery-2.0.3.min.js', | |
'js/plugins/*.js', | |
'js/site.js'], | |
dest: 'build.js', | |
options: { | |
separator: ';' |
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 'date' | |
def parse_whackness(date_string) | |
year = parse_year(date_string) | |
month, day = guess_day_month(date_string[0..-5]) | |
Date.new(year.to_i, month.to_i, day.to_i) | |
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
<% if current_page.parent %> | |
<h2>Parent</h2> | |
<ul> | |
<li><%= link_to current_page.parent.data.title, current_page.parent %></li> | |
</ul> | |
<% end %> | |
<h2>Children</h2> | |
<ul> | |
<% current_page.children.select { |p| p.ext == ".html" && p.data.title }.each do |resource| %> |
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
defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Max (editable)" 80 | |
defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Min (editable)" 48 | |
defaults write com.apple.BluetoothAudioAgent "Apple Initial Bitpool (editable)" 40 | |
defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool" 48 | |
defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool Max" 53 | |
defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool Min" 48 | |
defaults write com.apple.BluetoothAudioAgent "Stream - Flush Ring on Packet Drop (editable)" 30 | |
defaults write com.apple.BluetoothAudioAgent "Stream - Max Outstanding Packets (editable)" 15 | |
defaults write com.apple.BluetoothAudioAgent "Stream Resume Delay" "0.75" |
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
1. Poke the Box | |
2. Anything You Want | |
3. Snuff (Pratchett) | |
4. Republic, Lost | |
5. Guards! Guards! | |
6. Men At Arms | |
7. Buddy Does Seattle | |
8. Buddy Does Jersey | |
9. Feet of Clay | |
10. Jingo |
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
The quick brown fox jumps over the lazy dog. | |
The quick brown fox jumps over the lazy dog. | |
The quick brown fox jumps over the lazy dog. | |
The quick brown fox jumps over the lazy dog. | |
The quick brown fox jumps over the lazy dog. | |
The quick brown fox jumps over the lazy dog. | |
The quick brown fox jumps over the lazy dog. | |
The quick brown fox jumps over the lazy dog. | |
The quick brown fox jumps over the lazy dog. | |
The quick brown fox jumps over the lazy dog. |
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
~/Development/footest ls | |
component.json | |
~/Development/footest cat component.json | |
{ | |
"name": "footest", | |
"version": "0.0.1", | |
"main": [], | |
"dependencies": { | |
"jquery": "~1", | |
"underscore": "~1.3.3", |
NewerOlder