- Create a gist if you haven't already.
- Clone your gist:
# make sure to replace `<hash>` with your gist's hash git clone https://gist.github.com/<hash>.git # with https git clone git@gist.github.com:<hash>.git # or with ssh
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 | |
# This is a very naive script, it doesn't do grouping and returns all branches | |
# I only really care about branches that have not seen commits in two months | |
# | |
# I am hoping to find some time to write a tool that can output these reports for me | |
# In the meantime, I am using this | |
echo "Merged branches" | |
for branch in `git branch -r --merged | grep -v HEAD`;do echo -e `git log --no-merges -n 1 --format="%ci, %cr, %an, %ae, " $branch | head -n 1` \\t$branch; done | sort -r |
I get asked for recommendations for Copenhagen often enough, that this little document is now a thing.
Please give back by contributing to it.
General
- Visit Copenhagen
- CopenhagenCard - this seems like a good deal. Put it on smartphone, and have it ready on * arrival... there's a list of attractions included
- Arken - Museum of modern art
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
'use strict'; | |
const sinon = require( 'sinon' ); | |
const expect = require( 'chai' ).expect; | |
describe( 'Array.prototype', () => { | |
describe( 'map()', () => { | |
it( 'uses native map', () => { | |
const callback = sinon.spy(); | |
const stub = sinon.stub( Array.prototype, 'map' ).returns( [ 2, 4 ] ); |
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 | |
# if there are no staged changes, we can exit immediately | |
# this is fast and prevents issues when popping a stash we didn't create | |
STAGED_CHANGES=`git diff-index --cached HEAD --name-only --diff-filter ACMR` | |
if [ -z "$STAGED_CHANGES" ]; then | |
exit 0 | |
fi |
These diagrams show how the Sinon family of libraries depend on each other.
devDependencies
are omitted, as they can be considering "internal", and shouldn't be installed by end users of sinon
or referee
┌────────────────────────┐
│ @sinonjs/commons │◀──────────────────────────────────────────────────┐
When I am king™, this will be curriculum for frontend developers.
If everyone would read these books, many discussions could be avoided, and the ones we would have would be a lot more interesting.
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
describe('this should cause tests to fail', function(){ | |
// this will cause an exception | |
// causing mocha to ignore this whole file | |
var hello = JSON.parse('{"hello":}'); | |
it('should something', function(){ | |
// magic | |
assert.equal(true, true); | |
}) | |
}); |
In no particular order, except the first one ;-)
- http://www.vivrepourmanger.com
- http://luckypeach.com (get the newslettter!)
- https://www.cooksillustrated.com (you'll need a subscription)
- http://www.seriouseats.com (get the newsletter!)
- http://www.chefsteps.com (get the newsletter!)
- http://www.maangchi.com
NewerOlder