These are my notes on instaling NixOS 16.03 on a Lenovo ThinkPad X1 Carbon (4th generation) with an encrypted root file system using UEFI.
Most of this is scrambled from the following pages:
These are my notes on instaling NixOS 16.03 on a Lenovo ThinkPad X1 Carbon (4th generation) with an encrypted root file system using UEFI.
Most of this is scrambled from the following pages:
| ;; PROBLEM: | |
| ;; Create function that satisfiy following example | |
| (check-expect (number-list (list "first" "second" "third")) | |
| (list "1: first" "2: second" "3: third")) | |
| (define (number-list n) empty) ; stub | |
| ;; #1 Objective: | |
| ;; - Satisfy all design elements (or as much as posible) |
| ;; yell-starter.rkt | |
| ; PROBLEM: | |
| ; | |
| ; DESIGN a function called yell that consumes strings like "hello" | |
| ; and adds "!" to produce strings like "hello!". | |
| ; | |
| ; Remember, when we say DESIGN, we mean follow the recipe. | |
| ; | |
| ; Leave behind commented out versions of the stub and template. |
| ; Problem: Design a function that pluralizes a given word. | |
| ; (Pluralize means to convert the word to its plural form.) | |
| ; For simplicity you may assume that just adding s is enough to pluralize a word | |
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| ;; What is an appropriate signature for this function? | |
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| // Run this in the F12 javascript console in chrome | |
| // if a redirect happens, the page will pause | |
| // this helps because chrome's network tab's | |
| // "preserve log" seems to technically preserve the log | |
| // but you can't actually LOOK at it... | |
| // also the "replay xhr" feature does not work after reload | |
| // even if you "preserve log". | |
| window.addEventListener("beforeunload", function() { debugger; }, false) |
https://lewisf.com/dactyl-manuform/ hold ; and use hjkl to left,right, up,down
Both part needs to have ProMicro MicroController so It can use the QMK Firmware for controling the keys on keyboard itself
4x6 is the way to go
There’s a strong trend for ergonomic keyboards to reduce the number of keys, mostly becouse of QMK framework that allows layering. People usually prefer less rows.
model User {
id Int @id @default(autoincrement())
email String @unique
role Role // normal Relation field
profile Profile? // Relation field part of 0-1 relation
}
model Profile {
id Int @id @default(autoincrement())| // Given an array of strings, group anagrams together. | |
| /** | |
| * @param {string[]} strs | |
| * @return {string[][]} | |
| * @description Given an array of strs, group anagrams together. | |
| * @note inputs will be in lowercase. | |
| The order of your output does not matter. | |
| */ | |
| // Cubic O(n³) | |
| // https://www.youtube.com/watch?v=2MmGzdiKR9Y Feb: 01/2019 | |
| function maxSubArray(nums) { | |
| let maximumSubArraySum = Number.NEGATIVE_INFINITY; | |
| /* | |
| We will use these outer 2 for loops to investigate all | |
| windows of the array. | |
| We plant at each 'left' value and explore every |
| /* From http://thatemil.com/blog/2015/01/03/reset-your-fieldset/ by Emil Björklund */ | |
| legend { | |
| display: table; | |
| padding: 0; | |
| } | |
| fieldset { | |
| border: 0; | |
| margin: 0; | |
| min-width: 0; |