- Cracking the Coding Interview: 189 Programming Questions and Solutions
- Programming Interviews Exposed: Coding Your Way Through the Interview
- Introduction to Algorithms
- The Algorithm Design Manual
- Effective Java
- Concurrent Programming in Java: Design Principles and Pattern
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
| docker ps -a | awk '{ print $1,$2}' | grep <image name> | awk '{ print $1}' |
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
| vector<int> factorize(int num) { | |
| vector<int> output; | |
| int i = 2; | |
| while (num > 1) { | |
| if (num % i == 0) { | |
| output.push_back(i); | |
| num = num / i; | |
| } |
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
| #include <bits/stdc++.h> | |
| #include <stdio.h> | |
| using namespace std; | |
| typedef struct header_t { | |
| char id[4]; | |
| int numlumps; | |
| int infotableofs; |
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
| type BatchedRequest<T> = (data: string[]) => Promise<T[]>; | |
| interface IRequestStore<T> { | |
| promise: Promise<T>; | |
| resolve: Function; | |
| } | |
| export class BatchedSteamRequester<T> { | |
| private _requests: { [index: string]: IRequestStore<T> }; | |
| private _interval: NodeJS.Timeout; | |
| private _batchedRequest: BatchedRequest<T>; |
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
| import Control.Concurrent (forkIO, threadDelay) | |
| import Control.Monad (forever) | |
| import qualified Data.ByteString.Char8 as C | |
| import Network.Socket hiding (recv) | |
| import Network.Socket.ByteString (recv, sendAll) | |
| packetData = C.pack $ [0xFF] ++ "TSourceQuery" | |
| sendMessage :: IO () | |
| sendMessage = do |
| name | number | reason |
|---|---|---|
| SIGHUP | 1 | Hangup (POSIX) |
| SIGINT | 2 | Terminal interrupt (ANSI) |
| SIGQUIT | 3 | Terminal quit (POSIX) |
| SIGILL | 4 | Illegal instruction (ANSI) |
| SIGTRAP | 5 | Trace trap (POSIX) |
| SIGIOT | 6 | IOT Trap (4.2 BSD) |
| SIGBUS | 7 | BUS error (4.2 BSD) |
| SIGFPE | 8 | Floating point exception (ANSI) |
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
| { | |
| "autoexec.cfg": "//Rates\r\ncl_cmdrate \"128\"\r\ncl_updaterate \"128\"\r\ncl_interp \"0\"\r\ncl_interp_ratio \"1\"\r\ncl_forcepreload \"1\"\r\ncl_resend \"3\"\r\nrate \"128000\"\r\nnet_allow_multicast \"0\"\r\n \r\n//Sound\r\nwindows_speaker_config \"4\"\r\nsnd_mixahead \"0.05\"\r\nsnd_headphone_pan_exponent \"2\"\r\nsnd_headphone_pan_radial_weight \"2\"\r\nsnd_legacy_surround \"0\"\r\nsnd_mute_losefocus \"1\"\r\ndsp_enhance_stereo \"1\"\r\ncl_mute_all_but_friends_and_party \"0\"\r\nvoice_enable \"1\"\r\nvoice_caster_enable \"1\"\r\nvoice_caster_scale \"0.3\"\r\nvolume \"0.7\"\r\n \r\n//Mouse\r\nm_rawinput \"1\" \r\nm_mouseaccel1 \"0\"\r\nm_mouseaccel2 \"0\"\r\nm_customaccel \"0\"\r\nzoom_sensitivity_ratio_mouse \"1.0\"\r\n \r\n//Hud\r\nhud_showtargetid \"1\"\r\ncl_showloadout \"1\"\r\ncl_autohelp \"0\"\r\ncl_showhelp \"0\"\r\ncl_showpos \"0\"\r\ncl_showfps \"1\"\r\ncl_righthand \"1\"\r\ncl_hud_bomb_under_radar \"1\"\r\ncl_hud_playercount_showcount \"1\"\r\ncl_teammate_colors_show \"1\"\r\ncl_show_cla |
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
| unbindall | |
| bind "0" "slot10" | |
| bind "1" "slot1" | |
| bind "2" "slot2" | |
| bind "3" "slot3" | |
| bind "4" "use weapon_knife; use weapon_hegrenade;" | |
| bind "5" "slot5" | |
| bind "6" "slot6" | |
| bind "7" "slot7" | |
| bind "8" "slot8" |
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
| unbindall | |
| bind "0" "slot10" | |
| bind "1" "slot1" | |
| bind "2" "slot2" | |
| bind "3" "slot3" | |
| bind "4" "use weapon_knife; use weapon_hegrenade;" | |
| bind "5" "slot5" | |
| bind "6" "slot6" | |
| bind "7" "slot7" | |
| bind "8" "slot8" |
NewerOlder