I hereby claim:
- I am sondr3 on github.
- I am sondre (https://keybase.io/sondre) on keybase.
- I have a public key whose fingerprint is 0EC3 FA89 EFBA B421 F82E 40B0 2567 6BCB FFAD 76B1
To claim this, I am signing this object:
| :set -XOverloadedStrings | |
| import Data.Text qualified as T | |
| import Data.Text.IO qualified as TIO |
| POSTGRES_DB=pantry_dev | |
| POSTGRES_USER=postgres | |
| POSTGRES_PASSWORD=postgres | |
| POSTGRES_HOST=localhost |
| const findMin = nums => findMinRec(nums[0], nums); | |
| const findMinRec = (curr, nums) => { | |
| if (nums.length === 0) return curr; | |
| const min = curr < nums[0] ? curr : nums[0]; | |
| return findMinRec(min, nums.splice(1)) | |
| } | |
| console.log(findMin([1, 2, 3])) | |
| console.log(findMin([-10, 42, 18, 37, 99, -100])) |
| const reverseString = (n) => { | |
| for (var i = n.length - 1, o = ""; i >= 0; o += n[i--]) { } | |
| return o; | |
| } | |
| console.log(reverseString("hello")); | |
| console.log(reverseString("world")); |
| const reverseString = (input) => { | |
| return (input === "") ? "" : reverseString(input.substring(1)) + input.charAt(0); | |
| } | |
| console.log(reverseString("hello")); | |
| console.log(reverseString("world")); |
| [ | |
| [ | |
| "BIF101", | |
| { | |
| "code": "BIF101", | |
| "title": "Organismal Biology in Aquatic Medicine and Aquaculture", | |
| "url": "https://www.uib.no/en/course/BIF101?sem=2020h", | |
| "assessment": "Written examination (Ordinary exam)", | |
| "exams": [ | |
| { |
I hereby claim:
To claim this, I am signing this object:
| (use-package flyspell | |
| :config | |
| (setq-default ispell-program-name "hunspell") | |
| (setq ispell-really-hunspell t | |
| ispell-dictionary "en_US" | |
| ispell-silently-savep t | |
| ispell-local-dictionary-alist | |
| '( | |
| ("en_US" "[[:alpha:]]" "[^[:alpha:]]" "[']" nil nil nil utf-8) | |
| ("nb_NO" "[[:alpha:]]" "[^[:alpha:]]" "[']" nil nil nil utf-8))) |
I hereby claim:
To claim this, I am signing this object:
| # bin/test.rb | |
| opts.on('--new:thing [NAME]', 'create a new thing') do |name| | |
| if name.nil? | |
| puts "you need to name your thing" | |
| exit 0 | |
| end | |
| options[:name] = name | |
| puts "#{name}" | |
| Test::CLI::New::Thing.new | |
| end |