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
function Rocker(name){
this.name = name;
};
Rocker.prototype.getName = function(){
return this.name;
}
//https://rockjins.github.io/2017/01/18/new-object/
CreateObject("WScript.Shell").Run "F:\aria2\aria2c.exe --conf-path=aria2.conf",0