Skip to content

Instantly share code, notes, and snippets.

View xgqfrms's full-sized avatar
💭
🎉 👻 💻 🕵️‍♂️

xgqfrms xgqfrms

💭
🎉 👻 💻 🕵️‍♂️
View GitHub Profile
@xgqfrms
xgqfrms / GitHub-GraphQL-API-v4.md
Created June 10, 2017 09:31
REST API v3 & GitHub GraphQL API v4
// only for Angular2 dist
//
// # SimpleServer
//
// A simple chat server using Socket.IO, Express, and Async.
//
var http = require('http');
var path = require('path');
var async = require('async');
@xgqfrms
xgqfrms / git hooks & husky & eslint.md
Created May 6, 2020 09:35
git hooks & husky & eslint
@xgqfrms
xgqfrms / async await errorCaptured.md
Created May 17, 2020 17:02
async /await errorCaptured

async /await errorCaptured

"use strict";

/**
 *
 * @author xgqfrms
 * @license MIT
 * @copyright xgqfrms
@xgqfrms
xgqfrms / js repeatify.md
Created June 2, 2020 15:16
js repeatify

ES6 version

repeatify

String.prototype.repeatify = function (times = 1) {
  console.log(this)
 // String {"abx"}

html5 tempalte all in one

<!DOCTYPE html>
<html lang="zh-Hans" manifest="manifest.appcache">
<!-- manifest.json -->

<head>
    <!--
@xgqfrms
xgqfrms / main.dart
Last active July 7, 2020 09:46
dart date types 🎯
/// dart block comments
// https://dart.dev/guides/language/effective-dart/documentation#doc-comments
// https://dart.dev/samples#comments
/**
*
* @author xgqfrms
* @license MIT
* @copyright xgqfrms
* @created 2020-07-07
@xgqfrms
xgqfrms / main.dart
Created July 8, 2020 07:12
dart:math & Random function
import 'dart:math';
void main() {
int max = 6;
dynamic dice;
// int nextInt(int max);
dice = Random().nextInt(max);
// 0 ~ 5,
dice += 1;
// 1 ~ 6,