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
| import time | |
| import picokeypad as keypad | |
| keypad.init() | |
| keypad.set_brightness(1.0) | |
| lit = 0 | |
| last_button_states = 0 | |
| colour_index = 0 |
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
| sed -e "s/DOCKER_HOST_IP/$(docker-machine ip your-machine-name)/g" docker-compose.yml | docker-compose --file - up |
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
| import subprocess | |
| for i in range(1, 1000001): | |
| subprocess.call(["say", "%d" % i]) |
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
| import OpenImageIO as oiio | |
| buf = oiio.ImageBuf("Test_003_02_X1_0001.cr2") | |
| cropped = oiio.ImageBuf() | |
| extended = oiio.ImageBuf(oiio.ImageSpec (3693, 2077, 3, oiio.FLOAT)) | |
| resized = oiio.ImageBuf(oiio.ImageSpec (1920, 1080, 3, oiio.FLOAT)) | |
| oiio.ImageBufAlgo.crop(cropped, buf, oiio.ROI(108, 3801, 514, 2085), nthreads=4) | |
| oiio.ImageBufAlgo.paste(extended, 0, 253, 0, 0, cropped, nthreads=4) | |
| oiio.ImageBufAlgo.resize(resized, extended, nthreads=4) | |
| oiio.ImageBufAlgo.render_text(resized, 1300, 1030, "00001.cr2", 50, "Arial") |
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
| server.use('/ghost/debug/db/import/', express.multipart()); | |
| server.use('/ghost/debug/db/import/', express.multipart({uploadDir: __dirname + '/content/data'})); |
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
| <?php | |
| /** | |
| * Plugin Name. | |
| * | |
| * @package Ghost | |
| * @author Ghost Foundation | |
| * @license GPL-2.0+ | |
| * @link http://ghost.org | |
| * @copyright 2013 Ghost Foundation | |
| */ |
NewerOlder