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
| curl -I -X OPTIONS \ | |
| -H "Origin: http://EXAMPLE.COM" \ | |
| -H 'Access-Control-Request-Method: GET' \ | |
| http://EXAMPLE.COM/SOMETHING 2>&1 | grep 'Access-Control-Allow-Origin' |
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
| function ToInteger(x) { | |
| x = Number(x); | |
| return x < 0 ? Math.ceil(x) : Math.floor(x); | |
| } | |
| function modulo(a, b) { | |
| return a - Math.floor(a/b)*b; | |
| } | |
| function ToUint8(x) { |
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
Show hidden characters
| { | |
| "Vue Router Path": { | |
| "scope": "javascript,typescript,vue", | |
| "prefix": "router_path_component", | |
| "body": [ | |
| "{", | |
| "\tpath: '/$1',", | |
| "\tcomponent: $2", | |
| "}," | |
| ], |
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
| { | |
| "Vue Store Module": { | |
| "scope": "javascript,typescript,vue", | |
| "prefix": "store_module", | |
| "body": [ | |
| "\"use strict\";", | |
| "", | |
| "const state = {};", | |
| "const actions = {};", | |
| "const mutations = {};", |
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
| { | |
| "Vue Component": { | |
| "scope": "javascript,typescript,vue", | |
| "prefix": "component", | |
| "body": [ | |
| "<style lang=\"scss\" scoped>", | |
| "\t.$1 {", | |
| "\t}", | |
| "</style>\n", | |
| "<template>", |
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
| mongorestore --gzip --archive=test.20150715.gz --db test |
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
| mongodump --archive=test.20150715.gz --gzip --db test |