This presentation is based on this article from brewhouse.io.
- László Bácsi, @icanscale, github/lackac
- R3
#!/usr/bin/env bash | |
pbpaste \ | |
| ruby -ne ' | |
BEGIN { $blanks = [] } | |
if ($_ =~ /^\s*$|^Excerpt From: */) | |
$blanks << $_ | |
else | |
puts($blanks) | |
$blanks = [] |
C 1.0000d = 8h ; 8-hour work days | |
D £1,000.00 ; default currency and formatting | |
; First approach: automatically set value for work delivered by person at their | |
; current rate | |
; Issue: since time is seconds-based the day rate needs to be divided by 1 day | |
; to arrive at the 'second rate'. This somehow is rounded to two decimals which | |
; means that the below is incorrect when being used. It will result in a | |
; multiplier that's either `0.01` or `0.02`. | |
= /^Work:Client:Project:Alice/ |
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
classNames: ['block'], | |
classNameBindings: ['cssClasses'], | |
cssClasses: ['foo', 'bar', 'baz'] | |
}); |
This presentation is based on this article from brewhouse.io.
It would be nice if you could just drag a link to your toolbar, but GitHub sanitizes javascript:
links in Markdown (which is a good thing, really). Therefore you'll have to do this manually. Create a bookmark with the following URL content:
javascript:(function()%7Bvar%20s%3Ddocument.createElement('script')%3Bs.src%3D'https%3A%2F%2Fgist.githack.com%2Flackac%2F03c6d1921bde0b97e050%2Fraw%2Fcollapsible_jira_board.js'%3Bdocument.getElementsByTagName('script')%5B0%5D.parentNode.appendChild(s)%7D)()
I hereby claim:
To claim this, I am signing this object:
http://blog.codeclimate.com/blog/2012/10/17/7-ways-to-decompose-fat-activerecord-models/
/* this is the settings I use for the Solarized Light theme, change | |
* the colors and loose the import if you're using another theme */ | |
@import "variables"; | |
.pane .editor-colors { | |
background-color: @base2; | |
} | |
.pane.active .editor-colors { | |
background-color: @base3; |
# Find the appropriate setting for the provided key | |
module.exports = config = (key) -> | |
# return setting from environment variable | |
if env_value = process.env[key.toUpperCase()] | |
try | |
return JSON.parse(env_value) | |
catch err | |
if err instanceof SyntaxError | |
return env_value | |
else |
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'softlayer_api' | |
if ARGV.size != 3 | |
STDERR.puts "USAGE: #{$0} hostname cores mem" | |
exit 1 | |
end |