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 machine import Pin, ADC, PWM | |
import utime | |
MAX_DELTA_ALIGNED = 4000 | |
led = Pin(25, Pin.OUT) | |
servos = { | |
'pan': { | |
'min': 1000, |
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
#include <iostream> | |
#include <map> | |
using namespace std; | |
float piecewise_linear_interpolate(map<float, float> value_mappings, float input); | |
int main() { | |
map<float, float> voltage_to_percent_mapping { | |
{ 09.5, 0.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
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\Log; |
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 | |
// HEADER CONFIG FILE | |
$screen_name = "senseo"; // The screen name | |
$allowed = array("s", "c", "b", "r", "a"); // What you allow to be send over serial | |
$requireroot = true; // True = you need to add www-data to sudoers file without password. False = you need to cron your interface each minute to 777 | |
$interface = "ttyUSB0"; // Your serial interface, witout /dev/ | |
// You should not touch this. | |
if ($requireroot == 1) { |
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
package com.lululombard.kinghardcore; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.ConcurrentModificationException; | |
import java.util.List; | |
import java.util.Random; | |
import org.bukkit.Bukkit; | |
import org.bukkit.Chunk; |
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
{"lastUpload":"2018-02-25T11:49:41.593Z","extensionVersion":"v2.8.7"} |