Skip to content

Instantly share code, notes, and snippets.

View liushuaikobe's full-sized avatar

Shuai Liu liushuaikobe

  • Alibaba
  • Hangzhou, China
  • 13:00 (UTC +08:00)
View GitHub Profile
#define KOBE_DEBUG NSLog(@"TableView in %@ || frame:%@ , bounds:%@, contentSize:%@ , contentOffSet:%@, contentInset:%@", NSStringFromSelector(_cmd), NSStringFromCGRect(self.tableView.frame), NSStringFromCGRect(self.tableView.bounds), NSStringFromCGSize(self.tableView.contentSize), NSStringFromCGPoint(self.tableView.contentOffset), NSStringFromUIEdgeInsets(self.tableView.contentInset));
#!/bin/bash
PWD=<YOUR-PASSWORD>
SERVICE=Wi-Fi
surgeIP="127.0.0.1"
surgePORT="6152"
surgePASS_DOMAIN=(127.0.0.1 192.168.0.0/16 10.0.0.0/8 172.16.0.0/12 localhost *.local)
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@liushuaikobe
liushuaikobe / emoji.py
Created August 20, 2018 11:53
Add text.
import sys
import uuid
import textwrap
from PIL import Image
from PIL import ImageFont
from PIL import ImageDraw
def generate(img, text):