Skip to content

Instantly share code, notes, and snippets.

View yeatse's full-sized avatar
💭
I may be slow to respond.

Yang Chao yeatse

💭
I may be slow to respond.
View GitHub Profile
@yeatse
yeatse / tkdnd-apple-silicon-compile.sh
Last active July 31, 2022 17:10
Compile tkdnd for Apple Silicon
git clone https://github.com/petasis/tkdnd.git && cd tkdnd
export CC=clang
tclsh tcl-conf
sed -i -e "s/CFLAGS_DEFAULT.*\=.*/CFLAGS_DEFAULT = -Os -DNDEBUG -arch arm64e/" Makefile
make
@yeatse
yeatse / main.dart
Last active May 24, 2022 17:15
A demo project showing a large list of images
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
@yeatse
yeatse / Meituan.list
Last active November 22, 2022 06:56
Meituan List
DOMAIN-KEYWORD,sankuai
DOMAIN-KEYWORD,meituan
DOMAIN-KEYWORD,dianping
DOMAIN-KEYWORD,mobike
DOMAIN-SUFFIX,51ping.com
DOMAIN-SUFFIX,dp
DOMAIN-SUFFIX,mt
DOMAIN-SUFFIX,dper.com
DOMAIN-SUFFIX,dpfile.com
@yeatse
yeatse / main.swift
Last active February 17, 2019 14:18
Best practice to parse command line arguments using getopt_long in Swift
enum OptionCode: Int32 {
case h = 0x68
case u = 0x75
case p = 0x70
case firstLongOption = 0x100
case host
}
extension StaticString {
var ccharPointer: UnsafePointer<CChar> {
@yeatse
yeatse / AppDelegate.m
Created March 27, 2018 11:43
Work on RCTFont SIGABRT crash
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#import "AppDelegate.h"