Skip to content

Instantly share code, notes, and snippets.

View daimagine's full-sized avatar

Adi Kurniawan daimagine

  • Bogor
View GitHub Profile
@daimagine
daimagine / campur.js
Last active September 28, 2016 14:24 — forked from fadliawan/campur.js
Asura + Wyvern
// Asura (CustomerController.js)
static async postCustomerWithMagic(ctx, next) {
// .. something something
} else if (primary_id_type === 'customerId') {
let { isActive, isProvisioned } = await api.classify(primary_id, primary_id_type);
if (!isActive && !isProvisioned) {
await api.provision(customer.id, 'spAccountId', customer.sku, effectiveDate, primary_id);
}
} else {
var React = require('react');
var Router = require('react-router');
var Link = Router.Link;
var ReactPropTypes = React.PropTypes;
var ProductStore = require('../../stores/ProductStore.react.jsx')
var ErrorNotice = require('../../components/common/ErrorNotice.react.jsx');
var ProductActionCreators = require('../../actions/ProductActionCreators.react.jsx');
var AuthenticatedMixin = require('../../components/common/AuthenticatedMixin.react.jsx');
var ReactInfinity = require('react-infinity');
<body class="error-body no-top breakpoint-480 pace-done">
<div class="pace pace-inactive">
<div class="pace-progress" data-progress-text="100%" data-progress="99" style="-webkit-transform: translate3d(100%, 0px, 0px); transform: translate3d(100%, 0px, 0px);">
<div class="pace-progress-inner"></div>
</div>
<div class="pace-activity"></div>
</div>
<header class="product-header">
<div class="pull-left logo-container">
<!-- BEGIN LOGO-->
@daimagine
daimagine / nginx.conf
Created June 28, 2015 01:41
Nginx Configuration
user www;
worker_processes 1;
error_log /var/log/nginx/error.log;
pid /usr/local/etc/nginx/nginx.pid;
events {
worker_connections 1024;
}
@daimagine
daimagine / LoginForm
Created June 27, 2015 17:35
React mixin with script loader
import React from 'react/addons';
import ReactMixin from 'react-mixin';
import ReactScriptLoaderMixin from 'react-script-loader';
export default class LoginForm extends React.Component {
constructor() {
super();
this.state = {
user: '',
password: '',