I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mpg | cylinders | displacement | horsepower | weight | acceleration | model year | origin | car name | |
---|---|---|---|---|---|---|---|---|---|
18 | 8 | 307 | 130 | 3504 | 12 | 70 | 1 | chevrolet chevelle malibu | |
15 | 8 | 350 | 165 | 3693 | 11.5 | 70 | 1 | buick skylark 320 | |
18 | 8 | 318 | 150 | 3436 | 11 | 70 | 1 | plymouth satellite | |
16 | 8 | 304 | 150 | 3433 | 12 | 70 | 1 | amc rebel sst | |
17 | 8 | 302 | 140 | 3449 | 10.5 | 70 | 1 | ford torino | |
15 | 8 | 429 | 198 | 4341 | 10 | 70 | 1 | ford galaxie 500 | |
14 | 8 | 454 | 220 | 4354 | 9 | 70 | 1 | chevrolet impala | |
14 | 8 | 440 | 215 | 4312 | 8.5 | 70 | 1 | plymouth fury iii | |
14 | 8 | 455 | 225 | 4425 | 10 | 70 | 1 | pontiac catalina |
A list of commonly asked questions, design decisions, reasons why Clojure is the way it is as they were answered directly by Rich (even when from many years ago, those answers are pretty much valid today!). Feel free to point friends and colleagues here next time they ask (again). Answers are pasted verbatim (I've made small adjustments for readibility, but never changed a sentence) from mailing lists, articles, chats.
How to use:
- The link in the table of content jumps at the copy of the answer on this page.
- The link on the answer itself points back at the original post.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ctrl - shift - J on Tabs Outliner to open dev tools, | |
// then Sources -> Snippets -> New Snippet. | |
// Rightclick -> Run to execute. | |
// cyrb53 stolen from https://stackoverflow.com/a/52171480 | |
const cyrb53 = function(str, seed = 0) { | |
let h1 = 0xdeadbeef ^ seed, h2 = 0x41c6ce57 ^ seed; | |
for (let i = 0, ch; i < str.length; i++) { | |
ch = str.charCodeAt(i); | |
h1 = Math.imul(h1 ^ ch, 2654435761); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dis | |
from sys import _getframe as GF | |
def vprint(f, *args, **kws): | |
kws = ', '.join(f'{k}={v!r}' for k,v in kws.items()) | |
args= ', '.join(a for b in (map(repr, args), (kws,)) for a in b if a) | |
print(f'{f}({args})') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Your name and email address were configured automatically based | |
on your username and hostname. Please check that they are accurate. | |
You can suppress this message by setting them explicitly: | |
git config --global user.name "Your Name" | |
git config --global user.email you@example.com | |
After doing this, you may fix the identity used for this commit with: | |
git commit --amend --reset-author |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 | LAFBD-41 | |
---|---|---|
2 | SSNI-497 | |
3 | ABP-984 | |
4 | IPX-580 | |
5 | IPX-811 | |
6 | IPX-177 | |
7 | STARS-804 | |
8 | SMBD-115 | |
9 | ABP-968 | |
10 | ABF-017 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This xorg configuration file will start a dummy X11 server. | |
# move it to /etc/X11/xorg.conf | |
# don't forget apt install xserver-xorg-video-dummy; | |
# based on https://xpra.org/Xdummy.html | |
Section "ServerFlags" | |
Option "DontVTSwitch" "true" | |
Option "AllowMouseOpenFail" "true" | |
Option "PciForceNone" "true" | |
Option "AutoEnableDevices" "false" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# apt-get install | |
sudo apt-get update | |
# For ubuntu 14.04 | |
sudo apt-get install -y xserver-xorg-video-dummy-lts-trusty | |
# For ubuntu 16.04 | |
sudo apt-get install -y xserver-xorg-video-dummy-lts-willy | |
# Copy the xorg.conf to `/etc/X11/xorg.conf`. | |
wget -P /etc/X11 https://gist.githubusercontent.com/mangoliou/ba126832f2fb8f86cc5b956355346038/raw/b6ad063711226fdd6413189ad905943750d64fd8/xorg.conf |
NewerOlder