Skip to content

Instantly share code, notes, and snippets.

View Fatman13's full-sized avatar
🌐
Building Web3

Y Fatman13

🌐
Building Web3
View GitHub Profile
@zhuzhuor
zhuzhuor / SimSimiSimSimi.py
Created October 8, 2013 00:14
When SimSimi talks to SimSimi 小黄鸡逗小黄鸡
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import time
import random
import requests
EN_URL = 'http://www.simsimi.com/func/req?lc=en&msg='
ZH_URL = 'http://www.simsimi.com/func/req?lc=ch&msg='
var randomNumbers = [42, 12, 88, 62, 63, 56, 1, 77, 88, 97, 97, 20, 45, 91, 62, 2, 15, 31, 59, 5]
func partition(v: Int[], left: Int, right: Int) -> Int {
var i = left
for j in (left + 1)..(right + 1) {
if v[j] < v[left] {
i += 1
(v[i], v[j]) = (v[j], v[i])
}
}
@staltz
staltz / introrx.md
Last active May 15, 2025 10:37
The introduction to Reactive Programming you've been missing