Skip to content

Instantly share code, notes, and snippets.

View ilovejs's full-sized avatar
🐡
mememe, hv a good fish !

Michael Zhuang ilovejs

🐡
mememe, hv a good fish !
  • Sydney
  • 02:39 (UTC +10:00)
View GitHub Profile
### Keybase proof
I hereby claim:
* I am ilovejs on github.
* I am ilovejs (https://keybase.io/ilovejs) on keybase.
* I have a public key ASBnUVa_C7CXpUUxq24MQ7b20YTLuTZh376rE5GfJk20zgo
To claim this, I am signing this object:
@ilovejs
ilovejs / gitpod-font-fix.json
Created October 22, 2021 00:27
gitpod font issue, gitpod, font, family
{
"editor.fontSize": 14,
"editor.fontFamily": "Courier",
"redhat.telemetry.enabled": false,
"terminal.integrated.fontFamily": "Courier",
"terminal.integrated.lineHeight": 1.2,
"terminal.integrated.letterSpacing": 0,
"terminal.integrated.gpuAcceleration": "canvas",
"workbench.preferredDarkColorTheme": "Visual Studio Dark",
"window.autoDetectColorScheme": true,
import 'dart:convert';
import 'dart:math';
import 'dart:ui';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
void main() => runApp(ApiCall());
class ApiCall extends StatelessWidget {

Keybase proof

I hereby claim:

  • I am ilovejs on github.
  • I am iot11 (https://keybase.io/iot11) on keybase.
  • I have a public key ASCoz4CUKHHHa4Y-H_aote3AlQkTYZO4OopKdszBkxiQKAo

To claim this, I am signing this object:

@ilovejs
ilovejs / GLSL-Noise.md
Created September 4, 2020 11:52 — forked from liutianpeng/GLSL-Noise.md
GLSL Noise Algorithms

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
	return mix(rand(fl), rand(fl + 1.0), fc);
}
@ilovejs
ilovejs / balance_test.go
Created September 4, 2020 11:51 — forked from liutianpeng/balance_test.go
消息队列高手课 Mutex,CAS&FAA作业程序
package balance
import (
"runtime"
"sync"
"sync/atomic"
"testing"
)
const MaxCount = 10000
@ilovejs
ilovejs / write_once.py
Created April 14, 2020 12:14 — forked from timothycrosley/write_once.py
Write once run every where
"""An example of writing an API to scrape hacker news once, and then enabling usage everywhere"""
import hug
import requests
@hug.local()
@hug.cli()
@hug.get()
def top_post(section: hug.types.one_of(('news', 'newest', 'show'))='news'):
"""Returns the top post from the provided section"""
CREATE USER 'newuser'@'%' IDENTIFIED BY 'user_password';
DROP user 'qor'@'localhost';
CREATE USER 'qor'@'%' IDENTIFIED BY 'qor';
CREATE DATABASE qor_test;
GRANT ALL ON qor_test.* TO 'qor'@'localhost';
GRANT ALL ON qor_test.* TO 'qor'@'%';