Skip to content

Instantly share code, notes, and snippets.

View drewwebster's full-sized avatar
💭
Full stack apps all day. Box and run all life.

drewwebster drewwebster

💭
Full stack apps all day. Box and run all life.
View GitHub Profile
@drewwebster
drewwebster / it-ebooks.md
Created March 6, 2020 17:38 — forked from baiwfg2/it-ebooks.md
Download ebooks as you want
@drewwebster
drewwebster / IR_remote_GPIO3.py
Last active August 16, 2019 17:40
https://www.youtube.com/watch?v=a7GD9OKz1Ao Just a Raspberry Pi, a HX1848 IR sensor and a Python program. The base code was written by Out of the BOTS, I made some adjustments so you the user can control the GPIO by the IR remotes. No additional libraries like LIRC are used! Download the concept code at: http://www.doornheim.nl/IR_remote_GPI... …
import RPi.GPIO as GPIO
from datetime import datetime
from time import sleep
import time
#Define the GPIO
INPUT_WIRE = 18
LED1=12
LED2=16
LED3=20
var _0x910b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x65\x6E\x67\x74\x68","\x47\x65\x6F\x6D\x65\x74\x72\x79","\x42\x75\x66\x66\x65\x72\x47\x65\x6F\x6D\x65\x74\x72\x79","\x4D\x61\x74\x65\x72\x69\x61\x6C","\x67\x65\x74","\x69\x73\x41\x72\x72\x61\x79","\x4D\x65\x73\x68","\x44\x69\x72\x65\x63\x74\x69\x6F\x6E\x61\x6C\x4C\x69\x67\x68\x74","\x41\x6D\x62\x69\x65\x6E\x74\x4C\x69\x67\x68\x74","\x4C\x69\x67\x68\x74","\x4F\x62\x6A\x65\x63\x74\x33\x44","\x73\x74\x72\x69\x6E\x67","\x75\x6E\x73\x75\x70\x70\x6F\x72\x74\x65\x64\x20\x74\x79\x70\x65","\x61\x73\x73\x65\x72\x74","\x64\x61\x74\x61","\x69\x6E\x76\x61\x6C\x69\x64\x20\x70\x61\x72\x61\x6D\x65\x74\x65\x72\x73","\x5F\x6C\x65\x6F\x73\x44\x61\x74\x61","\x54\x68\x69\x73\x20\x6B\x65\x79\x20\x61\x6C\x72\x65\x61\x64\x79\x20\x65\x78\x69\x73\x74\x73\x20","\x68\x61\x73\x44\x61\x74\x61","\x72\x65\x6D\x6F\x76\x65\x44\x61\x74\x61","\x66\x6F\x72\x45\x61\x63\x68","\x54\x68\x69\x73\x20\x6B\x65\x79\x20\x64\x6F\x65\x73\x6E\x74\x20\x61\x6C\x72\x65\x61\x64\x79\x20\x65\x78\x69\x73
@drewwebster
drewwebster / RequestHighestRefreshRate.js
Created September 10, 2018 23:08 — forked from DigiTec/RequestHighestRefreshRate.js
Shows how to request 72hz rendering on the Go. Can be combined with samples at https://webvr.info/samples/
// This is connected to your "Enter WebVR" button
function onVRRequestPresent () {
console.log("onVRRequestPresent begin");
// This can only be called in response to a user gesture.
var attributes = {
highRefreshRate: true,
};
vrDisplay.requestPresent([{source: webglCanvas, attributes: attributes}]).then(function () {
// Nothing to do because we're handling things in onVRPresentChange.
console.log("highRefreshRate = " + vrDisplay.getLayers()[0].attributes.highRefreshRate);
@drewwebster
drewwebster / gist:6709a75fd87afc212e5bdddde082ff3c
Created September 10, 2018 16:34 — forked from ngokevin/gist:803e68351f70139da51fda48d3b484e3
Example of keyboard bindings for A-Frame/VR development.
/**
* Keyboard bindings to control controller and create actions via events.
* Position controllers in front of camera.
* <a-scene debug-controller> ?debug in URL to toggle on.
*/
AFRAME.registerComponent('debug-controller', {
schema: {
enabled: {default: false}
},