Skip to content

Instantly share code, notes, and snippets.

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

xgqfrms xgqfrms

💭
🎉 👻 💻 🕵️‍♂️
View GitHub Profile
@xgqfrms
xgqfrms / Fetch All in One.md
Created May 9, 2020 15:56
Fetch All in One
@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"}
@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>

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,