Skip to content

Instantly share code, notes, and snippets.

@yijian166
yijian166 / Enhance.js
Created March 12, 2016 00:41 — forked from sebmarkbage/Enhance.js
Higher-order Components
import { Component } from "React";
export var Enhance = ComposedComponent => class extends Component {
constructor() {
this.state = { data: null };
}
componentDidMount() {
this.setState({ data: 'Hello' });
}
render() {
@yijian166
yijian166 / rules.conf
Created October 26, 2015 13:53 — forked from janlay/README.md
Yet another config for Surge.app (build 245+)
# This config file was created for myself (@janlay). You may want to add or remove some rules to make efficient use of the Internet.
# This file depends on the main.conf which defines your own proxy.
# Your main.conf will look like this:
# ---- START ----
# #!PROXY-OVERRIDE:rules.conf
# [Proxy]
# Proxy = https,server.address,port,username,password
# ---- END ----
#
@yijian166
yijian166 / surge.conf
Created October 8, 2015 09:11 — forked from soffchen/surge.conf
surge.conf
[General]
loglevel = notify
all-tcp-mode = false
[Proxy]
Proxy = custom
[Rule]
// iOS Maps
DOMAIN-SUFFIX,ls.apple.com,DIRECT
@yijian166
yijian166 / app.js
Last active August 29, 2015 14:06 — forked from jgoux/app.js
angular.module('myApp', ['ionic', 'myApp.services', 'myApp.controllers'])
.run(function(DB) {
DB.init();
});
@yijian166
yijian166 / 0_reuse_code.js
Created April 17, 2014 02:29
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
@yijian166
yijian166 / dabblet.css
Created December 17, 2012 03:43 — forked from LeaVerou/dabblet.css
Pounding heart animation
/* Pounding heart animation */
@keyframes pound {
to { transform: scale(1.4); }
}
.heart {
display: inline-block;
font-size: 150px;
color: #e00;