Skip to content

Instantly share code, notes, and snippets.

View tanapoln's full-sized avatar

Tanapol Nearunchorn tanapoln

View GitHub Profile
import React from 'react'
import { RouterContext } from 'react-router'
import _ from 'lodash'
export default class AsyncComp extends React.Component {
constructor(props, context) {
super(props, context)
this.state = {
loading : false,
currentProp: props,
package com.tanapoln.utils;
import java.time.Clock;
import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneId;
/**
* {@code TimeMachine} provide a central method for accessing system time with an ease on testing.<br>
@tanapoln
tanapoln / less-test.less
Created July 9, 2016 02:50
Testing less mixins behavior
.border() {
&:after {
border: 1px solid black;
}
}
.border() {
&:after {
border: 1px solid red;
}
@tanapoln
tanapoln / 0_reuse_code.js
Created December 25, 2015 16:30
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