I hereby claim:
- I am nicholaides on github.
- I am nicholaides (https://keybase.io/nicholaides) on keybase.
- I have a public key whose fingerprint is 8144 058C 973F 358A D27D D84F 52DB F822 9A78 6E8B
To claim this, I am signing this object:
| # Like sh, but | |
| # 1. lets you specify a file to redirect output to and | |
| # 2. removes the file if there's an error | |
| def sh_redirect(*args, out:) | |
| sh(*args, { out: out }, {}) do |ok, status| | |
| unless ok | |
| rm_f out | |
| raise "Command failed: `#{args.join(' ')}`\nDeleted `#{out}`" | |
| end | |
| end |
| # Usage: rake -P | ruby rake-prereqs-to-dot.rb | dot -Tpng | imgcat | |
| require 'pp' | |
| tasks = {} | |
| dependencies = nil | |
| ARGF.each_line.lazy.map(&:strip).each do |line| | |
| if match = line.match(/^rake (.*)/) | |
| dependencies = tasks[match[1]] ||= [] |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
I hereby claim:
To claim this, I am signing this object:
PromptWorks is a burgeoning software consulting company based in Philadelphia, PA seeking a Senior Software Engineer.
Senior software engineer responsibilities include:
Tasks:
| require 'attributes' | |
| module StackerBee | |
| class Configuration | |
| include Attributes | |
| attribute :ssl_verify?, default: proc { true } | |
| attribute :url | |
| attribute :secret_key | |
| attribute :api_key |
| def decode(data) | |
| JSON.parse(Zlib::Inflate.inflate(data.join.each_byte.to_a.pack('C*'))) | |
| end | |
| # usage: decode(APP_LOGGER.notify(some_data)) |
| account | |
| accountdetails | |
| accountid | |
| accounttype | |
| aclid | |
| acltype | |
| action | |
| activeviewersessions | |
| affinitygroup | |
| algorithm |
| window.Jade = require('jade'); | |
| JadeTemplates = {}; | |
| JadeTemplates["some_template"] = Jade.compile("li.feedback.exercise_item.checkbox\n input(type=\"hidden\", name=\"exercise[feedback_items_attributes][$order][_type]\", value=\"Checkbox\")\n\n - if (this.is_editing)\n != partial(\"item_actions\")\n\n .body\n .checkbox\n input(type=\"checkbox\", disabled, checked)\n\n .title\n - if (this.is_editing)\n input(name=\"exercise[feedback_items_attributes][$order][title]\", value=this.title, placeholder=\"E.g. "I completed this exercise"\", \"data-bvalidator\"=\"required\")\n\n - if (this.is_viewing)\n label= this.title\n"); | |
| JadeTemplates["exercises/_Image"] = Jade.compile("a.image(href=this.file_url)\n\timg(src=this.file_thumb_url)\n"); | |
| // defines the helpers "exercise_item" and "partial" |