Skip to content

Instantly share code, notes, and snippets.

View citrus-lemon's full-sized avatar
🐟
fish-touching

Lemon citrus-lemon

🐟
fish-touching
  • Indeed, Inc.
  • Tokyo
  • 07:07 (UTC +09:00)
View GitHub Profile
//:# Playground - TrueType Font Analysis
import Cocoa
import XCPlayground
var char: Character = "书"
var font = CTFontCreateWithName("Weibei SC", 100, nil)
func findGlyph(str: String, font: CTFont) -> CGGlyph {
from __future__ import division
import copy
import math
import pyPdf
import sys,os
# import pyPdf.generic.RectangleObject as rr
def split_pages(src, dst):
src_f = file(src, 'r+b')
var url = "";
var PUZZLE_DIFFICULTY_x = 4;
var PUZZLE_DIFFICULTY_y = 4;
var PUZZLE_HOVER_TINT = '#009900';
var _canvas;
var _stage;
var _img;
# IPsec in Cent OS7
https://github.com/travislee8964/L2TP-VPN-installation-script-for-CentOS-7
# Shadowsocks auto install