I hereby claim:
- I am jazzyjackson on github.
- I am jazzyjackson (https://keybase.io/jazzyjackson) on keybase.
- I have a public key ASDUotL3QS7_08wVTDlVR10C4T2nHcnNvtPYOZwNQYsaTQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
typedef struct{ | |
byte pin; | |
volatile short timeHigh; | |
volatile short timeLow; | |
volatile long lastFalling; | |
volatile long lastRising; | |
void dutyCycleUpdate(){ | |
switch(digitalRead(this->pin)){ | |
case HIGH: |
#include "motors.h" | |
#include <Adafruit_TiCoServo.h> | |
Adafruit_TiCoServo servo_backdrop; | |
Adafruit_TiCoServo servo_stage; | |
MotorState motorState; | |
void setup() { | |
// put your setup code here, to run once: |
#include "motors.h" | |
#include <Adafruit_TiCoServo.h> | |
MotorState motorState(9, 10); | |
void setup() { | |
} | |
void loop() { |
<style> | |
chess { | |
background: black; | |
display: block; | |
width: 75px; | |
height: 75px; | |
display: flex; | |
justify-content: center; | |
} | |
option { |
https://www.tecmint.com/install-mariadb-in-centos-7/ https://www.vultr.com/docs/how-to-install-erpnext-open-source-erp-on-centos-7 http://ask.xmodulo.com/install-python3-centos.html
issues https://discuss.erpnext.com/t/easy-install-fails-at-task-bench-python3-bench-init-for-develop/34975/9 frappe/bench#796
// module.exports = function realType(anyType){ | |
// return global[Object.prototype.toString.call(anyType).slice(8, -1)] | |
// } | |
const extractType = anyInput => Object.prototype.toString.call(anyInput).slice(8, -1) | |
module.exports = function realType(anyType){ | |
let literalType = global[extractType(anyType)] | |
return { | |
literal: literalType, |
/** | |
this function is modified from | |
lodash/.internal/stringToPath.js | |
MIT License | |
**/ | |
const reEscapeChar = /\\(\\)?/g | |
const rePropName = RegExp( | |
// Match anything that isn't a dot or bracket. | |
'[^.[\\]]+' + '|' + |
const start = Date.now() | |
module.exports = function millis(){ | |
return String(Date.now() - start).padEnd(8) | |
} |
let isRealNumber = key => /^[0-9]+$/.test(key) | |
let isOKforDotNotation = key => /^[a-zA-Z_][a-zA-Z0-9_]*$/.test(key) | |
function wrapKey(key){ | |
if(isOKforDotNotation(key)){ | |
return `.${key}` | |
} else if(isRealNumber(key)){ | |
return `[${key}]` | |
} else { | |
return `["${key}"]` |