I hereby claim:
- I am jaydlawrence on github.
- I am jaydlawrence (https://keybase.io/jaydlawrence) on keybase.
- I have a public key ASDSi7IhBEtn6_Amc3e_SVtoWqAnMGpf_KvC5I42BbhshQo
To claim this, I am signing this object:
#!/usr/bin/php | |
<?php | |
$url = "https://play.google.com/store/devices/details/Nexus_6_64_GB_Cloud_White?id=nexus_6_white_64gb"; | |
//$url = "https://play.google.com/store/devices/details/Nexus_6_64_GB_Midnight_Blue?id=nexus_6_blue_64gb"; | |
//$url = "https://play.google.com/store/devices/details/Nexus_6_32_GB_Midnight_Blue?id=nexus_6_blue_32gb"; | |
$opts = array('http' => | |
array( | |
'method' => 'GET', | |
'header' => array( | |
"authority:play.google.com", |
$fn=100; | |
//source for original frame http://www.thingiverse.com/download:1477363 | |
//shorten the height to 12mm | |
module shortened() { | |
difference() { | |
translate([0,0,12]){ | |
difference() { | |
rotate([-90,0,0]) { |
$fn = 100; | |
distanceBetweenPoleCentres = 31.5; | |
poleRadius = 2.7; | |
thickness = 2; | |
outerRadius = poleRadius + thickness; | |
distanceBetweenPoles = distanceBetweenPoleCentres - (2*outerRadius); | |
poleHeight = 34.8; | |
cameraDepth = 22; | |
bottomPlateThickness = thickness; | |
bottomPlateWidth = cameraDepth; |
import subprocess | |
import os | |
import re | |
import sys | |
import argparse | |
import httplib, urllib | |
import time | |
""" | |
# place this file at /home/ethos/check_hash_reboot.py |
#include <Servo.h> | |
// create motor handler of the Servo class type | |
Servo motor; | |
// The On/Off button will be on pin 6 | |
const int buttonPin = 6; | |
// The Potentiometer to adjust speed will be on pin 7 | |
const int potPin = 7; | |
// Motor signal is on pin 3 | |
const int motorPin = 3; |
// requires the DHT11 arduino library - https://playground.arduino.cc/Main/DHT11Lib | |
#include "dht11.h" | |
#include "Particle.h" | |
dht11 DHT11; | |
// pin 2 is used as the data pin to communicate with the DHT11 board | |
#define DHT11PIN 2 | |
// how long between measurements |
I hereby claim:
To claim this, I am signing this object:
<script type="text/javascript"> | |
const processString = () => { | |
try { | |
const arrayString = document.forms["myForm"]["array"].value; | |
const jsonDecodedArray = JSON.parse(arrayString); | |
const resultArray = arrayFlatten(jsonDecodedArray); | |
const resultArrayString = JSON.stringify(resultArray); | |
document.getElementById("result").innerHTML = `Result: ${resultArrayString}`; | |
} | |
catch(error) { |
A simple script to check a website for a particular string and notify if the occurances change.
Notify via pushover.net notification service, osascript and say
This was set up as a cron to check every 10 minutes.
*/10 * * * * /usr/bin/env bash /path/to/script/check.sh