Skip to content

Instantly share code, notes, and snippets.

View amaurycatelan's full-sized avatar
🌻
what's up, doc?

Amaury Catelan amaurycatelan

🌻
what's up, doc?
View GitHub Profile
@santiagobasulto
santiagobasulto / README.md
Last active February 17, 2025 16:05
Download HumbleBundle books in batch with a simple Python script.

Download HumbleBundle books

This is a quick Python script I wrote to download HumbleBundle books in batch. I bought the amazing Machine Learning by O'Reilly bundle. There were 15 books to download, with 3 different file formats per book. So I scratched a quick script to download all of them in batch.

(Final Result: books downloaded)

@duhaime
duhaime / headless.py
Last active February 16, 2023 23:19
Python Selenium Headless Chrome OSX
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
chrome_options = Options()
chrome_options.add_argument("--headless")
chrome_options.binary_location = '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'
driver = webdriver.Chrome(executable_path='/usr/local/bin/chromedriver', chrome_options=chrome_options)
driver.get("http://www.duo.com")
@fourjr
fourjr / Discord Join Messages.js
Last active September 29, 2024 09:32
new member messages discord
loading lines: "https://gist.github.com/fourjr/f94fc112cef6da07fc274216d5755420"
Somewhere in 2020, they reduced the messages from 38 to 13.. This is the updated list on 5 December 2020.
Ctrl+Shift+I > Application > Frames > top > Scripts > a3762dfb973e0a7a21ba.js > ctrl+f "GUILD_MEMBER_JOIN" or https://canary.discordapp.com/assets/a3762dfb973e0a7a21ba.js
SYSTEM_MESSAGE_GUILD_MEMBER_JOIN_001: "[!!{username}!!](usernameOnClick) joined the party.",
SYSTEM_MESSAGE_GUILD_MEMBER_JOIN_002: "[!!{username}!!](usernameOnClick) is here.",
SYSTEM_MESSAGE_GUILD_MEMBER_JOIN_003: "Welcome, [!!{username}!!](usernameOnClick). We hope you brought pizza.",
SYSTEM_MESSAGE_GUILD_MEMBER_JOIN_004: "A wild [!!{username}!!](usernameOnClick) appeared.",
SYSTEM_MESSAGE_GUILD_MEMBER_JOIN_005: "[!!{username}!!](usernameOnClick) just landed.",
@swalkinshaw
swalkinshaw / tutorial.md
Last active February 26, 2025 21:15
Designing a GraphQL API
@jacksonpires
jacksonpires / Dockerfile
Last active October 26, 2018 00:15
Dockerfile do Projeto Docker para Desenvolvedores Javascript / Node.JS
FROM node:carbon
WORKDIR /usr/src/app
COPY crud-node-postgres/package*.json ./
RUN npm install
COPY ./crud-node-postgres/ .
RUN npm install -g bower
@rsp
rsp / GitHub-Project-Guidelines.md
Last active December 12, 2024 12:55
Git Strict Flow and GitHub Project Guidelines - setup rules and git flow for commercial and open-source projects by @rsp

Git Strict Flow and GitHub Project Guidelines

Or how to turn this:

into this:

@GautamSatish
GautamSatish / .babelrc
Last active June 29, 2023 07:08
Step by step instructions to set up Webpack, Babel, ESLint, Jest and Flow for your React project.
{
"presets": ["env", "react", "flow"]
}
@adriennetacke
adriennetacke / countdown.js
Last active September 1, 2022 04:18
Countdown timer in pure JavaScript
function countdown(endDate) {
let days, hours, minutes, seconds;
endDate = new Date(endDate).getTime();
if (isNaN(endDate)) {
return;
}
setInterval(calculate, 1000);
require 'securerandom'
class NameGenerator
LEFT = [
"admiring",
"adoring",
"affectionate",
"agitated",
"amazing",
"angry",
@adambene
adambene / coroutines-and-generators.js
Last active August 5, 2024 23:45
Coroutines and generators in JavaScript
function* delays() {
let a = yield delay(800, "Hello, I'm an");
console.log(a);
let b = yield delay(400, "async coroutine!");
console.log(b);
}
const coroutine = nextValue => iterator => {
const { done, value } = iterator.next(nextValue);