##https error fix / hack## in your git config file. Disables security and is kind of dangerous!!!
[http] sslVerify = false
##clone## $ git clone git://github.com/schacon/ticgit.git
##push##
| require('dotenv-extended').load(); | |
| var builder = require('botbuilder'); | |
| var restify = require('restify'); | |
| // Setup Restify Server | |
| var server = restify.createServer(); | |
| server.listen(process.env.port || process.env.PORT || 3978, function () { | |
| console.log('%s listening to %s', server.name, server.url); | |
| }); |
| { | |
| "luis_schema_version": "1.3.1", | |
| "versionId": "0.1", | |
| "name": "your app", | |
| "desc": "", | |
| "culture": "en-us", | |
| "intents": [ | |
| { | |
| "name": "Age" | |
| }, |
| Discovering and Inspecting Variables in Twig Templates | |
| {{ dump(_context|keys) }} | |
| or | |
| <ol> | |
| {% for key, value in _context %} | |
| <li>{{ key }}</li> | |
| {% endfor %} | |
| </ol> |
| 'use strict'; | |
| var HtmlWebpackPlugin = require('html-webpack-plugin'); | |
| var webpack = require('webpack'); | |
| var path = require('path'); | |
| var config = { | |
| entry: './app/index.js', | |
| output: { | |
| path: './build', | |
| filename: 'index_bundle.js' |
| /*jshint esnext:true*/ | |
| //https://github.com/mjackson/expect | |
| <script src="https://npmcdn.com/expect/umd/expect.min.js"></script> |
| // require() some stuff from npm (like you were using browserify) | |
| // and then hit Run Code to run it on the right | |
| var _ = require('lodash'); | |
| var arr = _.chunk(['a', 'b', 'c', 'd'], 2)[1].toString(); | |
| var insertCSS = require('insert-css') | |
| var domify = require('domify') | |
| var css = ".button { display: inline-block; font-family: Arial; background-color: papayawhip; padding: 10px; border: 1px solid salmon; }" | |
| var html = '<div class="button">BUTTON</div><br>' |
| //used for stubbing out a service and returning resolve | |
| function getImagesService() { | |
| var serviceUrl = ''; | |
| //add fake data for testing. | |
| if (serviceUrl === '') { | |
| var images = [], image; | |
| for (var i = 1; i <= 18; i++) { |
##https error fix / hack## in your git config file. Disables security and is kind of dangerous!!!
[http] sslVerify = false
##clone## $ git clone git://github.com/schacon/ticgit.git
##push##
Express 4.0
Debug on windows: set DEBUG=express:* node ./bin/www
Node inspector.
node-debug app.js --debug-brk (break right away)
$ node-inspector & node --debug your-node-app.js
| .myClass{ position: relative;.nestedClass{margin-bottom:0;position: absolute; bottom: 0;}} |