http://koenig-media.raywenderlich.com/downloads/OpenCVTutorial_Starter.zip
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
| stages: | |
| - build | |
| build_code: | |
| stage: build | |
| script: | |
| - xcodebuild clean -project MesoBlog.xcodeproj -scheme MesoBlog | |
| - xcodebuild test -project MesoBlog.xcodeproj -scheme MesoBlog -destination 'platform=iOS Simulator,name=iPhone 8' | |
| # tags: | |
| # - ios |
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
| function compareBy(key) { | |
| return function(a, b) { | |
| return a[key] === b[key] | |
| } | |
| } |
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
| <Project> | |
| <!-- removed fields... --> | |
| <Target | |
| Name="DumpEnv" | |
| AfterTargets="AfterPublish" | |
| > | |
| <Exec Command="set OUTPUT_PATH=$(PublishUrl) && node dump-env.js AfterPublish"/> | |
| </Target> |
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
| var util = require('util'); | |
| var Transform = require('stream').Transform; | |
| util.inherits(RemoveBlockPlugin, Transform); | |
| function RemoveBlockPlugin(options){ | |
| Transform.call(this, options); | |
| } | |
| function removeBlock(string, blockName) { |
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
| function assertExists(value, message) { | |
| var isExists = value !== undefined && value !== null | |
| if (!isExists) { | |
| message = message || ('Expected value to exist') | |
| throw new Error(message) | |
| } | |
| } |
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
| var util = require('util'); | |
| var Transform = require('stream').Transform; | |
| util.inherits(RemoveBlockPlugin, Transform); | |
| function RemoveBlockPlugin(options){ | |
| Transform.call(this, options); | |
| } | |
| function removeBlock(string, blockType) { |
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
| // Create a new object using values from an existing | |
| // object accessed by given keys. | |
| // @params keys (Array) list of property names | |
| // @params obj (Object) object to take values from | |
| function select(keys, old) { | |
| return keys.reduce((obj, key) => { | |
| obj[key] = old[key] | |
| return obj | |
| }, {}) | |
| } |
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
| // Demo using a channel of workers to concurrently process an integer counter. | |
| // Requests to the web server root adds 5 pieces of data to process. | |
| package main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| "sync" | |
| ) |