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
| 10 PRINT"PRESS ANY KEY" | |
| 20 GET A$:IF A$="" THEN 20 | |
| 30 X=RND(-TI):PRINT"{CLR}" | |
| 40 B=INT(RND(1)*10)+1 | |
| 50 PRINT"GUESS 1-10 (Q=QUIT)" | |
| 60 INPUT A$:IF A$="Q" THEN END | |
| 70 A=VAL(A$):IF A=B THEN PRINT"CORRECT!":GOTO 40 | |
| 80 PRINT"TOO ";:IF A>B THEN PRINT"HIGH":GOTO 60 | |
| 90 PRINT"LOW":GOTO 60 |
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 do_work(y): | |
| # example task | |
| till() | |
| def drone_template(y): | |
| def worker_task(): | |
| # introduce yourself | |
| print("ready", y) | |
| # do stuff and move right forever | |
| while True: |
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
| local prevW, prevH = 1280, 720 | |
| function love.load(arg) | |
| love.filesystem.setIdentity('ShootingStars') | |
| local pixelcode = [[ | |
| /* | |
| "Shooting Stars" by @XorDev | |
| I got hit with inspiration for the concept of shooting stars. | |
| This is what I came up with. |
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
| /*jslint node: true */ | |
| 'use strict'; | |
| const constants = require('ocore/constants.js'); | |
| const conf = require('ocore/conf'); | |
| const db = require('ocore/db'); | |
| const eventBus = require('ocore/event_bus'); | |
| const validationUtils = require('ocore/validation_utils'); | |
| const headlessWallet = require('headless-obyte'); | |
| var sessionData = {}; |
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
| /*jslint node: true */ | |
| 'use strict'; | |
| const constants = require('ocore/constants.js'); | |
| const conf = require('ocore/conf'); | |
| const db = require('ocore/db'); | |
| const eventBus = require('ocore/event_bus'); | |
| const validationUtils = require('ocore/validation_utils'); | |
| const headlessWallet = require('headless-obyte'); | |
| Array.prototype.forEachAsync = async function(fn) { |
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
| #!/bin/bash | |
| sudo apt-get install apache2 php7.0-fpm -y | |
| sudo apt-get install php7.0-mbstring php7.0-xml php7.0-gd php7.0-curl php7.0-zip -y | |
| sudo apt-get install redis-server php-redis -y | |
| sudo a2enconf php7.0-fpm | |
| sudo a2enmod proxy | |
| sudo a2enmod proxy_fcgi | |
| sudo a2enmod rewrite | |
| #sudo a2dismod status |