Skip to content

Instantly share code, notes, and snippets.

View ilovejs's full-sized avatar
🐡

Michael Zhuang (Hao) ilovejs

🐡
  • 04:34 (UTC +11:00)
View GitHub Profile
// ==UserScript==
// @name Google AdSense Ads Remover
// @namespace https://openuserjs.org/users/ner0
// @description Removes Google ads from its search results
// @icon https://www.google.com/adsense/start/images/favicon.ico
// @author ner0
// @copyright 2020, ner0 (https://openuserjs.org/users/ner0)
// @license MIT
// @version 0.1
// @supportURL https://openuserjs.org/scripts/ner0/Google_AdSense_Ads_Remover/issues
@ilovejs
ilovejs / go.env.sh
Last active January 21, 2022 06:22
# workspace
export GOPATH=$HOME/go # mkdir that one
export GOROOT=/usr/local/go # native src
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
export GO111MODULE=on
# use the network to update the named packages and dependencies
### 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