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
| for i in `curl https://developer.apple.com/videos/wwdc/2014/ | grep -oE 'ht.*?_hd.*?mov'`; do; curl -O $i; done |
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
| #!/bin/bash | |
| # This script will open a file compare dialog for files you select in Versions.app. This script requires | |
| # Beyond Compare to be installed into CrossOver for Mac. Note that the BC window doesn't always open | |
| # in the foreground nor does it appear in the Dock, so you will need to CMD-TAB to find it. If you have problems | |
| # using this from Versions try executing the commands below in a normal Terminal window running bash and replace | |
| # the $1 and $2 variables with complete paths to two existing files. | |
| # Setup some variables that CrossOver will need. You should replace these with your own values which can | |
| # be found by opening CrossOver, going to Programs -> Run Command, selecting the bottle you installed |
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
| # | |
| # iOS 友盟发布渠道自动化脚本 | |
| # | |
| # - 在 Archive 的 "Post-action" 添加脚本去执行 "/bin/sh $SRCROOT/package.sh" | |
| # - 确保在 "Provide build setting from" 选择了当前的 App | |
| # - 在项目根目录($SRCROOT)添加 "iTunesArtwork" 文件(符合 App Store 提交要求的 512x512 px, PNG 格式) | |
| # - 在下面 "" 设置你需要的发布渠道(空格分隔) | |
| # - 在下面设置打包后的 ipa 的输出路径(可选) | |
| # - 执行 "Product > Archive" | |
| # |
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
| --- src/arch/ArchHooks/ArchHooks.h.orig | |
| +++ src/arch/ArchHooks/ArchHooks.h | |
| @@ -1,6 +1,8 @@ | |
| #ifndef ARCH_HOOKS_H | |
| #define ARCH_HOOKS_H | |
| +#include <ctime> | |
| + | |
| struct lua_State; | |
| class ArchHooks |
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
| #if TARGET_IPHONE_SIMULATOR | |
| #pragma clang diagnostic push | |
| #pragma clang diagnostic ignored "-Wimplicit" | |
| // Log all notifications via tail -f /tmp/msgSends-* | |
| instrumentObjcMessageSends(YES); | |
| #pragma clang diagnostic pop | |
| #endif |
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
| #!/bin/bash | |
| echo Building Google Protobuf for Mac OS X / iOS. | |
| echo Use 'tail -f build.log' to monitor progress. | |
| ( | |
| VERSION=2.6.1 | |
| DARWIN_RELEASE=`uname -r` | |
| CORES=`sysctl hw.ncpu | awk '{print $2}'` | |
| #PREFIX=`pwd`/protobuf |
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
| /* | |
| * Check http://stackoverflow.com/questions/2777438/how-to-tell-if-uiviewcontrollers-view-is-visible | |
| * to see the discussions. | |
| * If the container is a UINavigationController, | |
| * we can use the visibleViewController property | |
| * to check the visibility. | |
| */ | |
| navigationController visibleViewController == self | |
| /* Or, we can add a category to UIViewController |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <Bucket | |
| type = "2" | |
| version = "2.0"> | |
| <Breakpoints> | |
| <BreakpointProxy | |
| BreakpointExtensionID = "Xcode.Breakpoint.SymbolicBreakpoint"> | |
| <BreakpointContent | |
| shouldBeEnabled = "Yes" | |
| ignoreCount = "0" |
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
| 通过读取系统网络接口信息,获取当前iphone设备的流量相关信息,统计的是上次开机至今的流量信息. 2 | |
| 倒入库: | |
| [html] view plaincopy | |
| SystemConfiguration.framework | |
| 加入头文件: | |
| [html] view plaincopy | |
| #include <ifaddrs.h> | |
| #include <sys/socket.h> | |
| #include <net/if.h> |
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
| {-# LANGUAGE OverloadedStrings #-} | |
| module DGPHParser(parseDgph) where | |
| import qualified Data.Attoparsec.ByteString as A | |
| import qualified Data.ByteString as B | |
| import Data.Bits | |
| import Data.Foldable (foldl') | |
| import qualified Data.ByteString as B | |
| import qualified Data.Attoparsec.ByteString as A |
OlderNewer