Skip to content

Instantly share code, notes, and snippets.

View oldj's full-sized avatar
👨‍🚀
:-o

oldj oldj

👨‍🚀
:-o
View GitHub Profile
@oldj
oldj / fontlist.m
Last active February 6, 2017 05:56
macOS 输出系统支持的所有字体
#import <Cocoa/Cocoa.h>
int main(int argc, const char * argv[]) {
@autoreleasepool {
NSLog(@"%@", [[[NSFontManager sharedFontManager] availableFontFamilies] description]);
}
return 0;
}
{"sig":"3e15fb07411f50009cfdf0ab530068b47a070dbfbc4a3c5462f69a0e9978c27c621316922aa6f2a5f928060612c8d41510da61b85e87549b098ec9aedd80432f0","msghash":"028aef50a39656cea5710bc21835bd08a8e180965609553130a305174fd33e30"}
@oldj
oldj / GA.py
Last active July 2, 2023 09:26
py-TSP
# -*- coding: utf-8 -*-
"""GA.py
遗传算法类
"""
import random
from Life import Life
@oldj
oldj / maze.p8
Created June 1, 2019 09:51
PICO-8
pico-8 cartridge // http://www.pico-8.com
version 18
__lua__
-- maze
_tt = 0
grids = {}
grid_size = 6
maze_width = 18
maze_height = 18