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></title> | |
<meta name="csrf-param" content="authenticity_token"/> | |
<meta name="csrf-token" content="M5ENAohX5mi06vbbPCt7EmbQZ8ST6Gt76ZnnDPFAMus="/> | |
<!--[if lt IE 9]> | |
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | |
<![endif]--> | |
<link href="/stylesheets/blueprint/screen.css?1301855704" media="screen" rel="stylesheet" type="text/css" /> |
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
.container { | |
width: 960px; | |
margin:auto; | |
} | |
container { | |
width:960px; | |
margin:auto; | |
} | |
#wrapper{ |
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 OrdersController < ApplicationController | |
before_filter :user_signed_in? | |
# GET /orders | |
# GET /orders.xml | |
def index | |
@orders = Order.all | |
respond_to do |format| | |
format.html # index.html.erb | |
format.xml { render :xml => @orders } |
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
omniauth = session["devise.omnidata"] | |
@user.username = omniauth['info']['first_name']+omniauth['info']['last_name'] | |
@user.pic_url = omniauth['info']['image'] | |
#From the facebook graph api docs: use ?type=square | small | normal | large to request a different photo | |
@user.pic = rails_download_url_method(@user.pic_url?square | small | normal | large) | |
require 'open-uri' | |
open('image.png', 'wb') do |file| |
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 | |
#median testing | |
def median(a,b,c): | |
if a>b or a==b: | |
if a<c or a==c: | |
return a | |
if a<b or a==b: | |
if a>c or a==c: |
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 | |
#median testing | |
def median(a,b,c): | |
if a>b or a==b: | |
if a<c or a==c: | |
return a | |
if a<b or a==b: | |
if a>c or a==c: |
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 | |
#median testing | |
def median(a,b,c): | |
if a>b or a==b: | |
if a<c or a==c: | |
return a | |
if a<b or a==b: | |
if a>c or a==c: |
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
# Blastoff! | |
def countdown(n): | |
while n >= 1: | |
print n | |
n = n -1 | |
else: | |
if n == 0: | |
print 'Blastoff!' | |
countdown(10) |
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>julian testing gist</p> |
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
Verifying that +julianmiller is my blockchain ID. https://onename.com/julianmiller |
OlderNewer