Skip to content

Instantly share code, notes, and snippets.

# 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
---
- hosts: all
become: true
vars_files:
- .env.yml
tasks:
- name: Install required packages for docker
yum: name={{ item }} state=present
with_items:
<!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>
@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
@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': {
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;