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 'nokogiri' | |
require 'open-uri' | |
class Analyzer | |
attr_accessor :frequency_table | |
def initialize | |
@frequency_table = Hash.new(0) | |
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
# Script written by Fletcher Nichol (fnichol) | |
require 'net/http' | |
# create a path to the file "C:\RailsInstaller\cacert.pem" | |
cacert_file = File.join(%w{c: RailsInstaller cacert.pem}) | |
Net::HTTP.start("curl.haxx.se") do |http| | |
resp = http.get("/ca/cacert.pem") | |
if resp.code == "200" |
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
#include <Servo.h> | |
bool debug = false; | |
int index = 0; | |
char messageBuffer[12]; | |
char cmd[3]; | |
char pin[3]; | |
char val[4]; |
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 'yaml' | |
file_data = YAML.load_file('shipping.yaml') | |
class ShippingData | |
def initialize(attr={}) | |
@sd_data = attr | |
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
String.prototype.titleize = function() { | |
var words = this.split(" ") | |
var word_count = words.length | |
for(var i = 0; i < word_count; i++) | |
if(i == 0 || !is_article(words[i])) | |
words[i] = words[i].capitalize() | |
return words.join(" "); | |
} |
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
$.ajax({ | |
type: "GET", | |
dataType: "jsonp", | |
url: url, | |
data: { access_token: "#{data[0].token}", count: 30 }, | |
success: (response) -> | |
objects = response.data | |
for object in objects | |
# console.log JSON.stringify(object.images.low_resolution) | |
$(".carousel-inner").append("<div class='item' data-image='#{JSON.stringify(object.images.low_resolution)}'><img src='#{object.images.low_resolution.url}'></img></div>") |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>ThinAuth</title> | |
<link href="/assets/application-7270767b2a9e9fff880aa5de378ca791.css" media="all" rel="stylesheet" type="text/css" /> | |
<script src="/assets/application-990a4cf0df42934fcc4c14aaf88b7ced.js" type="text/javascript"></script> | |
<meta content="authenticity_token" name="csrf-param" /> | |
<meta content="Qo7foQ9NAWhRPu+TieAboDBCeiEDLghj/m4amIgJcUc=" name="csrf-token" /> | |
</head> |
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
TEST TWO!!! |
NewerOlder