Skip to content

Instantly share code, notes, and snippets.

{
"title": "NLGs Custom keyboard changes",
"rules": [
{
"description": "Change left_control+hjkl to arrow keys",
"manipulators": [
{
"from": {
"key_code": "h",
"modifiers": {
# Install software
## 1Password
`brew cask install 1password`
## Homebrew https://brew.sh/index_fi
`/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"` (Might need to run twice)
## Iterm 2
`brew cask install iterm2`
/*
* Run the following bookmarklet on a Linux Academy course page to display the remaining time between lessons, quizes, and handsOn labs.
* Here's an example: https://dsc.cloud/nlg/1575736460.png
* Note that the script is one off thing that helped me for a moment - no quarantees :)
*/
javascript:(function() { const times = $('.syllabus-item').toArray().reduce((acc, curr) => { if($(curr).find('.complete').length) { return acc } const tr = $(curr).find('.time-required').text().split(':'); const time = Number(tr[0]) * 60 + (Number(tr[1]) + (Number(tr[2]) / 60)); if($(curr).find('.name').text().match('Hands-On')) { acc.handsOn = (acc.handsOn || 0) + time; } else if($(curr).find('.name').text().match(/Quiz/i)) { acc.quiz = (acc.quiz || 0) + time; } else { acc.lesson = (acc.lesson || 0) + time; } acc.total = (acc.total || 0) + time; return acc; }, {}); times.handsOn = Math.round(times.handsOn / 60) + "h " + Math.round(times.handsOn % 60) + "min"; times.quiz = Math.round(times.quiz / 60) + "h " + Math.round(ti

Keybase proof

I hereby claim:

  • I am nikkilovegod on github.
  • I am nlg (https://keybase.io/nlg) on keybase.
  • I have a public key ASCRhvWx60U5P_fvIVIVrJ0rvNiIIo3P7RlrgQrnquTNZwo

To claim this, I am signing this object:

@NikkiLoveGod
NikkiLoveGod / timePerformance
Last active August 29, 2015 14:22
Measure the performance of a javascript callable
/**
* Measures the runtime of given callable function
* Second argument is optional, and puts an identifier string in front of console.log
*/
function timePerformance(callable) {
// Identifier string to differentiate timings
var identifier = arguments[1] || 'Time';
// Start time
var t0 = performance.now();