- https://github.com/jason0x43/jc-nest
- https://github.com/jason0x43/jc-weather
- https://github.com/sampayo/Alfred-WorkFlows/tree/master/Audio%20Switch
- https://github.com/willfarrell/alfred-caniuse-workflow
- https://github.com/willfarrell/alfred-pkgman-workflow
- https://github.com/willfarrell/alfred-encode-decode-workflow
- https://github.com/obstschale/NSC
- http://www.alfredforum.com/topic/805-colors—convert-color-formats-access-the-os-x-color-panel/
- http://www.alfredforum.com/topic/1558-datetime-format-converter-convert-between-unix-timestamps-and-datetime-strings/
- https://github.com/gharlan/alfred-github-workflow
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
$port = 3000 # UDP port assigned by cloud provider | |
require 'socket' | |
u1 = UDPSocket.new | |
u1.bind "0.0.0.0", $port | |
# to be saved to remote postgres database | |
hex_dgram = u1.recvfrom(53)[0] | |
p hex_dgram.unpack('H*')[0] |
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 LmdDecoder | |
class FieldToByteMapper | |
FIELD_TO_BYTE = { | |
full_message: { | |
start: 0, | |
length: -1 | |
}, | |
options_present: { | |
start: 0, | |
length: 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
@Comments = | |
ready: -> | |
@bindComments() | |
@initializeComments() | |
load: -> | |
@initializeComments() | |
bindComments: -> | |
$(document).on 'click', "a[data-comment]", (e) => |
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
SourceAnnotationExtractor::Annotation.register_extensions( | |
"coffee", "yml", "yaml", "gemspec", "feature") { |tag| /#\s*(#{tag}):?\s*(.*)$/ } | |
SourceAnnotationExtractor::Annotation.register_extensions( | |
"scss", "sass", "less") { |tag| /\/\/\s*(#{tag}):?\s*(.*)$/ } | |
SourceAnnotationExtractor::Annotation.register_extensions( | |
"haml") { |tag| /-\s*#\s*(#{tag}):?\s*(.*)$/ } | |
SourceAnnotationExtractor::Annotation.register_extensions( | |
"slim") { |tag| /\/\s*\s*(#{tag}):?\s*(.*)$/ } |
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
/ ... | |
javascript: | |
Poller.startPolling = true | |
Poller.poll_url = "#{comment_path @comment, format: :js}" |
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 Reading < ActiveRecord::Base | |
def persist_zone_events | |
device.zones.outside.intersecting(lat, lon).each do |zone| | |
zone_events.create status: :inside, zone: zone | |
end | |
device.zones.inside.not_intersecting(lat, lon).each do |zone| | |
zone_events.create status: :outside, zone: zone | |
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
require 'bundler/setup' | |
require 'yaml' | |
require 'selenium-webdriver' | |
require 'dotenv'; Dotenv.load | |
basic_auth = "#{ENV.fetch('BS_USERNAME')}:#{ENV.fetch('BS_API_KEY')}" | |
config = YAML.load_file("win7-ie10.yml") | |
caps = Selenium::WebDriver::Remote::Capabilities.new config | |
driver = Selenium::WebDriver.for( |
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 'formula' | |
class Postgis < Formula | |
url 'http://postgis.refractions.net/download/postgis-1.5.3.tar.gz' | |
homepage 'http://postgis.refractions.net/' | |
sha256 'a2334f8b229446c0497d48a430a40152a3b71a5da02f414a0340a0a025d416cf' | |
head 'http://svn.osgeo.org/postgis/trunk/', :using => :svn | |
depends_on 'postgresql91' |
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
# ~/.bash_profile | |
# Eric Boehs's git aliases | |
alias gb='git branch' | |
alias gba='git branch -a' | |
alias gc='git commit -v' | |
alias gd='git diff | mate' | |
alias gl='git pull' | |
alias gp='git push' | |
alias gst='git status' |