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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
Version: SKS 1.1.0 | |
mQINBFITwD0BEADDnv+kGFTrmZ8Heilnup+zXF/xjpbBMQ4F7QdyQma0MVPHle0IOTB/WzPD | |
0hIjAiQCBWlqECbB8wSs2gFdJqBH9IVj0lQkyc14UB+MwgfGYJ8zjlmj8d9/ajNV6Lm0VOb8 | |
aZWMoqIZ+KwwuRwORcUoy8JYyRnHiD19B9ns//+QvVB9VxowcQtANOMkgjt4Awy71YuXqQho | |
JZlzzQX2RU+P58tZYzkiFniIwqUbjVLZ43dm9HcUImc0KR6cH5Dxd1hV3hFmaleG8LMRsXAF | |
IUdMXWjEIddxniL3iXqLU6scbV+2GKtVEv5HIIKCB/bZJoQ6hijs4TaR18gvnN2CqAoq46A/ | |
jpguuXk5pJvFiotBmnBRbPC3mTcA8mMKX9V61hgM7hsZ2tr7kqmA5H0KmXTNYYG1/Ncd1iRa | |
DrIYTKJTAAb6G+SAQrHs2E3zRjNxgXlgaPvk8J1O0KXR3aY3WRt/qAfQLlrCS6BGP6JML5No |
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
// ==UserScript== | |
// @name Reddit Enhancement Suite | |
// @namespace http://reddit.honestbleeps.com/ | |
// @description A suite of tools to enhance reddit... | |
// @copyright 2010-2012, Steve Sobel (http://redditenhancementsuite.com/) | |
// @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html/ | |
// @author honestbleeps | |
// @include http://redditenhancementsuite.com/* | |
// @include http://reddit.honestbleeps.com/* | |
// @include http://reddit.com/* |
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
# MIT License | |
class Interfaxer | |
include HTTParty | |
base_uri "https://rest.interfax.net" | |
headers 'Content-Type' => 'application/pdf' | |
def initialize(username, password) | |
self.class.basic_auth(username, password) | |
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
#define CONSERVATIVE | |
int ioPin = 3; | |
#define BUFSIZE 200 | |
unsigned char buf[BUFSIZE]; | |
#define pullLow() pinMode(ioPin, OUTPUT) | |
#define pullHigh() pinMode(ioPin, INPUT) | |
unsigned char dbits[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 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
bash -c ' | |
if [ ! -f /usr/bin/chef-client ]; then | |
apt-get update | |
apt-get -y upgrade | |
apt-get install -y build-essential wget zlib1g-dev libssl-dev libffi-dev libncurses-dev libreadline-dev libyaml-dev libffi6 libssl0.9.8 | |
wget https://s3.amazonaws.com/dev.ops/ruby-1.9.3-p194-perf_without_psych_no_warnings_amd64.deb | |
dpkg -i ruby-1.9.3-p194-perf_without_psych_no_warnings_amd64.deb | |
wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.23.tgz |
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
calcBMI :: Float -> Float -> Float | |
calcBMI heightIn weightLbs = (weightLbs*703)/heightIn^2 | |
promptFloat :: String -> IO Float | |
promptFloat question = do | |
putStrLn question | |
return =<< readLn | |
main = do | |
weight <- promptFloat "What is your weight in pounds?" | |
height <- promptFloat "What is your height in inches?" | |
putStrLn ("Your weight is " ++ show weight ++ "lbs. and your height is " ++ show height ++ "in.") |
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
calcBMI :: Float -> Float -> Float | |
calcBMI heightIn weightLbs = (weightLbs*703)/heightIn^2 | |
main = do | |
putStrLn "What is your weight in pounds?" | |
weight <- readLn :: IO Float | |
putStrLn "What is your height in inches?" | |
height <- readLn :: IO Float | |
putStrLn ("Your weight is " ++ show weight ++ "lbs. and your height is " ++ show height ++ "in.") | |
putStrLn ("Your BMI is " ++ show(calcBMI height weight)) |
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 Local | |
def method_missing(*args) | |
"hello world" | |
end | |
end | |
def my_val | |
raise "goodbye cruel world" | |
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
# | |
# Author:: Preston Marshall (<preston@ideamarshal.com>) | |
# License:: Apache License, Version 2.0 | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.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
Blog::Application.routes.draw do | |
get "pages/about" | |
get "pages/contact" | |
resources :portfolios | |
resources :links | |
resources :posts do |