When uploading multiple files, the $_FILES
variable is created in the form:
Array
(
[name] => Array
(
[0] => foo.txt
/* | |
* node-ws - pure Javascript WebSockets server | |
* Copyright Bradley Wright <brad@intranation.com> | |
*/ | |
// Use strict compilation rules - we're not animals | |
'use strict'; | |
var net = require('net'), | |
crypto = require('crypto'); |
import Layer from 'express/lib/router/layer'; | |
const Promise = global.Promise; | |
/** | |
* "fixt" express mbt promises. Als een stukje middleware een promise returnt dan moeten errors eigenlijk aan next worden gegeven. | |
* | |
* We hadden ook de suffix `Async` kunnen gebruiken om naast de bestaande functies nieuwe te maken. Dat heeft een flink nadeel | |
* omdat de api op verschillende manieren te benaderen is. | |
*/ |
var express = require('express'), | |
app = express(), | |
cookieParser = require('cookie-parser'), | |
session = require('express-session'), | |
RedisStore = require('connect-redis')(session); | |
app.use(express.static(__dirname + '/public')); | |
app.use(function(req, res, next) { | |
if (~req.url.indexOf('favicon')) | |
return res.send(404); |
This list served quite some people but someone else did a better job since.
Go to https://github.com/umpirsky/country-list for a list in your language and format.
I've also compiled a list of nationalities
var usStates = [ | |
{ name: 'ALABAMA', abbreviation: 'AL'}, | |
{ name: 'ALASKA', abbreviation: 'AK'}, | |
{ name: 'AMERICAN SAMOA', abbreviation: 'AS'}, | |
{ name: 'ARIZONA', abbreviation: 'AZ'}, | |
{ name: 'ARKANSAS', abbreviation: 'AR'}, | |
{ name: 'CALIFORNIA', abbreviation: 'CA'}, | |
{ name: 'COLORADO', abbreviation: 'CO'}, | |
{ name: 'CONNECTICUT', abbreviation: 'CT'}, | |
{ name: 'DELAWARE', abbreviation: 'DE'}, |
Native HTML controls are a challenge to style. You can style any element in the web platform that uses Shadow DOM with a pseudo element ::pseudo-element
or the /deep/
path selector.
video::webkit-media-controls-timeline {
background-color: lime;
}
video /deep/ input[type=range] {
# Required deps: | |
# imagemagick: https://imagemagick.org/script/download.php | |
# name of your master icon, must be at least 512X512 | |
PNG_MASTER="icon-large.png" | |
ICONSET_FOLDER="AppIcon.iconset" | |
sizes=( | |
16x16 | |
32x32 |
To make Pageant automatically run and load keys at startup: | |
- Find the location of pageant.exe | |
- Windows key + R to open the 'run' dialog box | |
- Type: 'shell:startup' in the dialog box | |
- Create a shortcut to the pageant.exe and put into this startup folder. |
{ | |
"AL": "Alabama", | |
"AK": "Alaska", | |
"AS": "American Samoa", | |
"AZ": "Arizona", | |
"AR": "Arkansas", | |
"CA": "California", | |
"CO": "Colorado", | |
"CT": "Connecticut", | |
"DE": "Delaware", |