Skip to content

Instantly share code, notes, and snippets.

View mocon's full-sized avatar

Myles O'Connor mocon

View GitHub Profile
@mocon
mocon / snippets.cson
Created May 20, 2019 18:07
Atom snippets
# JavaScript
'.source.js':
'console.log':
'prefix': 'cl'
'body': 'console.log(\'$1 👉\', $1)$2'
'console.log JSON':
'prefix': 'clj'
'body': 'console.log(\'$1 👉\', JSON.stringify($1, null, 2))$2'
# CSS
'.source.css':
@mocon
mocon / r_example.md
Created September 16, 2019 19:54
R example

R example

if (y < 0 && debug) {
  message("Y is negative")
}

if (y == 0) {
  log(x)
} else {
@mocon
mocon / settings.json
Created October 4, 2019 19:18
VS Code user settings file, located at `~/Library/Application Support/Code/User/settings.json`
{
"window.zoomLevel": -1,
"workbench.iconTheme": "vscode-icons",
"vsicons.dontShowNewVersionMessage": true,
"editor.tabSize": 2,
"editor.fontFamily": "InputMono-Regular",
"editor.wordWrap": "on",
"editor.fontSize": 15,
"editor.occurrencesHighlight": false,
"editor.selectionHighlight": true,

Habit Tracker 0.0.1

Keep track of your recurring habits, and view your completion percentages over time.

Views

These are the four required views within the app:

Login/Signup, Code view

@mocon
mocon / example.js
Created January 15, 2021 20:20
Possible solution
// 1. Loop through all tree IDs, and make a map with unique, auto-generated, letter-only keys for each one
var nameMap = {
"01234a": "ayenej",
"01234a": "oowket",
// ...and so on
}
// 2. Convert column names according to map above
// 3. Use map to display tree IDs by their key