This file contains hidden or 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
.page-title-home { | |
position: absolute; | |
top: 2px; | |
left: 24px; | |
} | |
.page-title-home h1 { | |
background-color: rgba(6, 6, 6, 0.8); | |
color: white; | |
font-family: 'Noto Sans', sans-serif; | |
font-size: 2.0em; |
This file contains hidden or 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
from flask import Flask | |
from flask import request | |
from twilio import twiml | |
import os | |
app = Flask(__name__) | |
@app.route('/caller', methods=['POST']) | |
def caller(): | |
response = twiml.Response() |
This file contains hidden or 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
// ============== | |
// ! SETUP | |
// ============== | |
//Global Variables | |
var activeSlide = 0, | |
numberSlides = 0, | |
orbitWidth, | |
orbitHeight, | |
locked; |
This file contains hidden or 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> | |
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ --> | |
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> | |
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]--> | |
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]--> | |
<head> | |
<meta charset="utf-8" /> | |
<!-- Set the viewport width to device width for mobile --> | |
<meta name="viewport" id="view" content="width=device-width minimum-scale=1, maximum-scale=1" /> |
This file contains hidden or 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
/*! normalize.css v2.1.0 | MIT License | git.io/normalize */ | |
article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary { display: block; } | |
audio, canvas, video { display: inline-block; } | |
audio:not([controls]) { display: none; height: 0; } | |
[hidden] { display: none; } | |
html { font-family: sans-serif; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; } | |
body { margin: 0; } | |
a:focus { outline: thin dotted; } | |
a:active, a:hover { outline: 0; } | |
h1 { font-size: 2em; margin: 0.67em 0; } |
This file contains hidden or 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 IP | |
def intitialize(ip) | |
@ip = ip | |
end | |
def to_s | |
@ip | |
end | |
def==(other) |
This file contains hidden or 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 'open-uri' | |
require 'csv' | |
def get_info stock_symbol | |
puts "#{stock_symbol} Current Ticker Information" | |
url = "http://download.finance.yahoo.com/d/ | |
quotes.csv?s=#{stock_symbol}&f=sl1d1t1c1ohgv&e=.csv" | |
puts "Connecting to #{url}\n\n\n" | |
csv = CSV.parse(open(url).read) |
This file contains hidden or 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 'rss/1.0' | |
require 'rss/2.0' | |
require 'open-uri' | |
source = "http://nostarch.com/blog/?feed=rss2" # change this location to the appropriate rss feed | |
content = "" | |
open(source) do |info| | |
content = info.read | |
end |
This file contains hidden or 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 'cgi' | |
cgi = CGI.new("html4Tr") | |
print "Enter Form Page Title: " | |
title = gets.chomp | |
print "Enter Head Title: " | |
input_title = gets.chomp | |
print "Enter value for button: " | |
value = gets.chomp |
This file contains hidden or 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
links = Array.new | |
orphans = Array.new | |
dir_array = [Dir.getwd] | |
unless File.readable?("links.txt") | |
puts "File is not readable." | |
exit | |
end | |
File.open('links.txt', 'rb') do |lv| |