* * * * * command to be executed
- - - - -
| | | | |
| | | | +----- day of week (0 - 6) (Sunday=0)
| | | +------- month (1 - 12)
| | +--------- day of month (1 - 31)
| +----------- hour (0 - 23)
This file contains hidden or 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 safeParse (str) { | |
| var whack = str.indexOf('://'), | |
| at = str.lastIndexOf('@'), | |
| auth; | |
| str = str.replace(/\/$/, ''); | |
| auth = str.substring(whack + 3, at); | |
| return { | |
| url: str.replace(auth + '@', ''), | |
| auth: auth |
This file contains hidden or 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
| ; CouchDB Config | |
| ; Drop in PREFIX/local.d/npmjs.ini | |
| [couch_httpd_auth] | |
| public_fields = appdotnet, avatar, avatarMedium, avatarLarge, date, email, fields, freenode, fullname, github, homepage, name, roles, twitter, type, _id, _rev | |
| users_db_public = true | |
| [httpd] | |
| secure_rewrites = false |
This file contains hidden or 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> | |
| <meta charset="utf-8"> | |
| <style> | |
| body { | |
| font: 10px sans-serif; | |
| } | |
| .chord { | |
| fill-opacity: .67; |
This file contains hidden or 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 xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>The Largest Vocabulary in Hip hop</title> | |
| <script src="http://d3js.org/d3.v3.min.js"></script> | |
| <meta http-equiv="content-type" content="text/html;charset=utf-8" /> |
This file contains hidden or 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
| var assert = require('assert'); | |
| var targs = module.exports = function (args, names) { | |
| var types = Object.keys(names); | |
| return args.reduce(function (ret, arg) { | |
| var type = typeof arg; | |
| if (~types.indexOf(type)) { | |
| ret[names[type]] = arg; | |
| } |
Lets suppose that instead of wanting to trigger a linear set of functions such as the core Node.js EventEmitter, you wanted to be able to trigger events as a (potentially cyclic) directed graph.
Scenario 1. A causes B & C to fire
A
├─B
│
└────C
This file contains hidden or 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 showRating (target) { | |
| $('#ratingHistorySection .retable li').each(function (el) { | |
| var child = $(this).find('.rating .starbar'); | |
| var rating = $(child).attr('data-your-rating'); | |
| if (rating != target) { | |
| $(this).hide(); | |
| } | |
| }); | |
| } |
This file contains hidden or 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
| $ git pull Jinkwon master | |
| remote: Counting objects: 5, done. | |
| remote: Compressing objects: 100% (4/4), done. | |
| remote: Total 5 (delta 0), reused 0 (delta 0) | |
| Unpacking objects: 100% (5/5), done. | |
| From https://github.com/Jinkwon/http-server | |
| * branch master -> FETCH_HEAD | |
| Updating 4407db1..c5839f8 | |
| Fast-forward | |
| .gitignore | 2 ++ |
OlderNewer