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!
\
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
#!/bin/bash | |
# virtualenv-auto-activate.sh | |
# | |
# Installation: | |
# Add this line to your .bashrc or .bash-profile: | |
# | |
# source /path/to/virtualenv-auto-activate.sh | |
# | |
# Go to your project folder, run "virtualenv .venv", so your project folder | |
# has a .venv folder at the top level, next to your version control directory. |
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
class JsonSerializableMixin(object): | |
def __json__(self, request): | |
""" | |
Converts all the properties of the object into a dict for use in json. | |
You can define the following in your class | |
_json_eager_load : | |
list of which child classes need to be eagerly loaded. This applies | |
to one-to-many relationships defined in SQLAlchemy classes. |
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
var HighResolutionTimer = window.HighResolutionTimer = window.HighResolutionTimer || (function() { | |
var HighResolutionTimer = function(options) { | |
this.timer = false; | |
this.total_ticks = 0; | |
this.start_time = undefined; | |
this.current_time = undefined; |
... or Why Pipelining Is Not That Easy
Golang Concurrency Patterns for brave and smart.
By @kachayev
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
#EXTINF:-1,Nickelodeon | |
http://B29273.cdn.telefonica.com/29273/NICK_SUB.m3u8 | |
#EXTINF:-1,Disney Junior | |
http://B29285.cdn.telefonica.com/29285/DSNJR_SUB.m3u8 | |
#EXTINF:-1,40TV | |
http://B31312.cdn.telefonica.com/31312/40TV_SUB.m3u8 | |
#EXTINF:-1,Disney XD | |
http://B31309.cdn.telefonica.com/31309/DSNYXD_SUB.m3u8 | |
#EXTINF:-1,Canal Cocina | |
http://B31305.cdn.telefonica.com/31305/COCINA_SUB.m3u8 |
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
# A functional FizzBuzz (without any integer modulus or division) in Elixir | |
# https://pragprog.com/magazines/2012-08/thinking-functionally-with-haskell | |
nums = Stream.iterate(1, &(&1 + 1)) | |
fizz = Stream.cycle ["", "", "Fizz"] | |
buzz = Stream.cycle ["", "", "", "", "Buzz"] | |
fizzbuzz = Stream.zip(fizz, buzz) |> Stream.zip(nums) |> Stream.map(fn | |
{{"", "" }, number} -> number | |
{{fizzword, buzzword}, _number} -> fizzword <> buzzword | |
end) | |
fizzbuzz |> Stream.take(100) |> Enum.each(&IO.puts/1) |
Source: Go blog
A couple videos which helped me understand Go's background.
- Go, Open Source, Community — Russ Cox (video) (text)
- How Go Was Made — Andrew Gerrand (video) (slides)
- The Roots of Go — Baishampayan Ghose (video) (slides)
- The Evolution of Go — Robert Griesemer (video) (slides)
Other good Go resources: