Skip to content

Instantly share code, notes, and snippets.

View secondwtq's full-sized avatar

Second Datke secondwtq

  • Sichuan University
  • China
View GitHub Profile
@secondwtq
secondwtq / tg-mobile-desktop.css
Created May 2, 2016 14:50
Custom stylesheet for Mobile version of Telegram Web for space-efficiency on desktop.
/*
<link rel="stylesheet" href="https://too-young.me/static/public/tg-mobile.css">
*/
body {
font-family: "Lucida Grande","Hiragino Sans GB","Hiragino Sans GB W3";
}
.im_history_messages_group a.im_message_author,
.im_message_reply_author,
.im_short_message_text,
From 6c3df80118881edbb05a51ef9fb06bc13e75cdc4 Mon Sep 17 00:00:00 2001
From: secondwtq <lovejay-lovemusic@outlook.com>
Date: Mon, 20 Jun 2016 01:11:11 +0800
Subject: [PATCH] Add support for TCP Keep Alive.
---
shadowsocks/shell.py | 12 ++++++++++--
shadowsocks/tcprelay.py | 4 ++++
2 files changed, 14 insertions(+), 2 deletions(-)
www.hackyapp.com Hacky for Mac
stackoverflow.com/questions/15981257/can-tornado-handle-pagination rest - Can tornado handle pagination? - Stack Overflow
www.tornadoweb.org/en/stable/template.html Sphinx - Read the Docs.
adamschwartz.co/magic-of-css/chapters/3-tables Tables — Chapter 3 — Magic of CSS — Adam Schwartz
www.nytimes.com/2012/10/14/opinion/sunday/the-self-destruction-of-the-1-percent.html?_r=3 The Self-Destruction of the 1 Percent - The New York Times
www.brunophilipe.com/software/tiptyper TipTyper for Mac
orefalo.github.io/g2 G2 Cheatsheet
www.viko.net/en Online marketing - Ecommerce marketing | We are VIKO
www.google.com/recaptcha/intro/index.html reCAPTCHA: Easy on Humans, Hard on Bots
ctheu.com/2015/02/12/how-to-communicate-between-react-components How to communicate between React components | ctheu.com

Overview

The StarCraft II API is an interface that provides full external control of StarCraft II.

This API exposes functionality for developing software for:

  • Scripted bots.
  • Machine-learning based bots.
  • Replay analysis.
@secondwtq
secondwtq / proto_font.padd
Last active April 8, 2018 12:30
Prototyping PADD, the query interface for LCARS.
using _ = personal#olive;
using _f = _#typography;
using _et = _#entityType;
ensure _et#typeface;
lhs isSimilarTo rhs = {
bidirectionalEdge <-similarTo> lhs rhs;
}
using _ = Music#Classical
# problem: Type vs. Entry
type HumanStatus =
| Active
| Deceased
# optional property should be allowed in entry & type
entry #Human {
{-# START_FILE ./.gitignore #-}
.DS_Store
.idea
*.log
tmp/
*.py[cod]
*.egg
build
htmlcov
music_directory "~/Documents/music"
playlist_directory "~/Documents/music/playlists"
database {
plugin "simple"
path "/var/lib/mpd/db"
}
input {
open Printf
module IntSet = Set.Make(struct type t = int let compare = compare end)
let compute (base: int) (units: int list): IntSet.t =
printf "base: %d, (" base; List.iter (printf "%d, ") units; printf ")\n";
let rec f (digits: IntSet.t) (new_digits: IntSet.t) =
if IntSet.cardinal new_digits = 0