This file contains hidden or 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
Things Theme | |
``` | |
## Basic | |
- [ ] to-do | |
- [/] incomplete | |
- [x] done | |
- [-] canceled | |
- [>] forwarded | |
- [<] scheduling |
This file contains hidden or 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
sed 's/ /,/g' temp.txt >newtemp.txt |
This file contains hidden or 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
// https://www.taniarascia.com/crud-app-in-react-with-hooks/ | |
const handleInputChange = (event) => { | |
const { name, value } = event.target | |
setUser({ ...user, [name]: value }) | |
} | |
=============================================================================================================== | |
// !! https://www.pluralsight.com/guides/handling-multiple-inputs-with-single-onchange-handler-react |
This file contains hidden or 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
Show hidden characters
{ | |
// JSHint Default Configuration File (as on JSHint website) | |
// See http://jshint.com/docs/ for more details | |
"maxerr" : 50, // {int} Maximum error before stopping | |
// Enforcing | |
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.) | |
"camelcase" : false, // true: Identifiers must be in camelCase | |
"curly" : true, // true: Require {} for every new block or scope |
This file contains hidden or 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
const [state, dispatch] = useReducer(reducer, initialState); | |
------------------------------------------------------------------------------------------------ | |
DEFINITIONS: | |
Reducers -> | |
- Reducers are functions that take input and decide what to do it with it in one central spot. | |
- Reducers return one thing => state | |
- Redux Reducers™️ are a specific usage of reducers that interpret events in your application, and how that changes application state. | |
Actions -> Actions are objects that describe an event |
This file contains hidden or 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
[ | |
{ | |
"id": 1, | |
"started": "2018-01-20T06:00:00.000Z", | |
"active": true, | |
"name": { | |
"trade": "Coreg", | |
"generic": "carvedilol" | |
}, | |
"doses": ["3.125", "6.25", "12.5"], |
This file contains hidden or 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
Drugs = new Mongo.Collection('drugs'); | |
drugs= [ | |
"Acetazolamide Injection 500 mg", | |
"Acetazolamide Tablet 250 mg", | |
"Acetylcysteine Injection 200 mg/mL", | |
"Acetylsalicylic Acid Tablet 300 mg", | |
"Acetylsalicylic Acid Tablet 75 mg (Dispersible)", | |
"Activated Charcoal Powder 50 g", | |
"Acyclovir Cream 5%", |
This file contains hidden or 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
// normal notes | |
@notes=qw{A A# B C C# D D# E F F# G G#}; | |
printf("%-3s %8.3f\n", | |
sprintf("%s%d", $notes[($_)%12], int(($_+9)/12)), | |
27.5 * 2**($_/12)) for (0 .. 87)' | |
// quarter tones | |
@notes = qw { A A# B C C# D D# E F F# G G# }; | |
printf("%-4s %8.3f\n", | |
sprintf("%s%s%d", $notes[$_ % 12], ((int($_) == $_) ? "" : "+"), int(($_ + 9) / 12)), |
This file contains hidden or 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
A0 27.500 | |
undefined+0 28.306 | |
A#0 29.135 | |
undefined+0 29.989 | |
B0 30.868 | |
undefined+0 31.772 | |
C1 32.703 | |
undefined+1 33.661 | |
C#1 34.648 | |
undefined+1 35.663 |
This file contains hidden or 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
<script> | |
var convert = function () { | |
document.getElementById("result").innerHTML = | |
"<font face=\"Geneva, Arial, Helvetica, sans-serif\">" + | |
frequencyToNote() + "</font>"; | |
} | |
var frequencyToNote = function () { | |
var input = Number(document.getElementById("frequency").value); | |
if(isNaN(input) || (input == 0)) |
NewerOlder