- Functional interface, imperative code
- Multiple small functions
- Functional code (map, any) where appropriate
- Purely functional code is hard to write for algorithmic questions and if you do try, hard for most interviewers to read
- Codeforces for practice
- Insert asserts
- Understand immutable vs mutable data structures
- Python 3 has almost all the fundamental data structures you need
- Python hides the distinction between pointer (reference) types and value types; sometimes ppl ask pointer-heavy questions
This file contains hidden or 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
http://nothingbuttabs.blogspot.ca/ - some chinese guy. https://www.youtube.com/watch?v=9Ofv3eOTl5Q | |
https://sellfy.com/petergergely |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | Cmd+C | copy current line (if no selection) |
Ctrl+X | Cmd+X | cut current line (if no selection) |
Ctrl+⇧+K | Ctrl+Shift+K | delete line |
Ctrl+↩ | Cmd+Enter | insert line after |
- Scalability := linear increase in performance
- Scalability <= conflict-free memory access
- aka "accesses disjoint memory (on a disjoint-access-parallel architecture)"
- Memory is shared state
- Cache coherence
- 50 open() calls in the time it takes to read a contended cache line
- OS as bottleneck
- OS primitives (files, processes/threads/signals, sockets) used by applications
- Linux scaling process
- Scalable interfaces
This file contains hidden or 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
http://arxiv.org/pdf/1512.02595v1.pdf | |
http://lowrank.net/nikos/pubs/empirical.pdf | |
https://medium.com/rants-on-machine-learning/the-unreasonable-effectiveness-of-random-forests-f33c3ce28883#.93ly6r372 | |
http://www.aclweb.org/anthology/P13-1045 | |
http://cui.unige.ch/~hendersj/papers/henderson_iwpt00.pdf | |
https://www.youtube.com/watch?v=nDD2XLAT3DE | |
https://www.youtube.com/watch?v=HlTFfo-iDQo | |
https://www.youtube.com/watch?v=nsagQtD2jHU | |
http://cs231n.github.io/ | |
http://web.stanford.edu/class/cs224u/ |
This file contains hidden or 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
<html> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.34/browser.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.6/react-with-addons.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.6/react-dom.js"></script> | |
</head> | |
<body> | |
<div id="container"></div> | |
<script type="text/babel"> | |
var App = React.createClass({ |
This file contains hidden or 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
/tmp/hhvm/hphp/runtime/vm/debug/elfwriter.cpp: In member function ‘bool HPHP::Debug::ElfWriter::initDwarfProducer()’: | |
/tmp/hhvm/hphp/runtime/vm/debug/elfwriter.cpp:129:11: error: invalid conversion from ‘int (*)(char*, int, Dwarf_Unsigned, Dwarf_Unsigned, Dwarf_Unsigned, Dwarf_Unsigned, Dwarf_Unsigned*, Dwarf_Ptr, int*) {aka int (*)(char*, int, long long unsigned int, long long unsigned int, long long unsigned int, long long unsigned int, long long unsigned int*, void*, int*)}’ to ‘Dwarf_Callback_Func {aka int (*)(char*, int, long long unsigned int, long long unsigned int, long long unsigned int, long long unsigned int, int*, int*)}’ [-fpermissive] | |
&error); | |
^ | |
/tmp/hhvm/hphp/runtime/vm/debug/elfwriter.cpp:129:11: error: invalid conversion from ‘Dwarf_Ptr {aka void*}’ to ‘Dwarf_Error_s**’ [-fpermissive] | |
/tmp/hhvm/hphp/runtime/vm/debug/elfwriter.cpp:129:11: error: too many arguments to function ‘Dwarf_P_Debug_s* dwarf_producer_init(Dwarf_Unsigned, Dwarf_Callback_Func, Dwarf_Handler, Dwarf_Ptr, Dw |
This file contains hidden or 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
{ | |
"translated": "Dan, dan, wait.", | |
"swrScore": 4675, | |
"original": "Dan, Dan, attendez.", | |
"context": { | |
"translated": [ | |
"No, you don't.\n", | |
"It's my turn now.\n", | |
"Well, you got away with it that time, but i know what you look like, and it won't happen again.\n", | |
"Dan, dan, wait.\n", |
This file contains hidden or 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
{ | |
"translated": "I've lost the right ever again to think of what love can be or what it means.", | |
"swrScore": 3118, | |
"original": "J'ai perdu le droit d'imaginer ce que peut être l'amour.", | |
"context": { | |
"translated": [ | |
"I found out that only swine should travel with swine.\n", | |
"You're talking to the man you love.\n", | |
"It makes me sick to even hear you say the word.\n", | |
"I've lost the right ever again to think of what love can be or what it means.\n", |
This file contains hidden or 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
http://www.liquidweb.com/kb/how-to-install-oracle-java-8-on-ubuntu-14-04-lts/ |