- 按
shift + g(跳转到文件末尾) - 在命令行窗口按
o(在光标下一行插入新行)
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
| #!/usr/bin/env python2 | |
| # lrdcq | |
| # usage python2 unwxapkg.py filename | |
| import sys, os | |
| import struct | |
| class WxapkgFile(object): | |
| nameLen = 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
| # 配置git代理 | |
| git config --global https.proxy http://127.0.0.1:1080 | |
| git config --global https.proxy https://127.0.0.1:1080 | |
| git config --global --unset http.proxy | |
| git config --global --unset https.proxy | |
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
| // | |
| // FMBlurable.swift | |
| // FMBlurable | |
| // | |
| // Created by SIMON_NON_ADMIN on 18/09/2015. | |
| // Copyright © 2015 Simon Gladman. All rights reserved. | |
| // | |
| // Thanks to romainmenke (https://twitter.com/romainmenke) for hint on a larger sample... | |
| import UIKit |
Alright, I managed to reproduce this issue by using rvm and installing fastlane with
gem install fastlane
and also
rvm @global do gem install fastlane
Afterwards running rvm @global do fastlane action gym would throw the same error you posted. I fixed it by uninstalling fastlane completely:
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
| # Debug 编译下,开启 //TODO: //FIXME: 警告 | |
| if [ "${CONFIGURATION}" = "Debug" ]; then | |
| TAGS="TODO:|FIXME:" | |
| echo "searching ${SRCROOT} for ${TAGS}" | |
| find "${SRCROOT}" \( -name "*.swift" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($TAGS).*\$" | perl -p -e "s/($TAGS)/ warning: \$1/" | |
| fi |
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
| # 将本地所有改动都清理掉,同步到git上HEAD版本 | |
| git checkout && git clean -df && git reset --hard |
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 <Foundation/Foundation.h> | |
| typedef NS_OPTIONS(NSUInteger, PageVMConfigOption) { | |
| PageVMConfigOptionRefresh = 0x01, | |
| PageVMConfigOptionReload = 0x02, | |
| PageVMConfigOptionDefault = PageVMConfigOptionRefresh | PageVMConfigOptionReload, | |
| PageVMConfigOptionAll = PageVMConfigOptionDefault | |
| }; | |
| /** |
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 Foundation | |
| protocol DateElement { | |
| var dateKey: Date {get set} | |
| } | |
| protocol DateSection : DateElement { | |
| associatedtype Element: DateElement, Equatable | |
| var elements: [Element] {get set} | |
| } |
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
| sips -Z 180 meika_person_1024.jpg --out meika_person_180.jpg |
NewerOlder