A zoomable candlestick chart.
Copyright © 2015, Anil Nair - MIT License
| version: '3' | |
| services: | |
| # Frontend | |
| web: | |
| image: jitsi/web | |
| restart: ${RESTART_POLICY} | |
| ports: | |
| - '${HTTP_PORT}:80' | |
| - '${HTTPS_PORT}:443' |
| # Security | |
| # | |
| # Set these to strong passwords to avoid intruders from impersonating a service account | |
| # The service(s) won't start unless these are specified | |
| # Running ./gen-passwords.sh will update .env with strong passwords | |
| # You may skip the Jigasi and Jibri passwords if you are not using those | |
| # DO NOT reuse passwords | |
| # | |
| # XMPP component password for Jicofo |
| <?php | |
| if (PHP_VERSION_ID < 50400) { | |
| die("Gazelle requires PHP 5.4 or later to function properly"); | |
| } | |
| date_default_timezone_set('UTC'); | |
| // Main settings | |
| define('SITE_NAME', 'Orpheus Dev'); //The name of your site | |
| define('NONSSL_SITE_URL', 'localhost:8080'); //The FQDN of your site | |
| define('SSL_SITE_URL', 'localhost:8080'); //The FQDN of your site, make this different if you are using a subdomain for ssl |
A zoomable candlestick chart.
Copyright © 2015, Anil Nair - MIT License
| nvm install v10 | |
| npm i -g @vue/cli | |
| vue create <project> | |
| #nothing happens |
| //usage | |
| app.controller('ChatCtrl', ['socket', function(socket){ | |
| socket.on('chat:messages', function(data){ | |
| $log.log('chat:messages', data); | |
| $scope.messages = data.messages; | |
| }); | |
| }]); |
| <form submit.delegate="onSubmit()"> | |
| <fieldset> | |
| .... | |
| </fieldset> | |
| <nav> | |
| <button type="button" click.delegate="onDelete()">Delete</button> | |
| <button>Submit</button> | |
| </nav> | |
| </form> |
| ctrl.post = function *(next){ | |
| var data = this.request.body; | |
| var tagIds = data.tags.map(tag => { | |
| return tag.id; | |
| }); | |
| delete data.tags; | |
| var post = new Post(data); |
| $ rethinkdb | |
| Recursively removing directory /Users/username/projects/myapp/myapp-web/rethinkdb_data/tmp | |
| Initializing directory /Users/username/projects/myapp/myapp-web/rethinkdb_data | |
| Running rethinkdb 2.0.2 (CLANG 6.1.0 (clang-602.0.53))... | |
| Running on Darwin 14.3.0 x86_64 | |
| Loading data from directory /Users/username/projects/myapp/myapp-web/rethinkdb_data | |
| Listening for intracluster connections on port 29015 | |
| Listening for client driver connections on port 28015 | |
| Listening for administrative HTTP connections on port 8080 | |
| Listening on addresses: 127.0.0.1, ::1 |
| var cfg = require('../../config'); | |
| var thinky = require('thinky')(cfg.db); | |
| var type = thinky.type; | |
| var r = thinky.r; | |
| // Create a model - the table is automatically created | |
| var Thing = thinky.createModel("Thing", { | |
| id: type.string(), | |
| title: type.string(), | |
| createdAt: type.date().default(() => { |