Skip to content

Instantly share code, notes, and snippets.

View JulianMiller's full-sized avatar

Julian Miller JulianMiller

View GitHub Profile
@JulianMiller
JulianMiller / gitcom.md
Created September 13, 2018 02:22 — forked from jednano/gitcom.md
Common git commands in a day-to-day workflow

Git Cheat Sheet

Initial Setup

Create an empty git repo or reinitialize an existing one

$ git init
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package firstsubroutines;
/**
*
* @author anonymous

Keybase proof

I hereby claim:

  • I am julianmiller on github.
  • I am julianmiller (https://keybase.io/julianmiller) on keybase.
  • I have a public key ASBcVkM6LWZf76E2UCcn2s_hQec-mN3IOk3oBhSDWkO5cwo

To claim this, I am signing this object:

Verifying that +julianmiller is my blockchain ID. https://onename.com/julianmiller
@JulianMiller
JulianMiller / test
Created August 12, 2012 19:09
gist test
<p>julian testing gist</p>
# Blastoff!
def countdown(n):
while n >= 1:
print n
n = n -1
else:
if n == 0:
print 'Blastoff!'
countdown(10)
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:
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|