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
@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

@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 / cookie-all-in-one.js
Last active March 20, 2018 08:45
cookies & cookie all in one & xgqfrms
@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 / 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

    
//
@xgqfrms-GitHub
xgqfrms-GitHub / React-Templates.md
Last active September 20, 2017 06:26
React Templates
@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"] }
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 / ant-design-react-click-bug.md
Created June 23, 2017 01:32
ant-design & react click bug!

ES6

var UserGist = React.createClass({
  getInitialState() {
    return {
      username: '',
      lastGistUrl: ''
    };
  },