View Touchballs.glsl
precision highp float;
precision mediump float;
uniform vec2 resolution;
uniform int pointerCount;
uniform vec3 pointers[10];
uniform float battery;
View Receiver433.ino
#include <RCSwitch.h>
#define PIN 2
RCSwitch rc = RCSwitch();
void setup() {
View pacboy.c
#include <stdio.h>
#include <stdlib.h>
#include <alpm.h>
#include <alpm_list.h>
int main(void) {
alpm_errno_t *err;
alpm_handle_t *alpm = alpm_initialize("/", "/var/lib/pacman/", err);
View regression.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View extract.js
$('tr td:nth-child(3) .currency-amount')
.map(v => $(v).text().slice(0, -3))
View app.js
import { Turtle } from './turtle.js';
import { WaterTurtle } from './water.js';
import { GalapagosTurtle } from './galapagus.js';
import { EvkodianTurtle } from './evkodian.js';
import { NinjaTurtle } from './ninja.js';
result.Turtle = Turtle;
result.WaterTurtle = WaterTurtle;
result.GalapagosTurtle = GalapagosTurtle;
result.EvkodianTurtle = EvkodianTurtle;
View PairHeap.fs
module PairHeap
type Heap<'a> =
| Empty
| Heap of 'a * (Heap<'a> list)
let top =
| Empty -> failwith "empty"
| Heap (c,_) -> c
View cases.fs
open Microsoft.FSharp.Reflection
let cases<'a> = seq {
for case in FSharpType.GetUnionCases typeof<'a> do
yield (FSharpValue.MakeUnion(case, [||]) :?> 'a)
View UpDowner.ino
#define T 30
#define PIN_START 3
#define PIN_TOP 4
#define PIN_BOT 5
#define PIN_DOWN 7
#define PIN_UP 9
void setup() {
View PaperCutter.ino
#define STEPS 800 //motor steps for one cut
#define DIRECTION 1 //motor direction 1 or 0
#define CUT_TIME 500 //time to cut in ms
#define CUT_COUNT 20 //number of cuts
#define SPEED_TIME 1 //speed between impulses in ms
#define PAUSE_TIME 100 //time after pause button is pressed
#define GRAB_TIME 200 //time for grabbing/releasing the paperj
#define STEP_PIN 5 //motor driver STEP pin
#define DIR_PIN 11 //motor driver DIR pin