Skip to content

Instantly share code, notes, and snippets.

View gregoriobenatti's full-sized avatar

Gregório Benatti gregoriobenatti

View GitHub Profile
@gregoriobenatti
gregoriobenatti / clone_repos.py
Last active December 21, 2020 23:25
clone_repos.py --username=gregoriobeantti --repos=10
import argparse
import requests
import subprocess
import os
def get_repo_list():
URL = "https://api.github.com/users/{0}/repos?page=1&per_page={1}".format(args.username, args.repos)
r = requests.get(url = URL, params = args.params)
data = r.json()
@gregoriobenatti
gregoriobenatti / FizzBuzz
Created October 23, 2018 07:50
FizzBuzz
-- CPP
#include <iostream>
int main()
{
for(int i=1;i<=100;i++)
{
if (i%15==0)
std::cout << "FizzBuzz" << std::endl;
else if (i%5==0)
std::cout << "Buzz" << std::endl;
@gregoriobenatti
gregoriobenatti / user-settings
Created August 30, 2018 07:16
VSCode configs
{
"gitlens.advanced.messages": {
"suppressCommitHasNoPreviousCommitWarning": false,
"suppressCommitNotFoundWarning": false,
"suppressFileNotUnderSourceControlWarning": false,
"suppressGitVersionWarning": false,
"suppressLineUncommittedWarning": false,
"suppressNoRepositoryWarning": false,
"suppressResultsExplorerNotice": false,
"suppressShowKeyBindingsNotice": true,
#!/usr/local/bin/python
dictA = {"Accumulated Knowledge": 4, "Ancient Grudge": 1, "Annul": 4, "Ash Barrens": 4, "Atog": 4, "Augur of Bolas": 4, "Birchlore Rangers": 4, "Brainstorm": 2, "Burning-Tree Emissary": 4, "Capsize": 1, "Carapace Forger": 4, "Chain Lightning": 4, "Chainer's Edict": 3, "Chittering Rats": 4, "Chromatic Star": 4, "Circle of Protection: Blue": 2, "Circle of Protection: Red": 2, "Compulsive Research": 2, "Condescend": 1, "Counterspell": 4, "Curse of the Pierced Heart": 4, "Darksteel Citadel": 4, "Daze": 3, "Deep Analysis": 2, "Delver of Secrets / Insectile Aberration": 4, "Deprive": 2, "Devour Flesh": 2, "Dimir Aqueduct": 3, "Disfigure": 4, "Dismal Backwater": 4, "Dispel": 4, "Distant Melody": 2, "Doom Blade": 3, "Duress": 2, "Echoing Decay": 2, "Electrickery": 4, "Elephant Guide": 4, "Elvish Mystic": 2, "Elvish Vanguard": 2, "Epic Confrontation": 4, "Essence Warden": 2, "Evincar's Justice": 2, "Evolving Wilds": 4, "Expedition Map": 3, "Faerie Miscreant": 4, "Feed the Clan": 2, "Fireblast"
@gregoriobenatti
gregoriobenatti / css.css
Created July 11, 2017 05:14
html for p5js
html, body {
height: 100%;
}
body {
margin: 0;
display: flex;
/* This centers our sketch horizontally. */
justify-content: center;
@gregoriobenatti
gregoriobenatti / learn.lua
Created December 13, 2016 18:40 — forked from tylerneylon/learn.lua
Learn Lua quickly with this short yet comprehensive and friendly script. It's written as both an introduction and a quick reference. It's also a valid Lua script so you can verify that the code does what it says, and learn more by modifying and running this script in your Lua interpreter.
-- Two dashes start a one-line comment.
--[[
Adding two ['s and ]'s makes it a
multi-line comment.
--]]
----------------------------------------------------
-- 1. Variables and flow control.
----------------------------------------------------
@gregoriobenatti
gregoriobenatti / Sublime Text 3 - Plugin List
Created October 13, 2016 23:35
Sublime Text 3 - Plugin List
AdvancedNewFile
v1.7.0
Alignment
v2.1.0
Dockerfile Syntax Highlighting
v1.3.3
GitGutter
@gregoriobenatti
gregoriobenatti / .bash_profile
Created July 18, 2016 19:04 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
// keybindings.json
// Place your key bindings in this file to overwrite the defaults
[
]
// settings.json
// Place your settings in this file to overwrite the default settings
{
"editor.quickSuggestionsDelay": 5,