Skip to content

Instantly share code, notes, and snippets.

YO! Sushi specialises in delivering sushi to customers using the Japanese style 'kaiten' conveyor belt method. In each restaurant various sushi dishes and other Japanese cooked foods are prepared in a theater style kitchen in plain view of customers and then set on the thin conveyor belt. The belt carries food around the restaurant in a circuit, allowing diners to pick any dish from the belt. In order to indicate freshness, a label is applied to the lid of the dish to indicate when the dish must be consumed by.
The restaurants are mostly based in the United Kingdom with the majority in London.[9] Restaurants have also been opened in the Middle East in Dubai,[10][dead link] Saudi Arabia, Bahrain and Kuwait, with others in other countries such as Russia and Ireland. In the United States, YO! Sushi has opened five restaurants: There is a YO! Sushi located at the Westfield Garden State Plaza shopping mall in Paramus, New Jersey, which is close to New York City.
@nbogie
nbogie / microbit theremin
Last active September 28, 2017 23:58
us-100 ultrasonic theremin on microbit. Uses fizban99's code to get distance.
from microbit import uart, pin14, pin15, pin2, pin1, pin0, sleep, display
from sys import print_exception
import music
#This is a simplified version of the library here:
# https://github.com/fizban99/microbit_us100
#
# TODO: Perhaps see the above for exception handling.
class US100:
@nbogie
nbogie / TeensyAudioFirstSynth.ino
Created October 10, 2017 23:30
A quick first noisemaker patch with Teensy Audio library and a single pot.
#include <synth_simple_drum.h>
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
// GUItool: begin automatically generated code
AudioSynthWaveformSine sine1; //xy=69.01041030883789,238.01041412353516
AudioSynthKarplusStrong string1; //xy=114.01040649414062,78.01041412353516
@nbogie
nbogie / reactiongame.js
Last active October 30, 2017 00:35
micro:bit reaction game
let startTime = 0
let scoring = false
let playing = false
let winTime = 0
input.onPinPressed(TouchPin.P0, () => {
startRound()
})
function handleWin() {
winTime = input.runningTime() - startTime
basic.showNumber(winTime)
@nbogie
nbogie / ScorerForReactionGame.js
Last active October 30, 2017 00:40
Scorer for micro:bit reaction game. Uses servo to display score.
let angle = 0
radio.onDataPacketReceived( ({ receivedNumber }) => {
if (receivedNumber < 0) {
basic.showIcon(IconNames.Angry)
} else {
pins.servoWritePin(AnalogPin.P2, pins.map(
3000 - Math.min(receivedNumber, 3000),
0,
3000,
5,
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
void setup() {
Serial.begin(9600);
}
void loop() {
for (int i = 0; i < 10; i++) {
int val = analogRead(A0 + i);
int mapped = map(val, 0, 1023, 0, 9);
Serial.print(mapped);
Serial.print(" ");
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.