Skip to content

Instantly share code, notes, and snippets.

View xyzdata's full-sized avatar
🏠
Working from home

xyzdata xyzdata

🏠
Working from home
View GitHub Profile
anonymous
anonymous / test.js
Created August 22, 2017 06:00
Fetch API Post example
const promise = new Promise(
(resolve, reject) => {
// do a thing, possibly async, then…
if (/* everything turned out fine */) {
resolve("Stuff worked!");
}
else {
reject(Error("It broke"));
}
}
@xyzdata
xyzdata / eslint-1-warnings-2-errors.md
Last active August 27, 2017 15:35
`1` for `warnings` and `2` for `errors` & "rules": { "semi": [2, "always"] }
@xgqfrms-GitHub
xgqfrms-GitHub / React-Templates.md
Last active September 20, 2017 06:26
React Templates
@xyzdata
xyzdata / dynamically-generate-nested-li.md
Last active October 31, 2017 06:07
how to dynamically generate nested li list using js

how to dynamically generate nested li list using js

    
//
@xyzdata
xyzdata / express static web server & Linux node.js.md
Created March 5, 2018 02:00
express static web server & Linux node.js

express static web server & Linux node.js

image

// simple express server for HTML pages!
// ES6 style

const express = require('express');
@xyzdata
xyzdata / cookie-all-in-one.js
Last active March 20, 2018 08:45
cookies & cookie all in one & xgqfrms
@xyzdata
xyzdata / test.js
Created August 22, 2017 06:07 — forked from anonymous/test.js
Fetch API Post example
const promise = new Promise(
(resolve, reject) => {
// do a thing, possibly async, then…
if (/* everything turned out fine */) {
resolve("Stuff worked!");
}
else {
reject(Error("It broke"));
}
}
@xyzdata
xyzdata / input-number-spin-style.md
Created July 5, 2017 07:03
input=number & spin style (arrows)

input=number & spin style (arrows)

how to hidden [input=number] browser default spin style

css input type number remove arrows

@xgqfrms
xgqfrms / index.html
Last active July 8, 2020 07:16
Flutter in DartPad live app
<h1>Flutter in DartPad live app</h1>
<div>
<canvas id="canvas" width="300" height="300"></canvas>
</div>
@xgqfrms
xgqfrms / word-cloud.html
Last active September 5, 2020 16:34
cloud.js & word-cloud.html
<div class="item-list tags">
<script type="text/plain" id="tag-data">
Markdown,1/Github,1/Ruby,2/HTML,12/CentOS,6/Bash,28/Makefile,2/ArchLinux,4/触摸板,1/X11,1/网络,13/IP,7/TCP,7/HTTP,8/SMTP,1/DHCP,3/POP3,1/算法,4/排序,3/搜索引擎,1/Java,2/远程桌面,2/操作系统,6/字体,1/Vim,3/C++,81/链表,1/STL,8/CSS,7/JavaScript,28/数据库,4/SQL,3/Objective-C,3/移动开发,4/iOS,2/Android,1/PLC,1/SSH,1/Linux,2/XMPP,1/Erlang,1/Node.js,2/MongoDB,1/Apache,1/PHP,2/UTC,1/GMT,1/CST,1/hwclock,1/LaTex,1/MySQL,1/Ubuntu,2/字符编码,2/UTF-8,1/C#,1/.NET,1/WPF,1/Python,2/Django,1/Flash,1/剪切板,1/AngularJS,7/MVC,5/表单,2/AJAX,1/Promise,1/数据绑定,1/模块化,1/依赖注入,1/路由,1/盒模型,3/构造函数,12/析构函数,7/拷贝构造函数,5/赋值运算符,9/静态变量,3/常量,2/运算符,3/运算符重载,13/jQuery,4/事件,4/虚函数,8/多态,2/继承,12/封装,6/名称隐藏,7/字符串,2/函数指针,4/函数对象,2/指针,11/引用,6/可变参数,1/模板,8/宏,2/进程,1/内存,1/字节序,1/字节对齐,1/异常,5/智能指针,7/RAII,3/工厂方法,1/类型转换,7/DOM,6/动态内存,8/接口,5/Cookie,2/Session,2/回流,1/重绘,1/LocalStorage,1/inline,1/编译,3/依赖,1/using,1/转发函数,1/策略模式,1/模板方法,1/动态绑定,1/默认参数,1/组合,1/多继承,1/接口类,1/函数重载,1/特化,1/选择符,1/成员函数,1/容器,1/迭代器,1/原型,2/类型检查,1/Boost,2/数组,1/哈希,1/全局