This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export NODE_ENV=localdev | |
export PATH=$PATH:~/homebrew/bin:/usr/local/bin | |
alias ll='ls -al' | |
zstyle ':completion:*:*:git:*' script ~/.zsh/git-completion.bash | |
fpath=(~/.zsh $fpath) | |
autoload -Uz compinit && compinit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState } from 'react' | |
import './NumberField.less' | |
export default function NumberField({ | |
defaultValue = null, | |
allowNegatives = true, | |
allowZero = false, | |
onChange, | |
}) { | |
const [value, setValue] = useState(defaultValue || 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {useState, useEffect} from "react"; | |
import "./styles.css"; | |
export default function App() { | |
return ( | |
<div className="App"> | |
<Tags tags={['abc', '123']} /> | |
</div> | |
); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*** | |
* The ABS JS examples from Microsoft demonstrate how to download blobs as text. | |
* This example shows a generalized solution. | |
* Assumes node v12 and express framework | |
***/ | |
const { BlobServiceClient } = require('@azure/storage-blob'); | |
const STORAGE_CONN = "your_azure_storage_connection_string"; | |
const CONTAINER_NAME = "your_azure_container_name"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// based from https://github.com/justadudewhohacks/opencv4nodejs/tree/master/examples/simpleTracking1.js | |
// This code is meant to be run on a Raspberry Pi 3 with the picamera. | |
// NOTE: Before running this code, for OpenCV to detect the camera, you need to run sudo modprobe bcm2835-v4l2 | |
// TODO: Write each detected frame to an image file somewhere, with the timestamp in the name | |
const cv = require('opencv4nodejs'); | |
const delay = 50; | |
const hog = new cv.HOGDescriptor(); | |
hog.setSVMDetector(cv.HOGDescriptor.getDefaultPeopleDetector()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +mformarlon is my blockchain ID. https://onename.com/mformarlon |