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
// use https://makecode.microbit.org/# to generate the executable code | |
input.onButtonPressed(Button.B, function () { | |
const levels = [ | |
'F#5:2', | |
'E5:2', | |
'E5:2', | |
'R:2', | |
'E5:2', | |
'E5:2', | |
'E5:2', |
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
const AWS = require('aws-sdk'); | |
const sqsOptions = { | |
endpoint: process.env.SQS_ENDPOINT || 'https://sqs.eu-west-1.amazonaws.com', | |
region: process.env.AWS_REGION || 'eu-west-1', | |
} | |
const sqs = new AWS.SQS(sqsOptions); | |
const queueName = process.env.SQS_QUEUE_NAME || "SQS_QUEUE_NAME"; |
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
mkdir source | |
cd source | |
echo 'deb-src http://archive.raspbian.org/raspbian/ stretch main contrib non-free rpi' | sudo tee -a /etc/apt/sources.list | |
sudo apt-get update | |
apt-get source libzbar0 | |
cd zbar-0.10+doc | |
wget https://sourceforge.net/p/zbar/patches/42/attachment/disable_32bit_color_depth.patch |
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
# echo 0 > /proc/sys/net/core/bpf_jit_enable | |
# docker run --rm -it -v $PWD:/bla -w /bla node:8 ./linux -m 1000000 | |
Ran 1000000 loops in 19.346576528s | |
# docker run --privileged --rm -it -v $PWD:/bla -w /bla node:8 ./linux -m 1000000 | |
Ran 1000000 loops in 3.599587578s | |
# echo 1 > /proc/sys/net/core/bpf_jit_enable |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.