ICE Out; Abolish ICE
This is a basic implementation of the Konami Frogger game, but it's missing a few things intentionally and they're left as further exploration for the reader.
| // | |
| // "Pacifica" | |
| // Gentle, blue-green ocean waves. | |
| // December 2019, Mark Kriegsman and Mary Corey March. | |
| // For Dan. | |
| // | |
| #define FASTLED_ALLOW_INTERRUPTS 0 | |
| #include <FastLED.h> | |
| FASTLED_USING_NAMESPACE |
| Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
| ActivityTweet | |
| generic_activity_highlights | |
| generic_activity_momentsbreaking | |
| RankedOrganicTweet | |
| suggest_activity | |
| suggest_activity_feed | |
| suggest_activity_highlights | |
| suggest_activity_tweet |
| drawImage = async img_path => { | |
| let canvas = document.createElement("canvas"); | |
| canvas.src = img_path; | |
| const context = canvas.getContext("2d"); | |
| const img = await loadImage(img_path); | |
| canvas.width = img.width; | |
| canvas.height = img.height; | |
| context.drawImage(img, 0, 0); |
| var startMove = 0; | |
| var bottomSheet = Ti.UI.createView({ | |
| height: 300, | |
| width: Ti.UI.FILL, | |
| backgroundColor: "red", | |
| bottom: -300, | |
| zIndex: 50 | |
| }); | |
| var overlay = Ti.UI.createView({ |
| <?php | |
| // Needs to be used with a .htaccess file pointing all requests to it | |
| $uri = $_SERVER['REQUEST_URI']; | |
| $queryString = http_build_query($_GET); | |
| $payload = file_get_contents('php://input'); | |
| $url = 'https://foo.bar' . $uri; |
| // Please refer to Android's MediaRecorder documentation: | |
| // https://developer.android.com/reference/android/media/MediaRecorder | |
| var MediaRecorder = require('android.media.MediaRecorder'); | |
| var recorder = new MediaRecorder(); | |
| function recordAudio() { | |
| var recordPermission = "android.permission.RECORD_AUDIO"; | |
| var hasRecordPermission = Ti.Android.hasPermission(recordPermission); |
| 'use strict'; | |
| var ButtonTitle = { | |
| START: 'Start Microphone Monitoring', | |
| STOP: 'Stop Microphone Monitoring' | |
| }; | |
| Object.freeze(ButtonTitle); | |
| var started = false; |
| /* | |
| Copyright (c) 2014-2020 Electronic Cats SAPI de CV. All right reserved. | |
| This library is free software; you can redistribute it and/or | |
| modify it under the terms of the GNU Lesser General Public | |
| License as published by the Free Software Foundation; either | |
| version 2.1 of the License, or (at your option) any later version. | |
| This library is distributed in the hope that it will be useful, | |
| but WITHOUT ANY WARRANTY; without even the implied warranty of |