See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| var thePixelBuffer : CVPixelBuffer? | |
| let testImage : UIImage = UIImage.init(named: "twdEnds.png")! | |
| self.thePixelBuffer = self.pixelBufferFromImage(image: testImage) | |
| func pixelBufferFromImage(image: UIImage) -> CVPixelBuffer { | |
| // updated for Swift 3 | |
| import Carbon | |
| // Swift version of https://developer.apple.com/library/mac/technotes/tn2084/_index.html | |
| @IBAction func testButtonPushed(sender: AnyObject) { | |
| guard let url = NSBundle.main.url(forResource: "SendFinderMessage", withExtension: "scpt") else { | |
| return | |
| } |
Put this on your wp-config.php
/* That's all, stop editing! Happy blogging. */
define('FS_METHOD', 'direct');
| sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/13.2/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport | |
| sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/WatchOS.platform/DeviceSupport/6.1/ /Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/DeviceSupport | |
| sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/DeviceSupport/13.2/ /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/DeviceSupport |
| # If you use bash, this technique isn't really zsh specific. Adapt as needed. | |
| source ~/keychain-environment-variables.sh | |
| # AWS configuration example, after doing: | |
| # $ set-keychain-environment-variable AWS_ACCESS_KEY_ID | |
| # provide: "AKIAYOURACCESSKEY" | |
| # $ set-keychain-environment-variable AWS_SECRET_ACCESS_KEY | |
| # provide: "j1/yoursupersecret/password" | |
| export AWS_ACCESS_KEY_ID=$(keychain-environment-variable AWS_ACCESS_KEY_ID); | |
| export AWS_SECRET_ACCESS_KEY=$(keychain-environment-variable AWS_SECRET_ACCESS_KEY); |
| ###################### | |
| # Create log file | |
| ###################### | |
| exec > ~/Desktop/tmp/UniversalBuild_Log_$(date +"%Y%m%d%H%M%S").log 2>&1 | |
| ###################### |
| area_data = { | |
| '臺北市': [ | |
| '中正區', '大同區', '中山區', '萬華區', '信義區', '松山區', '大安區', '南港區', '北投區', '內湖區', '士林區', '文山區' | |
| ], | |
| '新北市': [ | |
| '板橋區', '新莊區', '泰山區', '林口區', '淡水區', '金山區', '八里區', '萬里區', '石門區', '三芝區', '瑞芳區', '汐止區', '平溪區', '貢寮區', '雙溪區', '深坑區', '石碇區', '新店區', '坪林區', '烏來區', '中和區', '永和區', '土城區', '三峽區', '樹林區', '鶯歌區', '三重區', '蘆洲區', '五股區' | |
| ], | |
| '基隆市': [ | |
| '仁愛區', '中正區', '信義區', '中山區', '安樂區', '暖暖區', '七堵區' | |
| ], |
Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');| # EdgeOS v1.9 Google Fiber Config Script | |
| # by Steve Jenkins (http://www.stevejenkins.com/) | |
| # Last updated: Aug 14, 2016 | |
| # Based on settings & scripts by Atlantisman, TK, and CompTech | |
| # RUN THIS SCRIPT AS ROOT ON YOUR EDGEROUTER | |
| # Script runs best if you copy and paste in sections | |
| #______________________Basic Firewall Setup_______________________________ | |
| configure |