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
using UnityEngine; | |
using UnityEngine.SceneManagement; | |
using System.Collections; | |
public class SceneLoader { | |
static object sceneParam = null; | |
static Scene loadedScene; | |
public static T GetSceneParam<T>() where T : class { | |
return sceneParam as T; |
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
matthijs@grubby:~/oscar/suikerbot/OSCAR/engine$ ./start | |
PowerWorker <PowerWorker(Thread-1, started 139819982911232)>: starting... | |
dmx_usb.__init__: ERROR: Could not open /dev/dmx | |
DMX driver: connecting... | |
DMX driver: ENTTEC USB PRO, starting... | |
ERROR: 'pydmx' object has no attribute 'ser' | |
[OSCAR INFO 12:59:43 tid=139819949565696] server started on 127.0.0.1:12121 | |
[OSCAR INFO 13:00:02 tid=139819949565696] accepted 127.0.0.1:60659 | |
[OSCAR INFO 13:00:02 tid=139819957958400] welcome 127.0.0.1:60659 | |
TEXT |
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 { | |
listen 80; | |
listen [::]:80; | |
server_name www.by-brenda.nl by-brenda.nl; | |
# Enable PHP | |
include enable-php; | |
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
// This sleeps in powerdown mode for about the specified number of ms. | |
// If an interrupt occurs during sleep, it will be handled and sleep | |
// will continue (but up to 8 seconds of sleep might be "lost"). | |
// START-DOSLEEP | |
void doSleep(uint32_t time) { | |
#if defined(DhtSend_ino) | |
DebugSerial.flush(); | |
#endif | |
while (time > 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
$ cat foo | |
bla_c | |
bla/b | |
bla_a | |
$ cat foo|sort | |
bla_a | |
bla/b | |
bla_c |
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
# Prevent ModemManager from probing Arduino boards... | |
ACTION!="add|change", GOTO="mm_usb_device_blacklist_end" | |
SUBSYSTEM!="usb", GOTO="mm_usb_device_blacklist_end" | |
ENV{DEVTYPE}!="usb_device", GOTO="mm_usb_device_blacklist_end" | |
# NXP devices (mbed) | |
ATTRS{idVendor}=="0d28", ENV{ID_MM_DEVICE_IGNORE}="1" | |
# FTDI devices |
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
Start | |
Waiting for GPS... | |
No GPS (fix) found: check wiring | |
tmp/hum: 18.2,60.4 | |
Packet queued |
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
/home/matthijs/docs/Electronics/Arduino/Arduino/build/linux/work/arduino-builder -dump-prefs -logger=machine -hardware /home/matthijs/docs/Electronics/Arduino/Arduino/build/linux/work/hardware -hardware /home/matthijs/.arduino15/packages -hardware /home/matthijs/docs/Electronics/Arduino/Sketches/hardware -tools /home/matthijs/docs/Electronics/Arduino/Arduino/build/linux/work/tools-builder -tools /home/matthijs/docs/Electronics/Arduino/Arduino/build/linux/work/hardware/tools/avr -tools /home/matthijs/.arduino15/packages -built-in-libraries /home/matthijs/docs/Electronics/Arduino/Arduino/build/linux/work/libraries -libraries /home/matthijs/docs/Electronics/Arduino/Sketches/libraries -fqbn=meetjestad:avr:mjsv1 -ide-version=10613 -build-path /tmp/arduino_build_static -warnings=all -prefs=build.warn_data_percentage=75 -verbose /home/matthijs/docs/Electronics/Arduino/Sketches/Meetjestad/mjs_firmware/mjs_firmware.ino | |
/home/matthijs/docs/Electronics/Arduino/Arduino/build/linux/work/arduino-builder -compile -logger=m |
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
apt-get install ppp usb-modeswitch | |
Create /etc/ppp/peers/gprs and /etc/ppp/ip-up.d/ntpdate (a+x) | |
Modify /etc/network/interfaces: | |
auto gprs | |
iface gprs inet ppp | |
provider gprs |
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
#!/usr/bin/env python3 | |
import subprocess | |
import sys | |
import re | |
import os | |
ttnctl_staging = ["ttnctl-staging", "--ttn-account-server", "https://v1.account.thethingsnetwork.org"] | |
ttnctl_production = ["ttnctl"] | |
mapping = {} |