Skip to content

Instantly share code, notes, and snippets.

View igoralves1's full-sized avatar

Igor Alves igoralves1

View GitHub Profile
@igoralves1
igoralves1 / git.migrate
Created January 14, 2018 14:19 — forked from niksumeiko/git.migrate
Moving git repository and all its branches, tags to a new remote repository keeping commits history
#!/bin/bash
# Sometimes you need to move your existing git repository
# to a new remote repository (/new remote origin).
# Here are a simple and quick steps that does exactly this.
#
# Let's assume we call "old repo" the repository you wish
# to move, and "new repo" the one you wish to move to.
#
### Step 1. Make sure you have a local copy of all "old repo"
### branches and tags.
@igoralves1
igoralves1 / gist:1563db35bf57853a6ca7ad9491dc449d
Created July 6, 2016 01:20
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after
@rfprod
rfprod / Object Playground.markdown
Last active April 22, 2017 15:46
Object Playground

Object Playground

Playground for NPC(non-player character)<->PC(player character) interaction.

A Pen by V on CodePen.

License.

library(rgdal)
library(dplyr)
library(ggmap)
library(RColorBrewer)
library(classInt)
gpclibPermit()
votacao <- read.csv("~/devel/eleicoes2016/raw/eleicao2012/votacao_candidato_munzona_2012_SP.csv", sep=";", quote="\"", header = FALSE, fileEncoding="cp1252")
eleitos <- votacao %>%
@d3noob
d3noob / .block
Last active April 8, 2024 12:19
Simple d3.js Graph
license: mit
@jboner
jboner / latency.txt
Last active May 8, 2024 03:00
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD