This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Somewhere on your machine clone the project. | |
``` | |
> git clone https://github.com/facebook/react-devtools.git | |
> cd react-devtools | |
``` | |
2. Switch to the v3 branch | |
``` | |
> git checkout v3 | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function linkPeek(apiKey, secret) { | |
return function getUrl(uri, queryParams) { | |
queryParams = Object.assign({ | |
size: 'original' | |
}, queryParams) | |
const token = md5(secret + uri + queryParams.size) | |
const extraParams = queryParams && Object.keys(queryParams).map(param => `${param}=${encodeURIComponent(queryParams[param])}`).join('&') | |
return `https://linkpeek.com/api/v1?uri=${encodeURIComponent(uri)}&apikey=${apiKey}&token=${token}${extraParams ? `&${extraParams}` : ''}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<body> | |
<button onclick="play()">Play</button> | |
<script type="text/javascript"> | |
function play() { | |
var snd = new Audio("http://work.colum.edu/~nlinscheid/sound-library/flute/Flute-breathy/Flute-breathy-G5.wav"); | |
snd.load(); | |
snd.play(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for file in * | |
do | |
if [ -d $file ] | |
then | |
cd $file | |
echo Pulling `pwd` `git branch 2>/dev/null | grep -e '^*' | sed -E 's/^\* (.+)$/(\1) /'` | |
git pull | |
cd ../ |