Skip to content

Instantly share code, notes, and snippets.

Avatar
👩‍🚀
Astrocoders

Guilherme Decampo guilhermedecampo

👩‍🚀
Astrocoders
View GitHub Profile
@guilhermedecampo
guilhermedecampo / nubank-csv-web-downloader.md
Last active Jun 21, 2020
A better Nubank csv web downloader using chrome dev tools
View nubank-csv-web-downloader.md

Nicer CSV download of nubank data

Function

function downloadNubankCSV({ date }) {
  const transactions = angular.element(document.body).injector().get('Bills').all.map(bill => bill.more.line_items).flat()
  const regExp = new RegExp(date, 'g')
  const csv = transactions
    // filtering wanted/unwanted datapoints
View amazing-faraonic-story.md

A great Egyptian pharaoh summons his two young nephews, Chuma and Azur, and commissions them to a monumental task: Build two massive pyramids as a tribute to Egypt. Upon completion, the pharaoh promised them kingship and riches for their remaining days. The only condition is that they must construct it without the help of anyone else.

Chuma and Azur are both young, ambitious, and up for the challenge.

Azur gets to work immediately. He drags heavy stones into a square formation, and in a few months completes the foundation of the pyramid. Townspeople cheer him on and commend his hard work.

But Azur is confused. When he looks over to where Chuma’s pyramid is supposed to be, he only sees an empty lot.

He goes to visit Chuma, only to find him working on a twisted apparatus that resembles some kind of a human torture device.

@guilhermedecampo
guilhermedecampo / multiple-push-urls.md
Created Feb 1, 2019 — forked from bjmiller121/multiple-push-urls.md
Add multiple push URLs to a single git remote
View multiple-push-urls.md

Sometimes you need to keep two upstreams in sync with eachother. For example, you might need to both push to your testing environment and your GitHub repo at the same time. In order to do this simultaneously in one git command, here's a little trick to add multiple push URLs to a single remote.

Once you have a remote set up for one of your upstreams, run these commands with:

git remote set-url --add --push [remote] [original repo URL]
git remote set-url --add --push [remote] [second repo URL]

Once set up, git remote -v should show two (push) URLs and one (fetch) URL. Something like this:

View keybase.md

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@guilhermedecampo
guilhermedecampo / packages.md
Created Feb 25, 2017
Meteor-Cordova - Use this version of inappbrowser to fix the problem with close window.
View packages.md
@guilhermedecampo
guilhermedecampo / learning.md
Last active Jan 7, 2017 — forked from sibelius/learning.md
Learning Path React Native
View learning.md

Basics

  • Learn how to start a new react native project
  • Run it on ios simulator, on android emulator, on a real iPhone device and on a real Android device, with and without debugging enabled.
  • Learn how to upgrade a react native project
  • Learn how to add a package to the project
  • Learn how to add a package that has a native dependency (https://github.com/airbnb/react-native-maps, https://github.com/evollu/react-native-fcm) - DO NOT USE COCOAPODS

Learn Navigation

View iterm2.md

Tabs and Windows

Function Shortcut
Previous Tab + Left Arrow
Next Tab + Right Arrow
Go to Tab + Number
Go to Window + Option + Number
Go to Split Pane by Direction + Option + Arrow
Go to Split Pane by Order of Use + ] , + [
View create_list.js
const json = fetch(jsonURL)
const namesColumnTable = _.keys(json);
const totalRows = _.reduce(json, (acc, value) => {
const arrayLength = _.values(value)[0].length;
return arrayLength > acc ? arrayLength : acc;
}, 0);
const rows = [];
@guilhermedecampo
guilhermedecampo / deploy.sh
Created May 9, 2015
Manual script to deploy meteor apps before meteor up
View deploy.sh
#!/bin/bash
set -e -x
#Declarations
################Declarations###############
# App name
APP_NAME=yourapp
View .hound.yml
java_script:
config_file: .jshintrc
scss:
enabled: true
You can’t perform that action at this time.