Skip to content

Instantly share code, notes, and snippets.

View SnowOnion's full-sized avatar

SnowOnion

View GitHub Profile
@mariotaku
mariotaku / README.md
Last active December 18, 2020 05:01
Followers Cleaner Script

Usage

  1. Execute pip3 install -r requirements.txt to install dependencies
  2. Execute followers_clear.py and follow instructions.

Notes

Consumer keys can be found here. Use these keys instead of applying yourself can get rid of rate limit.

@Avaq
Avaq / combinators.js
Last active May 1, 2024 09:38
Common combinators in JavaScript
const I = x => x
const K = x => y => x
const A = f => x => f (x)
const T = x => f => f (x)
const W = f => x => f (x) (x)
const C = f => y => x => f (x) (y)
const B = f => g => x => f (g (x))
const S = f => g => x => f (x) (g (x))
const S_ = f => g => x => f (g (x)) (x)
const S2 = f => g => h => x => f (g (x)) (h (x))
@JaHIY
JaHIY / yanwenzi.json
Created May 15, 2015 06:45
A岛颜文字
{
"hacfun":[
"|∀゚",
"(´゚Д゚`)",
"(;´Д`)",
"(`・ω・)",
"(=゚ω゚)=",
"| ω・´)",
"|-` )",
"|д` )",
@kukat
kukat / Philips 288P6 4K 开箱.md
Last active January 7, 2020 07:05
Philips 288P6 4K 开箱

为什么 4K?为什么 28 寸

  • 分辨率越大显示的东西越多
  • 高 PPI: 157
  • OS X 10.9.3 以后改进了对 4K 的支持,可以 “Retina” 化,这样就不会出现 Mac 外接显示器字体发虚的问题
  • 尝鲜,想体验下超高清
  • 放在公司办公用,TN 面板无所谓,我不嫌弃
  • 价钱不贵

为什么 Philips?

301 https://github.com/zxdrive/imouto.host
@dojiong
dojiong / hello.go
Created May 13, 2013 14:19
gae http proxy
//GAE app的主体
package hello
import (
"appengine"
"appengine/urlfetch"
"bytes"
"encoding/gob"
"io"
@zziuni
zziuni / stuns
Created September 18, 2012 08:05
STUN server list
# source : http://code.google.com/p/natvpn/source/browse/trunk/stun_server_list
# A list of available STUN server.
stun.l.google.com:19302
stun1.l.google.com:19302
stun2.l.google.com:19302
stun3.l.google.com:19302
stun4.l.google.com:19302
stun01.sipphone.com
stun.ekiga.net
@kindohm
kindohm / fft.js
Created May 1, 2012 20:50
audiolib.js fft
/*
This code demonstrates how to use a Fast Fourier Transform
with audiolib.js. It pushes samples to an FFT and draws
the FFT spectrum on an HTML5 canvas.
Author: Mike Hodnick
MIT License
*/
@dsosby
dsosby / config-highlight.cfg
Created August 3, 2011 15:24
A dark highlighting theme for Python's IDLE IDE based on Notepad++'s Obsidian color scheme
[Obsidian]
definition-foreground = #678CB1
error-foreground = #FF0000
string-background = #293134
keyword-foreground = #93C763
normal-foreground = #E0E2E4
comment-background = #293134
hit-foreground = #E0E2E4
builtin-background = #293134
stdout-foreground = #678CB1
@zandev
zandev / haskell-palindromes-benchmark.hs
Created February 17, 2011 10:21
Some benchmarks on solutions provided to exercise 5 chapter 3 of Real World Haskell
import Criterion
import Criterion.Main (defaultMain, bench)
-- Chris Forno 2008-09-03
isPalindromeLastInit :: (Eq a) => [a] -> Bool
isPalindromeLastInit [] = False
isPalindromeLastInit (x:[]) = True
isPalindromeLastInit (x:y:[]) = x == y
isPalindromeLastInit (x:xs) = x == last xs && isPalindromeLastInit (init xs)