| Models | Examples |
|---|---|
| Display ads | Yahoo! |
| Search ads |
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
| #!/bin/bash | |
| # | |
| # git-svn-diff originally by (http://mojodna.net/2009/02/24/my-work-git-workflow.html) | |
| # modified by [email protected] | |
| # modified by aconway@[redacted] - handle diffs that introduce new files | |
| # modified by [email protected] - fixes diffs that introduce new files | |
| # modified by [email protected] - fix sed syntax issue in OS X | |
| # | |
| # Generate an SVN-compatible diff against the tip of the tracking branch |
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
| <? | |
| /** | |
| * twitterfeed.php | |
| * | |
| * A single file script which serves an authenticated personal Twitter timeline as an Atom feed. | |
| * | |
| * To use: | |
| * 1) Go to https://dev.twitter.com/apps and create a new App | |
| * 2) Use the Authentication button to create the tokens/secrets needed | |
| * 3) Copy the results into the appropriate spots below |
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
| //simple XHR request in pure JavaScript | |
| function load(url, callback) { | |
| var xhr; | |
| if(typeof XMLHttpRequest !== 'undefined') xhr = new XMLHttpRequest(); | |
| else { | |
| var versions = ["MSXML2.XmlHttp.5.0", | |
| "MSXML2.XmlHttp.4.0", | |
| "MSXML2.XmlHttp.3.0", | |
| "MSXML2.XmlHttp.2.0", |
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
| import json | |
| import urllib | |
| import urllib2 | |
| import time | |
| """ Nike plus activity log | |
| https://developer.nike.com | |
| Output: | |
| -- May -- |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
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 diff --no-prefix --ignore-space-at-eol | sed -e "s/^diff --git [^[:space:]]*/Index:/" -e "s/^index.*/===================================================================/" > changes.patch |
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
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Copyright (C) 2014 ADDY OSMANI <addyosmani.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 WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION |
The basic structure of a React+Flux application (see other examples)
- /src/actions/AppActions.js - Action creators (Flux)
- /src/components/Application.js - The top-level React component
- /src/constants/ActionTypes.js - Action types (Flux)
- /src/core/Dispatcher.js - Dispatcher (Flux)
- /src/stores/AppStore.js - The main store (Flux)
OlderNewer