I no longer mantain this list. There are lots of other very comprehensive JavaScript link lists out there. Please see those, instead (Google "awesome JavaScript" for a start).
@mafintosh said most of this, I just wrote it down
- usually you call
.destroy()if it has.destroy - if it doesnt have
.destroyyou are out of luck and the stream should upgrade to use e.g. newerthrough2 - in request you call
.abort()(this should get fixed to use.destroy()) .end()tries to end the stream gracefully
| // Bootstrap wants jQuery global =( | |
| window.jQuery = $ = require('jquery') | |
| // Bootstrap doesn't have a "main" field / export anything =( | |
| var bootstrap = require('bootstrap/dist/js/bootstrap') | |
| // Get Bootstrap styles with cssify | |
| var style = require('./node_modules/bootstrap/dist/css/bootstrap.css') | |
| var popover = document.createElement('span') | |
| popover.innerHTML = 'I have a popover' |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
These are all the JSConf 2014 slides, codes, and notes I was able to cull together from twitter. Thanks to the speakers who posted them and thanks to @chantastic for posting his wonderful notes.
| #!/bin/bash | |
| # Run this inside a git repo. | |
| # Change name of `origin` remote to `git` | |
| sed -i '' 's/remote "origin"/remote "git"/' .git/config | |
| # Pushing to `paid` means pushing to `master` | |
| # http://stackoverflow.com/questions/549920/is-it-possible-to-alias-a-branch-in-git | |
| git symbolic-ref refs/heads/paid refs/heads/master |
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"
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:
| #!/bin/sh | |
| # dropbox service | |
| # Replace with linux users you want to run Dropbox clients for | |
| DROPBOX_USERS="user1 user2" | |
| DAEMON=.dropbox-dist/dropbox | |
| start() { | |
| echo "Starting dropbox..." | |
| for dbuser in $DROPBOX_USERS; do |
| DO WTF YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 Alexey Silin <pinkoblomingo@gmail.com> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WTF YOU WANT TO PUBLIC LICENSE |