Skip to content

Instantly share code, notes, and snippets.

@quynhtv-2876
quynhtv-2876 / curl.md
Created February 16, 2023 06:51 — 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.

@quynhtv-2876
quynhtv-2876 / datepicker-ruby.rb
Last active December 23, 2019 03:42
datepicker ruby implementation
# This is my implementation of datepicker
puts "Month"
m = gets.to_i
puts "Year"
y = gets.to_i
puts "_____________"
# calculate the start day of week, Sunday start at 0
def zeller(d, m, y)