This file contains 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
# RFC Web Socket Server | |
# You must have the web server enabled as well | |
configData.rfcWebSocket = | |
mount: "/ws" |
This file contains 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
localOffset = (new Date).getTimezoneOffset() * 60000 | |
getLocaleStringByTimezoneOffset = (date, offset) -> | |
localTime = date.getTime() | |
utc = localTime + localOffset | |
offsetDate = utc + 3600000 * offset | |
nd = (new Date(offsetDate)) | |
nd.toLocaleDateString() + ' ' + nd.toLocaleTimeString() | |
d = new Date() |
This file contains 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
iOS: | |
http://support.apple.com/kb/HT5012?viewlocale=en_US&locale=en_US | |
node.js: | |
https://github.com/joyent/node/blob/master/src/node_root_certs.h |
This file contains 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
[ | |
{ | |
"weiboProvCode": "001011", | |
"name": "Beijing", | |
"countryCode": "CN", | |
"geoNames": { | |
"alternateNames": [ | |
{ | |
"name": "http://en.wikipedia.org/wiki/Beijing", | |
"lang": "link" |
This file contains 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
{ | |
"Africa/Abidjan": { | |
"offset": 0, | |
"dst": [] | |
}, | |
"Africa/Accra": { | |
"offset": 0, | |
"dst": [] | |
}, | |
"Africa/Addis_Ababa": { |
This file contains 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
assign = (target, firstSource) -> | |
if !target? | |
throw new TypeError('Cannot convert first argument to object') | |
to = Object(target) | |
hasPendingException = false | |
pendingException = undefined | |
i = 1 | |
while i < arguments.length | |
nextSource = arguments[i] |
This file contains 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
/* @flow */ | |
type Point = 'Love' | 'Fifteen' | 'Thirty'; | |
type Deuce = 'Deuce'; | |
type PlayerOne = 'Player1'; | |
type PlayerTwo = 'Player2'; | |
type Player = PlayerOne | PlayerTwo; | |
type GameOfPlayer = { | |
gameOfPlayer: Player |
This file contains 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
docker run -it -p 8081:8081 -v ~/dgraph-naive:/dgraph --name dgraph-naive dgraph/dgraph dgraph --bindall=true --memory_mb 2048 --port 8081 |
This file contains 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
^([+]((14|(14[:]?00))|([0][0-9]|[1][01])|([0][0-9]|[1][01])[:]?[0-5][0-9]))|([-]((12|(12[:]?00))|([0][0-9]|[1][01])|([0][0-9]|[1][01])[:]?[0-5][0-9]))$ | |
The offset from UTC is given in the format ±[hh]:[mm], ±[hh][mm], or ±[hh], for exsamples: | |
Reference to http://en.wikipedia.org/wiki/Zone.tab. | |
+14:00 | |
+1200 | |
+12 | |
-11:59 | |
-01 |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
This file contains 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
ADP ADP | |
AED AED | |
AFA AFA | |
AFN Af | |
ALK ALK | |
ALL ALL | |
AMD AMD | |
ANG NAf. | |
AOA Kz | |
AOK AOK |
OlderNewer