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 / index.html
Created July 7, 2020 09:17 — forked from xgqfrms/index.html
Flutter in DartPad live app
<h1>Flutter in DartPad live app</h1>
<div>
<canvas id="canvas" width="300" height="300"></canvas>
</div>
@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 / bash-error.md
Last active May 27, 2020 06:41
bash-error

Ctrl + Alt + P 复制节点 URL

emmet

@xyzdata
xyzdata / React-Templates.md
Created September 20, 2017 06:25 — forked from xgqfrms-GitHub/React-Templates.md
React Templates
@xyzdata
xyzdata / emial-tel.md
Last active November 13, 2020 03:13
emial : auto template& tel

emial

auto template

    

<a 
   href="mailto:xgqfrms@gmail.com?cc=xgqfrms@xgqfrms.xyz&amp;subject=Newsletter%20subscription&amp;body=Please%20subscribe%20me%20to%20your%20newsletter!">
 xgqfrms@xgqfrms.xyz
@xyzdata
xyzdata / tree.css
Created August 23, 2017 07:52 — forked from dylancwood/tree.css
CSS to create a simple tree structure with connecting lines. No images or JS required.
ul.tree, ul.tree ul {
list-style: none;
margin: 0;
padding: 0;
}
ul.tree ul {
margin-left: 10px;
}
ul.tree li {
margin: 0;
@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 / GitHub-API.md
Created August 3, 2017 02:23 — forked from xgqfrms-GitHub/GitHub-API.md
GitHub GraphQL API

github API

GitHub GraphQL API

let username = `xgqfrms-GitHub`;
    repo = `Node-CLI-Tools/commits`;
@xyzdata
xyzdata / xgqfrms react-e.preventDefault()-e.stopPropagation().md
Created August 2, 2017 08:01
xgqfrms , react & e.preventDefault(); & e.stopPropagation();

react & e.preventDefault(); & e.stopPropagation();

xgqfrms react

    


e.preventDefault();
e.stopPropagation();