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 AWS = require('aws-sdk'); | |
| AWS.config.update({ | |
| accessKeyId: '{AWS_KEY}', | |
| secretAccessKey: '{AWS_SECRET}', | |
| region: '{SNS_REGION}' | |
| }); | |
| var sns = new AWS.SNS(); |
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
| /** | |
| * This software is in the public domain. Where that dedication is not recognized, | |
| * you are granted a perpetual, irrevokable license to copy and modify this file | |
| * as you see fit. | |
| * | |
| * Requires SDL 2.0.4. | |
| * Devices that do not support Metal are not handled currently. | |
| **/ | |
| #import <UIKit/UIKit.h> |
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><head><script src="app.js"></script></head><body></body></html> |
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
| class MainTest { | |
| static public function main() { | |
| trace("Hello world!"); | |
| trace('Fibonacci of 7 is: ${fibonacci(7)}'); | |
| } | |
| static function fibonacci(n) { | |
| if (n == 0) return 0; | |
| else if (n == 1) return 1; |
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
| class Main { | |
| static function main() { | |
| Sdl.init(Sdl.INIT_EVERYTHING); | |
| var win = Sdl.createWindow("Hello", 100, 100, 800, 600, Sdl.WINDOW_OPENGL); | |
| var ren = Sdl.createRenderer(win, -1, Sdl.RENDERER_ACCELERATED); | |
| var bmp = Sdl.loadBMP("test.bmp"); | |
| var tex = Sdl.createTextureFromSurface(ren, bmp); | |
| Sdl.freeSurface(bmp); | |
| for (i in 0...3) { |
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
| public static function borderAutoTile(xt:Int, yt:Int, context:ITileable, cur:RLTile, values:BorderValues):Int | |
| { | |
| var val:Int = 1; | |
| var u:RLTile = context.read(xt, yt - 1); | |
| var r:RLTile = context.read(xt + 1, yt); | |
| var d:RLTile = context.read(xt, yt + 1); | |
| var l:RLTile = context.read(xt - 1, yt); | |
| //check whether the surrounding tiles are walls. |
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
| /* | |
| * Copyright 2016 Kevin Mark | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
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
| package render; | |
| import kha.Key; | |
| import kha.input.Keyboard; | |
| import kha.Font; | |
| import kha.Color; | |
| import kha.input.Mouse; | |
| import kha.graphics2.Graphics; | |
| class TextField |
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
| package; | |
| #if cpp | |
| import cpp.vm.Thread; | |
| import cpp.vm.Deque; | |
| #elseif neko | |
| import neko.vm.Thread; | |
| import neko.vm.Deque; | |
| #end | |
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
| - name: DO | |
| hosts: localhost | |
| vars: | |
| project_name: "PUT A NAME FOR YOUR PROJECT HERE" | |
| do_token: "PUT YOUR DIGITAL OCEAN API KEY HERE ==> https://cloud.digitalocean.com/settings/api/tokens" | |
| repository: "PUT YOUR REPOSITORY URL HERE" | |
| tasks: | |
| - name: LOCAL | Generate SSH key | |
| shell: ssh-keygen -b 2048 -t rsa -f ~/.ssh/{{project_name}} -q -N "" |