There is only one type of list and it is constructed using cons cells (aka 2-tuples):
(a, b)
| MIT License | |
| Copyright (c) 2021 Daniel Ethridge | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
| X | kick | snare | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| X | ||||||||||
| X | ||||||||||
| X | ||||||||||
| X | kick | |||||||||
| X | ||||||||||
| X | ||||||||||
| X | ||||||||||
| X | kick | snare | clap | |||||||
| X |
| #!/usr/bin/python | |
| import hmac, struct, time, base64, hashlib # for totp generation | |
| import re, sys, subprocess # for general stuff | |
| from getopt import getopt, GetoptError # pretending to be easy-to-use | |
| # | |
| # gtb - Google(auth) + Tunnelblick | |
| # |
Note: I'm currently taking a break from this course to focus on my studies so I can finally graduate
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
| var http = require('http'), | |
| httpProxy = require('http-proxy'), | |
| trumpet = require('trumpet'); | |
| httpProxy.createServer( | |
| function (req, res, next) { | |
| var _write = res.write; | |
| res.write = function (data) { |
| # Logs | |
| logs | |
| *.log | |
| # Runtime data | |
| pids | |
| *.pid | |
| *.seed | |
| # Directory for instrumented libs generated by jscoverage/JSCover |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
| var parser = document.createElement('a'); | |
| parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
| parser.protocol; // => "http:" | |
| parser.hostname; // => "example.com" | |
| parser.port; // => "3000" | |
| parser.pathname; // => "/pathname/" | |
| parser.search; // => "?search=test" | |
| parser.hash; // => "#hash" | |
| parser.host; // => "example.com:3000" |