Most basic example of authenticating with Github in node.
Clone this gist, change keys inside config.js
and then hit npm install && node app.js
.
<?php | |
/** | |
* File: SimpleImage.php | |
* Author: Simon Jarvis | |
* Modified by: Miguel Fermín | |
* Based in: http://www.white-hat-web-design.co.uk/articles/php-image-resizing.php | |
* | |
* This program is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU General Public License | |
* as published by the Free Software Foundation; either version 2 |
function CSVImportGetHeaders() | |
{ | |
// Get our CSV file from upload | |
var file = document.getElementById('CSVUpload').files[0] | |
// Instantiate a new FileReader | |
var reader = new FileReader(); | |
// Read our file to an ArrayBuffer | |
reader.readAsArrayBuffer(file); |
Ionic and ngCordova upload example |
// This is a dead-simple script that simply logs the usernames of the people who have updated a post, ordered by when they voted | |
var access_token = "YOUR_TOKEN"; | |
var post_id = "POST_ID"; | |
var theUrl = "https://api.producthunt.com/v1/posts/"+post_id+"/votes?access_token=" + access_token | |
var xmlHttp = new XMLHttpRequest(); | |
xmlHttp.open( "GET", theUrl, false ); | |
xmlHttp.send( null ); | |
votes = JSON.parse(xmlHttp.responseText).votes; |
[ | |
{ | |
"busId": "1", | |
"routeId": "", | |
"name": "Princess Alice Terminal to Speightstown Terminal", | |
"num": "1", | |
"stops": [] | |
}, | |
{ | |
"busId": "2", |
.PHONY: run | |
# certs and output | |
OUTPUT_FILE=apkname.apk | |
ALIAS=youralias | |
KEYPASS=yourkeypass | |
KEYSTORE=certs/yourcert.keystore | |
UNSIGNED=platforms/android/build/outputs/apk/android-release-unsigned.apk | |
# or, if you're using Crosswalk: |
// BrowserRouter is the router implementation for HTML5 browsers (vs Native). | |
// Link is your replacement for anchor tags. | |
// Route is the conditionally shown component based on matching a path to a URL. | |
// Switch returns only the first matching route rather than all matching routes. | |
import { | |
BrowserRouter as Router, | |
Link, | |
Route, | |
Switch, | |
} from 'react-router-dom'; |
import React, { Component } from 'react' | |
import { BrowserRouter as Router, Route, Link, Match, Redirect, Switch } from 'react-router-dom' | |
import OverviewPage from './page/OverviewPage' | |
import AccountPage from './page/AccountPage' | |
/* | |
Layouts, inline define here for demo purpose | |
you may want to define in another file instead | |
*/ |