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 | |
| */ |
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
| 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
| 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
| 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 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
| from rgbkeypad import RGBKeypad | |
| import time | |
| keypad = RGBKeypad() | |
| keypad.color = (0, 0, 0) | |
| WHITE = (255, 255, 255) | |
| RED = (255, 0, 0) | |
| GREEN = (0, 255, 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
| arandr==0.1.10 | |
| astroid==2.5.1 | |
| asttokens==2.0.4 | |
| automationhat==0.2.0 | |
| beautifulsoup4==4.9.3 | |
| blinker==1.4 | |
| blinkt==0.1.2 | |
| buttonshim==0.0.2 | |
| Cap1xxx==0.1.3 | |
| certifi==2020.6.20 |
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
| REGION=eu-west-2 | |
| RUNTIME=python3.8 | |
| LAYER_NAME=scrapy | |
| docker run -v $(pwd):/out -it lambci/lambda:build-$RUNTIME \ | |
| pip install -r /out/requirements.txt -t /out/build/$LAYER_NAME/python | |
| cd build/$LAYER_NAME | |
| zip -r ../../$LAYER_NAME.zip python/ | |
| cd ../.. |
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 ftrack_api | |
| session = ftrack_api.Session() | |
| result = session.query('select id from Task ' | |
| 'where name is "Animation" ' | |
| 'and project.full_name is "{0}" ' | |
| 'and parent.parent.name is "{1}" ' | |
| 'and parent.name is "{2}"'.format("Karol Example", "EP_05_TEST", 44)) |
OlderNewer