#######################################################################
menambahkan mode: 'development' ke config webpack
npm run dev
booting | 175417ms
1st change | 18962ms
| import React, { Component } from 'react'; | |
| import PropTypes from 'prop-types'; | |
| import { FormattedMessage, injectIntl, intlShape } from 'react-intl'; | |
| import { connect } from 'react-redux'; | |
| import { bindActionCreators } from 'redux'; | |
| import md5 from 'md5'; | |
| import get from 'lodash/get'; | |
| import isEmpty from 'lodash/isEmpty'; | |
| import { HIQCLIENT_KIND } from '../../modules/utilities/Constants'; |
#######################################################################
menambahkan mode: 'development' ke config webpack
npm run dev
booting | 175417ms
1st change | 18962ms
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
| class MotivationNotifData { | |
| public $type = 'motivation'; | |
| } | |
| OneSignal::sendNotificationUsingTags( | |
| "Some Message", | |
| array( | |
| ["field" => "user_id", "relation" => "=", "value" => $userId], | |
| ), | |
| $data = json_encode(new MotivationNotifData()), |
| function throttle( fn, time ) { | |
| var t = 0; | |
| return function() { | |
| var args = arguments, ctx = this; | |
| clearTimeout(t); | |
| t = setTimeout( function() { | |
| fn.apply( ctx, args ); | |
| }, time ); | |
| }; |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| Here is a list of scopes to use in Sublime Text 2 snippets - | |
| ActionScript: source.actionscript.2 | |
| AppleScript: source.applescript | |
| ASP: source.asp | |
| Batch FIle: source.dosbatch | |
| C#: source.cs | |
| C++: source.c++ | |
| Clojure: source.clojure | |
| CoffeeScript: source.coffee |