This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Shell for bootstrapping flake-enabled nix and home-manager | |
# You can enter it through 'nix develop' or (legacy) 'nix-shell' | |
{ | |
nixpkgs ? <nixpkgs>, | |
system ? builtins.currentSystem, | |
}: let | |
pkgs = import nixpkgs { | |
inherit system; | |
config.android_sdk.accept_license = true; | |
config.allowUnfree = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------- | |
1547 | |
===-------------------------------------------------------------------------=== | |
Pass execution timing report | |
===-------------------------------------------------------------------------=== | |
Total Execution Time: 23.9270 seconds (23.9281 wall clock) | |
---User Time--- --System Time-- --User+System-- ---Wall Time--- --- Name --- | |
7.4577 ( 31.5%) 0.0000 ( 0.0%) 7.4577 ( 31.2%) 7.4587 ( 31.2%) Control Flow Optimizer | |
6.0207 ( 25.4%) 0.0000 ( 0.0%) 6.0207 ( 25.2%) 6.0207 ( 25.2%) Eliminate PHI nodes for register allocation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
iptables -t mangle -N DIVERT | |
iptables -t mangle -A DIVERT -d 100.64.0.0/10 -j RETURN | |
iptables -t mangle -A DIVERT -d 127.0.0.0/8 -j RETURN | |
iptables -t mangle -A DIVERT -d 169.254.0.0/16 -j RETURN | |
iptables -t mangle -A DIVERT -d 192.0.0.0/24 -j RETURN | |
iptables -t mangle -A DIVERT -d 224.0.0.0/4 -j RETURN | |
iptables -t mangle -A DIVERT -d 240.0.0.0/4 -j RETURN | |
iptables -t mangle -A DIVERT -d 255.255.255.255/32 -j RETURN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// response_file | |
-demangle -lto_library /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libLTO.dylib -dynamic -arch arm64 -platform_version macos 11.3.0 11.3 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk -o /Users/yahaha/Desktop/lto-example/foo/build/foo/Build/Products/Release/foo -L/Users/yahaha/Desktop/lto-example/foo/build/foo/Build/Products/Release -filelist /Users/yahaha/Desktop/lto-example/foo/build/foo/Build/Intermediates.noindex/foo.build/Release/foo.build/Objects-normal/arm64/foo.LinkFileList -object_path_lto /Users/yahaha/Desktop/lto-example/foo/build/foo/Build/Intermediates.noindex/foo.build/Release/foo.build/Objects-normal/arm64/foo_lto.o -print_statistics -save-temps -lbar -no_adhoc_codesign -dependency_info /Users/yahaha/Desktop/lto-example/foo/build/foo/Build/Intermediates.noindex/foo.build/Release/foo.build/Objects-normal/arm64/foo_dependency_info.dat -lSystem /Applications/Xcode.app/Content |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
XCODE_DEVELOPER_PATH="/Applications/Xcode.app/Contents/Developer" | |
thin() | |
{ | |
file=$1 | |
archs=`file $file` | |
if [[ $archs == *"x86_64"* ]]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Rule { | |
let index1: Int | |
let index2: Int | |
let index3: Int | |
let result: (_ value1: Int, _ value2: Int, _ value3: Int) -> Int | |
} | |
let rules: [Rule] = { | |
var rules: [Rule] = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ViewController.swift | |
// Annotations | |
// | |
// Created by 宋宋 on 18/09/2016. | |
// Copyright © 2016 DianQK. All rights reserved. | |
// | |
import UIKit | |
import RxSwift |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum CalculatorError: ErrorType { | |
case RejectCharacter(Character) // 不接受的字符 | |
case ActionNilXXX // * / 乘除前面没有 可以值 | |
case ActionDuplicate // 符号写一起了,白痴 | |
case ParenthesesDuplicate // 多写了个 ) | |
} | |
enum CalculatorNode: CustomStringConvertible { | |
case number(String) | |
case action(Character) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import RxSwift | |
import RxCocoa | |
import NSObject_Rx | |
class ViewController: UIViewController { | |
@IBOutlet var stop: UIButton! | |
let timer = Observable<Int>.interval(1, scheduler: MainScheduler.instance) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typealias Filter = CIImage -> CIImage | |
struct RRLazyJunCore { | |
let filter: Filter | |
init(filter: Filter = { $0 }) { // 这个就比较尴尬了 | |
self.filter = filter | |
} | |
} |
NewerOlder