Skip to content

Instantly share code, notes, and snippets.

@jueyang
jueyang / bike.jpg
Last active Mar 27, 2018
Bartering rules and faq's. @permanent.transience. March 31 & Apr 1.
View collectionSample.js
[
// the following is a sample of a donor country
{'name': 'core_total', 'value':10000,'donor-country':'JPN'}, // from core-fund.csv, the sum of all core contribution
{'name': 'noncore_total', 'value': 50000,'donor-country':'JPN'}, // from fund-modality.csv, the sum of all 5 types of funding
{'name': 'cost_sharing', 'value': 10000, 'donor-country':'JPN'}, // from fund-modality.csv, sum of the respective type
{'name': 'thematic_trust_funds', 'value': 10000, 'donor-country':'JPN'},
{'name': 'trust_funds', 'value': 10000, 'donor-country':'JPN'},
{'name': 'special_activities', 'value': 10000, 'donor-country':'JPN'},
{'name': 'unv', 'value': 10000, 'donor-country':'JPN'},
...
View doublecheck.md

Install homebrew:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install hub

brew install hub

alias git=hub

View soundcloud_oauth2_user_agent_authentication_flow_demo.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>SoundCloud OAuth 2 User Agent Authentication Flow Demo</title>
<script type="text/javascript" charset="utf-8" src="javascript/jquery-1.4.2.js"></script>
<script type="text/javascript" charset="utf-8">
$(function () {
var extractToken = function(hash) {
View dnd.js
// http://www.html5rocks.com/en/tutorials/file/dndfiles/
d3.select('svg')
.on('dragover', handleDragOver)
.on('drop', handleFileSelect)
;
function handleFileSelect() {
var event = d3.event
, files = event.dataTransfer.files // FileList object
, about = []
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<head>
<link href='//api.tiles.mapbox.com/mapbox.js/v1.3.1/mapbox.css' rel='stylesheet' />
<!--[if lte IE 8]>
<link href='//api.tiles.mapbox.com/mapbox.js/v1.3.1/mapbox.ie.css' rel='stylesheet' />
<![endif]-->
<script src='//api.tiles.mapbox.com/mapbox.js/v1.3.1/mapbox.js'></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
</head>
View the.train.explain.md

Leave your comments below if you have thoughts or concerns about @the.train. If you'd rather not sign up for GitHub (which is where this document is hosted on), you can text or leave a message at 929-266-4122. I will get back to you shortly. Thank you.

License

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.

Disclaimer

Due to the spontaneous nature of the project, the photographer might not have the opportunity to discuss with participants about the distribution of the work. All work will be published on @the.train, which is not associated with any organization, and does not serve

View on-scratch.md

Even if you just want to set up a WordPress site (because that's what you've been conditioned to do), resist the urge. Try making something on your own first. You are not doing it for the sake of it, you are getting a better grasp of the anatomy of a structure, a structure that, once you get good at, will allow you more control and creative freedom.

Of course, like making anything from scratch, it's going to take a bit longer at first. Have you made a pumpkin pie from scratch? You roast the pumpkin, scoop out the seeds, puree the flesh. Meanwhile you make the dough with flour, very cold butter, and 1/4 cup of iced water with a pastry cutter. If you want it faster, you can always buy a can of pumpkin puree, and pour it into a pre-made pie crust. Or -- if you just want to eat -- you buy a pumpkin pie in a box from the store.

It's the same idea when it comes to making something from scratch on the internet. You can experiment when you know how it works. Otherwise, you are just consuming someone else's products