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) Backup your wieghtbot data and then download it from: https://weightbot.com/ | |
# 2) Get a consumer_key and a consumer_secret from: https://dev.fitbit.com/apps/new | |
# 3) Use the key/secret from step 2 on https://dev.fitbit.com/apps/oauthtutorialpage to obtain a user_id/token/secret | |
# 4) install fitgem `gem install fitgem` | |
# 5) run the following from the console/irb | |
require 'fitgem' | |
c = Fitgem::Client.new( | |
:consumer_key => "", | |
:consumer_secret => "", |
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
ruby -e '(0..23).cycle{|f|print "\r"+[128336+f].pack("U")+" ";sleep 0.2}' |
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
#!/bin/bash | |
# | |
# DESCRIPTION: | |
# | |
# Set the bash prompt according to: | |
# * the branch/status of the current git repository | |
# * the branch of the current subversion repository | |
# * the return value of the previous command | |
# | |
# USAGE: |
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 'yell' | |
require 'toadhopper' | |
class AirbrakeAdapter < Yell::Adapters::Base | |
setup do |options| | |
@env = options[:environment] | |
@airbrake = Toadhopper(options[:api_key]) | |
end | |
write do |event| | |
if event.message.respond_to?(:backtrace) |
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
find .-name .DS_Store -print0 | xargs -0 git-rm --ignore-unmatch |
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 | |
require "rubygems" | |
require "haml" | |
class MethodMissingString < String | |
def method_missing(m, *args, &block) | |
args = args.collect do |arg| | |
arg.is_a?(MethodMissingString) ? arg : "\"#{arg}\"" | |
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
(function() { | |
// Usage: | |
// | |
// <script src='http://pressly.com/redirect.js' type='text/javascript'></script> | |
// <script>Pressly.redirect("http://tablet.domain.com");</script> | |
// | |
/* >> Generated code from Issue Config */ | |
// Supported devices to redirect |
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
p:hover:after { | |
content: attr(data-small); | |
display: block; | |
border: 1px solid red; | |
position:absolute; | |
bottom: 0; | |
right: 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
p:hover:after { | |
content: attr(data-small); | |
display: block; | |
border: 1px solid red; | |
position:absolute; | |
bottom: 0; | |
right: 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
/* Font Techniques */ | |
body { | |
background: white; | |
} | |
p { | |
text-align: center; | |
box-shadow: inset 0px 0px 5px rgba(0,0,0,0.3); | |
margin: 10px auto; |