Skip to content

Instantly share code, notes, and snippets.

View allanwsilva's full-sized avatar

Allan Wojcik da Silva allanwsilva

View GitHub Profile
@allanwsilva
allanwsilva / pr.md
Created April 2, 2023 09:03 — forked from piscisaureus/pr.md
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = [email protected]:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

Keybase proof

I hereby claim:

  • I am allanwsilva on github.
  • I am swnalla (https://keybase.io/swnalla) on keybase.
  • I have a public key ASAp6NumqzMbkud1F0kd8o8Cc3fEiUPiXuczKVPZqLQexgo

To claim this, I am signing this object:

@allanwsilva
allanwsilva / code.js
Created March 3, 2017 00:43 — forked from maxkfranz/code.js
Initialisation
document.addEventListener('DOMContentLoaded', function(){ // on dom ready
var cy = cytoscape({
container: document.querySelector('#cy'),
boxSelectionEnabled: false,
autounselectify: true,
style: cytoscape.stylesheet()
.selector('node')