Skip to content

Instantly share code, notes, and snippets.

View dakrawczyk's full-sized avatar

Dave Krawczyk dakrawczyk

  • Numerator
  • Chicago, IL
View GitHub Profile
[core]
modules=xwayland.so
[shell]
background-color=0xff002244
panel-color=0x90ff0000
locking=true
animation=zoom
[input-method]
#!/usr/bin/python
# Copyright (C) 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
google-cloud-core==0.21.0
grpcio==1.0.1
PyAudio==0.2.9
grpc-google-cloud-speech-v1beta1==0.11.1
six==1.10.0
#!/usr/bin/python
# Copyright (C) 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
//
// ViewController.swift
// gradientView
//
// Created by Dave Krawczyk on 8/23/16.
// Copyright © 2016 Windy City Lab. All rights reserved.
//
import UIKit
int index = 0;
bool isPresent = false;
#define THRESHOLD 50
#define BUFFSIZE 25
int buffer[BUFFSIZE];
void setup() {
// put your setup code here, to run once:
pinMode(A0,INPUT);
Serial.begin(9600);
}
int idx = 0;
bool isPresent = false;
#define THRESHOLD 50
#define BUFFSIZE 25
int buffer[BUFFSIZE];
void setup() {
// put your setup code here, to run once:
pinMode(A0,INPUT);
Serial.begin(9600);
}
@dakrawczyk
dakrawczyk / filterUpdate.c
Created December 3, 2015 16:12
Accepts raw data from IMU and filters to Quaternion
#include <math.h>
// System constants
#define deltat 0.001f // sampling period in seconds (shown as 1 ms)
#define gyroMeasError 3.14159265358979f * (5.0f / 180.0f) // gyroscope measurement error in rad/s (shown as 5 deg/s)
#define beta sqrt(3.0f / 4.0f) * gyroMeasError // compute beta
//Global System Variables
float a_x, a_y, a_z; // accelerometer measurements
#include <LiquidCrystal.h>
#include <Wire.h>
#include "RTClib.h"
#include <SPI.h>
#include <Adafruit_VS1053.h>
#include <SD.h>
#include <ZX_Sensor.h>
#include <SFE_BMP180.h>
#include <SoftwareSerial.h>