Skip to content

Instantly share code, notes, and snippets.

View kandebonfim's full-sized avatar
🚀
Make it work!

Kande Bonfim kandebonfim

🚀
Make it work!
View GitHub Profile
@bbonamin
bbonamin / Brewfile
Last active March 19, 2024 14:54
Capybara Selenium Webdriver: Headless Chrome (with file downloads!) & Headless Firefox
tap "caskroom/cask"
cask "google-chrome"
cask "firefox"
brew "chromedriver"
brew "geckodriver"
@comigor
comigor / oiwarren.sh
Last active February 13, 2018 13:11
Log-in and retrieve your OiWarren account's portfolios
#!/bin/bash
function get_token() {
echo -n "OiWarren email: "
read email
echo -n "OiWarren password: "
read -s password
echo
local login_response=$(curl -s -w "\n%{http_code}" https://api.oiwarren.com/api/v2/account/login \
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
@johnjohndoe
johnjohndoe / download-url-to-file.rb
Last active March 14, 2024 17:58
Ruby script to download a number of files from individual URLs via HTTP/HTTPS/FTP specified in an external file.
#!/usr/bin/env ruby
#
# Ruby script to download a number of files
# from individual URLs via HTTP/HTTPS/FTP
# specified in an external file.
#
# Author: Tobias Preuss
# Revision: 2013-04-18 16:26 +0100 UTC
# License: Creative Commons Attribution-ShareAlike 3.0 Unported
@mbostock
mbostock / .block
Last active June 7, 2024 07:40 — forked from mbostock/.block
Circle Packing
license: gpl-3.0
height: 960
border: no
redirect: https://beta.observablehq.com/@mbostock/d3-circle-packing
@gre
gre / easing.js
Last active June 13, 2024 12:18
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
/*
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See the COPYING file for more details.
*/
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {