Skip to content

Instantly share code, notes, and snippets.

View JulianMiller's full-sized avatar

Julian Miller JulianMiller

View GitHub Profile
<!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" />
@JulianMiller
JulianMiller / CSS
Created August 12, 2011 16:27
CSS
.container {
width: 960px;
margin:auto;
}
container {
width:960px;
margin:auto;
}
#wrapper{
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 }
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|
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:
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:
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:
# Blastoff!
def countdown(n):
while n >= 1:
print n
n = n -1
else:
if n == 0:
print 'Blastoff!'
countdown(10)
@JulianMiller
JulianMiller / test
Created August 12, 2012 19:09
gist test
<p>julian testing gist</p>
Verifying that +julianmiller is my blockchain ID. https://onename.com/julianmiller