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
| const RequestPromise = require('request-promise-native') | |
| const Hapi = require('hapi'); | |
| const Blocked = require('blocked-at') | |
| const server = new Hapi.Server(); | |
| server.connection({ port: 3001, host: 'localhost' }); | |
| const internals = { | |
| blocker: (request, reply) => { | |
| var time = 200; |
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
| image: node:6 | |
| build: | |
| type: build | |
| script: | |
| - npm i | |
| - npm i gulp -g | |
| - gulp | |
| only: | |
| - master |
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 gulp = require("gulp"); | |
| var browserify = require("browserify"); | |
| var source = require('vinyl-source-stream'); | |
| var tsify = require("tsify"); | |
| var browserSync = require('browser-sync').create(); | |
| var del = require('del'); | |
| var paths = { | |
| pages: ['src/**/*.html'], | |
| assets: ['assets/**/*.png'], |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>My Phaser Game</title> | |
| <link rel='shortcut icon' href='/favicon.ico' type='image/x-icon'/ > | |
| <script src="/vendor/phaser/phaser.min.js"></script> | |
| <script src="/game.js"></script> | |
| </head> |
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
| window.onload = function() { | |
| var game = new Phaser.Game(800, 600, Phaser.AUTO, 'gameCanvas', { preload: preload, create: create }); | |
| function preload () { | |
| game.load.image('logo', 'assets/phaser.png'); | |
| } | |
| function create () { | |
| var logo = game.add.sprite(game.world.centerX, game.world.centerY, 'logo'); |
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
Show hidden characters
| { | |
| "compilerOptions": { | |
| "module": "commonjs", | |
| "noImplicitAny": false, | |
| "removeComments": true, | |
| "preserveConstEnums": true, | |
| "sourceMap": true, | |
| "outDir": "built", | |
| "target": "ES5" | |
| }, |
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
| # Setup folders | |
| mkdir gitlab-game-demo | |
| cd gitlab-game-demo | |
| mkdir src | |
| mkdir assets | |
| # Just select defaults for git and npm | |
| git init | |
| npm init -y |
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 crawler = require('./crawler-sample.js')(); | |
| crawler.run(); |
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 run() { | |
| try { | |
| var Spooky = require('spooky'); | |
| } catch (e) { | |
| console.log(e.message); | |
| e = new Error('Failed to initialize SpookyJS'); | |
| e.details = e; | |
| throw e; | |
| } |
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
| def search_record_of_deeds_pin(self, rawPin, fileLock): | |
| driver = self.driver | |
| driver.delete_all_cookies() | |
| driver.get(self.base_url + "/i2/default.aspx?AspxAutoDetectCookieSupport=1") | |
| pin = rawPin.split("-") | |
| log("Collecting data for PIN {}".format(rawPin)) | |
| # Enter pin and search | |
| for i in range(5): | |
| elemName = "SearchFormEx1_PINTextBox" + str(i) |
NewerOlder