workflow:
$ rails g model NameOfModel
invoke active_record
create db/migrate/YYYYMMDDHHMMSS_create_name_of_models.rb| /** | |
| * run `npm init -y` | |
| * run `npm i node-fetch` | |
| * run `node index.js` | |
| * turn Slack notifications on | |
| * | |
| * Get cowinUrl from the DevTools' network tab | |
| * Get authorization string from the Request Headers as the value of authorization header of the network request for cowinUrl. If this expires, the script will stop working. You'll have to log in again and get a new value for this. | |
| */ |
| /* | |
| * Let server be running at http://localhost:3000 | |
| */ | |
| // server.js | |
| var index = require('./routes/index'); | |
| var users = require('./routes/users'); | |
| app.use('/', index); | |
| app.use('/users', users);//this will prefix all user routes with users. Namespace effect. |
| (function(window, document, JSON){ | |
| "use strict"; | |
| var SEP = '|', ua, opera, ie; | |
| /* | |
| * Collect Browser & Device Data | |
| */ | |
| var Collector = { | |
| /* | |
| * MD5 Checksum calculation | |
| */ |