Skip to content

Instantly share code, notes, and snippets.

View AlexString's full-sized avatar
Coffee love

Alex String AlexString

Coffee love
View GitHub Profile
@keilmillerjr
keilmillerjr / Creating an AUR Package.md
Last active July 19, 2025 20:18
How to create and manage an AUR package. #AUR #ARCH #makepkg #PKGBUILD
/**
* Hypertext Transfer Protocol (HTTP) response status codes.
*
* @see {@link https://en.wikipedia.org/wiki/List_of_HTTP_status_codes}
*/
/* 100 */
export enum InfoCode {
/**
@guillaumepiot
guillaumepiot / weeks_in_month.coffee
Last active May 24, 2024 06:13
Get all the weeks in a given month and year using Moment.js
# year and month are variables
year = 2015
month = 7 # August (0 indexed)
startDate = moment([year, month])
# Get the first and last day of the month
firstDay = moment(startDate).startOf('month')
endDay = moment(startDate).endOf('month')
# Create a range for the month we can iterate through