View .nx_react_react_native.projections.json
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
{ | |
"*.tsx": { | |
"alternate": "{}.test.tsx", | |
"type": "source" | |
}, | |
"*.ts": { | |
"alternate": "{}.test.ts", | |
"type": "source" | |
}, | |
"*.test.tsx": { |
View keybase.md
Keybase proof
I hereby claim:
- I am jwworth on github.
- I am jwworth (https://keybase.io/jwworth) on keybase.
- I have a public key ASCQ0HZP2qsuBnqHaZ4f_RWQmQQbL98412fii0hHEdChZQo
To claim this, I am signing this object:
View Split Deckset-style Markdown Slides in Separate Files
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 ruby | |
slides_to_split = File.read('slides.md') | |
slide_data = slides_to_split.split("\n---\n\n") | |
slide_data.each_with_index do |data, index| | |
File.write("slides/#{index.to_s.rjust(2, '0')}.md", data) | |
end |
View React-Rails + Redux Vim Projections
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
{ | |
"app/javascript/packs/components/*.js": { | |
"command": "component" | |
}, | |
"app/javascript/packs/containers/*.js": { | |
"command": "container" | |
}, | |
"app/javascript/packs/reducers/*.js": { | |
"command": "reducer" | |
}, |
View logrotate.conf
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
# Logrotater: | |
# - Daily | |
# - Timestamped | |
# - Doesn't error on missing log files | |
# - Keeps seven copies | |
# - Truncates log files (allows Rails to start writing to the new log file without | |
# a restart) | |
/var/app/current/log/production.log { | |
daily |
View react_on_rails.projections.json
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
{ | |
"client/app/actions/*.js": { | |
"command": "actions" | |
}, | |
"client/app/containers/*.js": { | |
"command": "container" | |
}, | |
"client/app/components/*.jsx": { | |
"command": "component" | |
}, |
View phoenix_1_3.projections.json
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
{ | |
"lib/tilex_web/models": { | |
"type": "model" | |
}, | |
"lib/tilex_web/models/*.ex": { | |
"type": "model", | |
"alternate": "test/models/{}_test.exs", | |
"template": [ | |
"defmodule {project|camelcase|capitalize|basename}.{camelcase|capitalize|dot} do", | |
" use {project|camelcase|capitalize|basename}Web, :model", |
View page_objects.projections.json
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
{ | |
"spec/support/pages/*_page.rb": { | |
"command": "page", | |
"template": [ | |
"module Pages", | |
" class {camelcase|capitalize}Page < Page", | |
" end", | |
"end", | |
] | |
}, |
View led.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
# LED Clock: You are (voluntarily) in a room that is completely dark except for | |
# the light coming from an old LED digital alarm clock. This is one of those | |
# clocks with 4 seven segment displays using an HH:MM time format. The clock is | |
# configured to display time in a 24 hour format and the leading digit will be | |
# blank if not used. What is the period of time between when the room is at its | |
# darkest to when it is at its lightest? | |
def compute_brightness(units) | |
cells_per_number = [ 6, 2, 5, 5, 4, 5, 6, 3, 7, 6 ] |
NewerOlder