Note:
<example>is meant to denote text replaced by you (including brackets).
// global dependencies
npm install -g knex| 'use strict'; | |
| /* | |
| * Usage: | |
| * | |
| * const gracefulShutdown = require('./app/utils/gracefulShutdown'); | |
| * | |
| * const server = app.listen(port, callback) | |
| * | |
| * gracefulShutdown.init(server, logger); |
| import Foundation | |
| import XCTest | |
| /// Basic sanity check that ensures that we are able to retrieve localized strings for all languages | |
| /// we support. | |
| final class L10NTests: XCTestCase { | |
| func testLocalizations() { | |
| let locales = ["en", "es", "zh-Hans", "zh-Hant", "fi"] | |
| for locale in locales { |
| { | |
| "viewportSizes": [480, 720, 1200] | |
| } |
| const casper = require('casper').create(); | |
| const fs = require('fs'); | |
| var data; | |
| casper.on('remote.message', function(msg) { | |
| console.log('remote message is: ' + msg); | |
| }); | |
| casper.start('http://www.google.com/', function() { |
| //: Mocks Playground | |
| import UIKit | |
| struct User { | |
| } | |
| struct PushNotificationController { | |
| let registrar: PushNotificationRegistrar | |
| init(registrar: PushNotificationRegistrar) { |
| (async () => { | |
| const func = () => { | |
| return new Promise((resolve, reject) => { | |
| setTimeout(() => { | |
| resolve('some async result'); | |
| }, 5000); | |
| }); | |
| } |
#Installing ngrok on OSX
Run the following two commands in Terminal to create the symlink.
# cd into your local bin directory