Skip to content

Instantly share code, notes, and snippets.

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';
@ilhamwahabi
ilhamwahabi / tests.md
Last active August 26, 2020 09:39
Efforts that have been made

#######################################################################

menambahkan mode: 'development' ke config webpack

npm run dev

booting | 175417ms

1st change | 18962ms

// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@ilhamwahabi
ilhamwahabi / motivasi.php
Last active November 24, 2018 14:27
Add
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 );
};
@ilhamwahabi
ilhamwahabi / 0_reuse_code.js
Created September 20, 2017 15:13
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ilhamwahabi
ilhamwahabi / scopes.txt
Created May 18, 2017 15:09 — forked from iambibhas/scopes.txt
Sublime Text 2: Snippet scopes
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