Skip to content

Instantly share code, notes, and snippets.

View srgtuszy's full-sized avatar

Michał Tuszyński srgtuszy

View GitHub Profile
@srgtuszy
srgtuszy / answer.json
Last active September 17, 2017 15:44
Rescue.com Answer Phone
[
{
"action" : "talk",
"text": "Emergency announcement #2, Peter is presenting on stage, hope it's not a disaster!"
}
]
@srgtuszy
srgtuszy / peripheraj.js
Created October 26, 2017 14:26
BLE Peripheral
var bleno = require('bleno');
bleno.on('stateChange', function(state) {
console.log('State change: ' + state);
if (state === 'poweredOn') {
console.log('advertising')
bleno.startAdvertising('MyPeripheral',['12ab']);
} else {
bleno.stopAdvertising();
}
@srgtuszy
srgtuszy / Dockerfile
Created June 17, 2024 10:22
Flutter for web Dockerfile. Use it if you want to deploy your flutter web app is a container
# Stage 1: Build
FROM debian:latest AS build-env
# Install flutter dependencies
RUN apt-get update
RUN apt-get install -y curl git wget unzip libgconf-2-4 gdb libstdc++6 libglu1-mesa fonts-droid-fallback python3 sed
RUN apt-get clean
# Clone the flutter repo
RUN git clone https://github.com/flutter/flutter.git /usr/local/flutter