Skip to content

Instantly share code, notes, and snippets.

View fanyer's full-sized avatar

Fy fanyer

  • Somewhere on Earth
View GitHub Profile
@fanyer
fanyer / .eslintrc
Created October 14, 2016 08:31 — forked from cletusw/.eslintrc
ESLint Reset - A starter .eslintrc file that resets all rules to off and includes a description of what each rule does. From here, enable the rules that you care about by changing the 0 to a 1 or 2. 1 means warning (will not affect exit code) and 2 means error (will affect exit code).
{
// http://eslint.org/docs/rules/
"ecmaFeatures": {
"binaryLiterals": false, // enable binary literals
"blockBindings": false, // enable let and const (aka block bindings)
"defaultParams": false, // enable default function parameters
"forOf": false, // enable for-of loops
"generators": false, // enable generators
"objectLiteralComputedProperties": false, // enable computed object literal property names
# 1. Generate an API Token from dnspod.cn
# 2. create a record first
# 3. change $TMP_FILE
# 4. get your $DOMAIN_ID
# 5. change $NEW_IP generation method.
# 6. sudo apt-get install jq
TOKEN=12345,1234567890abcdef1234567890abcdef #TODO: change this TOKEN.
TMP_FILE=/tmp/scateu.me.list #TODO
@fanyer
fanyer / index.html
Created November 18, 2016 15:01 — forked from anonymous/index.html
Lissajous
<div id="main" data-width="512">
<canvas></canvas>
</div>
<div id="controller"></div>
@fanyer
fanyer / index.html
Created November 18, 2016 15:05 — forked from anonymous/index.html
Particles.js
<div id="particles-js"> <h1>Particles.js</h1>
</div>
@fanyer
fanyer / index.html
Created November 21, 2016 01:51 — forked from anonymous/index.html
Material Design - Circle Progress
<div id="home" data-role="page">
<div role="main" class="ui-content">
<!--red-->
<div style="width:100%; text-align:center; margin-top:20px; font-size:20px; font-weight:500;">Material Design - Progress and Activity</div>
<div style="width:100%; text-align:center; margin-top:10px;">
<div class="sd">
<svg class="loading-bg-red" width="100" height="100" x="0" y="0" style="position:absolute; top:0; left:0;">
<circle cx="50" cy="50" r="25" stroke="rgba(255,100,120,.2)" stroke-width="0" fill="none" stroke-dasharray="156,156" stroke-dashoffset="0" stroke-linecap="round"></circle>
</svg>
@fanyer
fanyer / index.html
Created November 21, 2016 02:25 — forked from anonymous/index.html
Tumblr iOS Loading animation in HTML & CSS
<ul>
<li></li>
<li></li>
<li></li>
</ul>
@fanyer
fanyer / 404-svg.markdown
Created November 21, 2016 09:51 — forked from anonymous/404-svg.markdown
404 SVG
@fanyer
fanyer / index.pug
Created December 15, 2016 19:02 — forked from anonymous/index.pug
Material Login Form
// Mixins
mixin input(type, label)
.input-container
input(type='#{type}' id='#{label}' required)
label(for='#{label}')=label
.bar
mixin button(text)
.button-container
button
span=text

Flat Notifications - FlatNotify.js v0.1

This is a Javascript plugin I am working on for floating notifications. It is a work in progress.

A Pen by Saransh Sinha on CodePen.

License.

@fanyer
fanyer / .tmux.conf
Created June 2, 2017 06:34 — forked from zhasm/.tmux.conf
tmux config
#ctrl a
set -g prefix ^a
unbind ^b
bind a send-prefix
#此类配置可以在命令行模式中输入show-options -g查询
#set-option -g base-index 1 #窗口的初始序号;默认为0,这里设置为1
set-option -g display-time 5000 #提示信息的持续时间;设置足够的时间以避免看不清提示,单位为毫秒
set-option -g repeat-time 1000 #控制台激活后的持续时间;设置合适的时间以避免每次操作都要先激活控制台,单位为毫秒
set-option -g status-keys emacs #操作状态栏时的默认键盘布局;可以设置为vi或emacs
set-option -g status-right "#(date +%H:%M' ')" #状态栏右方的内容;这里的设置将得到类似23:59的显示