If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"
npm adduser
package | |
{ | |
import flash.net.getClassByAlias; | |
import flash.utils.describeType; | |
import flash.utils.getDefinitionByName; | |
import flash.utils.getQualifiedClassName; | |
import mx.utils.ObjectUtil; | |
public class JSONConverter |
(function () { | |
'use strict'; | |
angular.module('app.views', []) | |
.controller('MainController', MainController); | |
function MainController($modal) { | |
// --------------------------------- | |
// Open Modal |
If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"
npm adduser
'use strict'; | |
/** | |
* Module dependencies. | |
*/ | |
const Hoek = require('hoek'); | |
const Limiter = require('ratelimiter'); | |
const RedisClient = require('../utils/redis'); | |
const ReplyUtil = require('../utils/reply'); |
/*eslint-disable */ | |
var path = require('path'); | |
var express = require('express'); | |
var webpack = require('webpack'); | |
var config = require(path.join(__dirname, 'webpack.config')); | |
var app = this.app = new express(); | |
var compiler = webpack(config); | |
var devMiddleware = require('webpack-dev-middleware')(compiler, { | |
noInfo: true, |
import { Component } from "React"; | |
export var Enhance = ComposedComponent => class extends Component { | |
constructor() { | |
this.state = { data: null }; | |
} | |
componentDidMount() { | |
this.setState({ data: 'Hello' }); | |
} | |
render() { |
// === Arrays | |
var [a, b] = [1, 2]; | |
console.log(a, b); | |
//=> 1 2 | |
// Use from functions, only select from pattern | |
var foo = () => { | |
return [1, 2, 3]; |
import CircleButton from './CircleButton'; | |
// Init stage | |
const stage = new createjs.Stage("demo"); | |
// Button black | |
const btn = new CircleButton('Hi'); | |
btn.x = 50; btn.y = 50; | |
stage.addChild(btn); |
Since modern.ie released vagrant boxes, it' no longer necessary to manually import the ova file to virtualbox, as mentioned here.
However, the guys at modern.ie didn't configured the box to work with WinRM. This how-to addresses that, presenting steps to proper repackage these boxes, adding WinRM support. Additionally configures chocolatey package manager and puppet provisioner.
editor.addKeyMap({ | |
"Tab": function (cm) { | |
if (cm.somethingSelected()) { | |
var sel = editor.getSelection("\n"); | |
// Indent only if there are multiple lines selected, or if the selection spans a full line | |
if (sel.length > 0 && (sel.indexOf("\n") > -1 || sel.length === cm.getLine(cm.getCursor().line).length)) { | |
cm.indentSelection("add"); | |
return; | |
} | |
} |