Skip to content

Instantly share code, notes, and snippets.

p {
font-fmaily: 'Helvetica Neue', 'PingFang TC', 'Microsoft JhengHei', 'Arial', sans-serif;
}
// from https://perishablepress.com/pure-css-better-image-preloading-without-javascript/
<div id="preloaded-images">
<img src="../assets/start/icon-flow-city.svg" width="1" height="1" />
</div>
#preloaded-images {
position: absolute;
overflow: hidden;
@LiYiBin
LiYiBin / .eslintrc.js
Created January 16, 2017 10:06
eslint for React
module.exports = {
'env': {
'browser': true,
'es6': true,
'mocha': true,
},
'extends': 'airbnb',
'parser': 'babel-eslint',
'parserOptions': {
@LiYiBin
LiYiBin / .env.example.yml
Last active May 9, 2017 08:28
ansible-docker
---
# for virtualbox
vm:
ip: "192.168.33.33"
memory: 2048
# for playbook
linux_codename: trusty # use `lsb_release -cs` to query codename
docker_ce_version: 17.03.1~ce-0~ubuntu-trusty
docker_compose_version: 1.13.0
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Cropper Example</title>
<link rel="stylesheet" href="./node_modules/cropperjs/dist/cropper.css">
</head>
---
- hosts: all
become: true
vars_files:
- .env.yml
tasks:
- name: Install required packages for docker
yum: name={{ item }} state=present
with_items:
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
indent_style = space
indent_size = 4
end_of_line = lf
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch for Chrome Debug",
"type": "chrome",
"request": "launch",
"url": "<YOUR_URL>",
"webRoot": "${workspaceRoot}/public"
},
@LiYiBin
LiYiBin / installDockerClient
Created August 29, 2017 07:04
Install Docker client
# Install Docker client
ARG DOCKER_VERSION=1.13.1
ARG DOCKER_COMPOSE_VERSION=1.14.0
RUN curl -fsSL https://get.docker.com/builds/Linux/x86_64/docker-$DOCKER_VERSION.tgz | tar --strip-components=1 -xz -C /usr/local/bin docker/docker
RUN curl -fsSL https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateExistTables extends Migration
{
private $sqlFolder = 'database/migrations/Dump20170907';
private function getDumpSQLs()