Skip to content

Instantly share code, notes, and snippets.

View johnny-hsiao's full-sized avatar

Johnny Hsiao johnny-hsiao

View GitHub Profile
@johnny-hsiao
johnny-hsiao / curl.md
Created March 12, 2017 03:09 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

def fizzbuzz(starting_num, ending_num)
starting_num.upto(ending_num) do |i|
if i % 5 == 0 && i % 3 == 0
puts "FizzBuzz"
elsif i % 5 == 0
puts "Buzz"
elsif i % 3 == 0
puts "Fizz"
else
puts i