- Mac OS X 背后的故事(一)力挽狂澜的Ellen Hancock
- Mac OS X 背后的故事(二)Linus Torvalds的短视
- Mac OS X 背后的故事(三)Mach之父Avie Tevanian
- Mac OS X 背后的故事(四)政客的跨界
- Mac OS X 背後的故事(五)Jean-Marie Hullot 的天才天才發明 Interface Builder
- Mac OS X 背后的故事(六)上善若水 Cordell Ratzlaff 引发的 Aqua 革命(上)
- Mac OS X 背後的故事(七)上善若水 Cordell Ratzlaff 引發的 Aqua 革命(下)
- Mac OS X 背後的故事(八)三好學生 Chris Lattner 的 LLVM 編譯工具鏈
- Mac OS X 背後的故事(九)半導體的豐收(上)
- [Mac OS X 背後的故事(十)半導體的豐收(中)](https
This file contains hidden or 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 { LiquidityPoolKeysV4, MARKET_STATE_LAYOUT_V3, Market, TOKEN_PROGRAM_ID } from "@raydium-io/raydium-sdk"; | |
| import { Connection, Logs, ParsedInnerInstruction, ParsedInstruction, ParsedTransactionWithMeta, PartiallyDecodedInstruction, PublicKey } from "@solana/web3.js"; | |
| const RPC_ENDPOINT = 'https://api.mainnet-beta.solana.com'; | |
| const RAYDIUM_POOL_V4_PROGRAM_ID = '675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8'; | |
| const SERUM_OPENBOOK_PROGRAM_ID = 'srmqPvymJeFKQ4zGQed1GFppgkRHL9kaELCbyksJtPX'; | |
| const SOL_MINT = 'So11111111111111111111111111111111111111112'; | |
| const SOL_DECIMALS = 9; | |
| const connection = new Connection(RPC_ENDPOINT); |
This file contains hidden or 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 <objc/runtime.h> | |
| @interface DebuggingOverlay: NSObject | |
| @end | |
| @implementation DebuggingOverlay | |
| + (void)toggleOverlay { | |
| id debugInfoClass = NSClassFromString(@"UIDebuggingInformationOverlay"); |
This file contains hidden or 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
| Debugger commands: | |
| apropos -- List debugger commands related to a word or subject. | |
| breakpoint -- Commands for operating on breakpoints (see 'help b' for | |
| shorthand.) | |
| bugreport -- Commands for creating domain-specific bug reports. | |
| command -- Commands for managing custom LLDB commands. | |
| disassemble -- Disassemble specified instructions in the current | |
| target. Defaults to the current function for the | |
| current thread and stack frame. |
This file contains hidden or 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 Darwin.sys.mount; | |
| int main(int argc, const char * agrv[]) { | |
| struct statfs buf; | |
| long long freespace = 0; | |
| if(statfs("/", &buf) >= 0){ | |
| freespace = (long long)buf.f_bsize * buf.f_blocks; | |
| } | |
| if(statfs("/private/var", &buf) >= 0){ | |
| freespace += (long long)buf.f_bsize * buf.f_blocks; |
This file contains hidden or 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
| # Builds a Libpng framework for the iPhone and the iPhone Simulator. | |
| # Creates a set of universal libraries that can be used on an iPhone and in the | |
| # iPhone simulator. Then creates a pseudo-framework to make using libpng in Xcode | |
| # less painful. | |
| # | |
| # To configure the script, define: | |
| # IPHONE_SDKVERSION: iPhone SDK version (e.g. 8.1) | |
| # | |
| # Then go get the source tar.bz of the libpng you want to build, shove it in the | |
| # same directory as this script, and run "./libpng.sh". Grab a cuppa. And voila. |
This file contains hidden or 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
| /* | |
| * Copyright (c) 1999-2007 Apple Inc. All Rights Reserved. | |
| * | |
| * @APPLE_LICENSE_HEADER_START@ | |
| * | |
| * This file contains Original Code and/or Modifications of Original Code | |
| * as defined in and that are subject to the Apple Public Source License | |
| * Version 2.0 (the 'License'). You may not use this file except in | |
| * compliance with the License. Please obtain a copy of the License at | |
| * http://www.opensource.apple.com/apsl/ and read it before using this |
This file contains hidden or 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
| ACTION | |
| AD_HOC_CODE_SIGNING_ALLOWED | |
| ALTERNATE_GROUP | |
| ALTERNATE_MODE | |
| ALTERNATE_OWNER | |
| ALWAYS_SEARCH_USER_PATHS | |
| ALWAYS_USE_SEPARATE_HEADERMAPS | |
| APPLE_INTERNAL_DEVELOPER_DIR | |
| APPLE_INTERNAL_DIR | |
| APPLE_INTERNAL_DOCUMENTATION_DIR |