When using now.json's route to perform server side redirects, like the following 3 different cases:
{ "src": "/thoughts/", "dest": "/blogIndex" },
{ "src": "/thoughts", "status": 301, "headers": { "Location": "/thoughts/" } },
When using now.json's route to perform server side redirects, like the following 3 different cases:
{ "src": "/thoughts/", "dest": "/blogIndex" },
{ "src": "/thoughts", "status": 301, "headers": { "Location": "/thoughts/" } },
| // https://30secondsofcode.org/node | |
| module.exports = (...args) => ({ | |
| black: `\x1b[30m${args.join(' ')}`, | |
| red: `\x1b[31m${args.join(' ')}`, | |
| green: `\x1b[32m${args.join(' ')}`, | |
| yellow: `\x1b[33m${args.join(' ')}`, | |
| blue: `\x1b[34m${args.join(' ')}`, | |
| magenta: `\x1b[35m${args.join(' ')}`, |
| steps: | |
| # Decrypt the file containing the key | |
| - name: 'gcr.io/cloud-builders/gcloud' | |
| args: ... |
| The Great Firewall of China seems to be hijacking Baidu Analytics (TongJi)'s Javascript code, | |
| launching DDOS attacks on enemy websites from browsers. | |
| Different hm.js (TongJi library) libraries are spotted and load interchangably. | |
| An altered hm.js code is used when DDOS is observed. | |
| More Info: https://stackoverflow.com/questions/45874555/baidu-tongji-analytics-is-directing-browsers-to-ddos-chinas-enemies | |
| // taken from http://easings.net/ | |
| $ease-in-out-back: cubic-bezier(0.680, -0.550, 0.265, 1.550); | |
| $ease-in-out-circ: cubic-bezier(0.785, 0.135, 0.150, 0.860); | |
| $ease-in-out-expo: cubic-bezier(1.000, 0.000, 0.000, 1.000); | |
| $ease-in-out-sine: cubic-bezier(0.445, 0.050, 0.550, 0.950); | |
| $ease-in-out-quint: cubic-bezier(0.860, 0.000, 0.070, 1.000); | |
| $ease-in-out-quart: cubic-bezier(0.770, 0.000, 0.175, 1.000); | |
| $ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1.000); | |
| $ease-in-out-quad: cubic-bezier(0.455, 0.030, 0.515, 0.955); |
| // UPS District and Codes for Hong Kong, extracted from UPS Shipping Package Developer Kit PDF | |
| [ | |
| { | |
| "name": "Aberdeen", | |
| "translations": { | |
| "zh": "香港仔" | |
| }, | |
| "code": "SD1" | |
| }, |
| Router.route('/login', function () { | |
| if (!Meteor.userId()) | |
| { | |
| this.render('login', { | |
| data: function(){ | |
| return {is_login: true}; | |
| } | |
| }); |
| <?php | |
| $countries = array | |
| ( | |
| 'AF' => 'Afghanistan', | |
| 'AX' => 'Aland Islands', | |
| 'AL' => 'Albania', | |
| 'DZ' => 'Algeria', | |
| 'AS' => 'American Samoa', | |
| 'AD' => 'Andorra', |
| http { | |
| proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=one:8m max_size=3000m inactive=600m; | |
| proxy_temp_path /var/tmp; | |
| include mime.types; | |
| default_type application/octet-stream; | |
| sendfile on; | |
| keepalive_timeout 65; | |
| gzip on; | |
| gzip_comp_level 6; |