Skip to content

Instantly share code, notes, and snippets.

View basileos's full-sized avatar

Vasyl Dorozhynskiy basileos

View GitHub Profile
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
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 = git@github.com: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:

@NathanKleekamp
NathanKleekamp / twitter-timline.html
Created September 26, 2016 20:19
Twitter timeline widget embed via js
<html>
<head>
<title>Twitter User Timeline Widget</title>
<script>
// I found Twitter's documentation for the user timeline a bit difficult
// to follow. Here's a very basic working example for others who might
// also struggle with it
// First, include the twitter wiget.js before anything that might require
// it. The docs recommend including it directly in the page template