#foo bar baz
somecow funk
# custom prompt | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
#PS1="\ncwd: \w \$(parse_git_branch) \n[hostname]$ " | |
PS1="\n\u@\h:\w \$(parse_git_branch) \n ->> " | |
PS2="" | |
export PS1 | |
export EDITOR="TERM=xterm-256color emacsclient -t" | |
export PATH=/home/rjspotter/bin:/home/rjspotter/.local/bin:./bin:$PATH |
-------- Uninstall Beginning -------- | |
Module: r8168 | |
Version: 8.045.08 | |
Kernel: 4.15.0-66-generic (x86_64) | |
------------------------------------- | |
Status: Before uninstall, this module version was ACTIVE on this kernel. | |
r8168.ko: | |
- Uninstallation |
#foo bar baz
somecow funk
function parse_git_branch | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
end | |
function fish_prompt | |
set_color normal | |
echo (whoami)(set_color normal)@(hostname):(pwd) (parse_git_branch) | |
set_color 0C0 | |
echo -n " ->> " | |
set_color DDD |
Given the kind of problem this is I first thought how I would solve it using a functional language. The arity of my theoretical functional solution gives me the instance variables I'm going to need
I played with using attr_accessor vs @instance variable syntax and decided that @instance variable was cleaner (this is debatable)
Write some code, that will flatten an array of arbitrarily nested arrays of integers into a flat array of integers. e.g. [[1,2,[3]],4] -> [1,2,3,4]. | |
Your solution should be a link to a gist on gist.github.com with your implementation. | |
When writing this code, you can use any language you're comfortable with. The code must be well tested and documented if necessary, and in general please treat the quality of the code as if it was ready to ship to production. | |
Try to avoid using language defined methods like Ruby's Array#flatten.* | |
Tested with minitest to run `ruby demo_array_test.rb` with a modern Ruby (no extra deps) |
sudo apt-get install 9menu -y | |
sudo apt-get install abiword -y | |
sudo apt-get install abiword-common -y | |
sudo apt-get install accountsservice -y | |
sudo apt-get install ace-of-penguins -y | |
sudo apt-get install acl -y | |
sudo apt-get install acpi-support -y | |
sudo apt-get install acpid -y | |
sudo apt-get install adduser -y | |
sudo apt-get install adwaita-icon-theme -y |
At AT Media we publish ApartmentTherapy.com and TheKitchn.com. This is our current engineering stack & toolchain as of 2016-03-09.
Our engineering & design teams currently consist of 6 (incredibly talented, friendly & collaborative) engineers (4 senior, 2 junior), 2 web designers, and 1 product manager. We're currently hiring a second product manager and fifth senior developer.
Our team (and much of the company) works remotely. Slack has quickly become our critical communication channel. We make heavy use of Slack integrations including our own bot to manage code deployment & staging environments.
{"1"=>[1453, 140932, 215700, 218905], | |
"2"=>[5234, 47767, 70299, 153993, 191672, 191896, 197553, 221426], | |
"3"=>[34510, 216402], | |
"4"=>[34664], | |
"5"=>[34867], | |
"6"=>[36891, 216141, 220892], | |
"7"=>[63344, 217122], | |
"8"=>[99738, 157073, 165615, 215358, 215866], | |
"9"=>[107747, 204926, 206831, 214818], | |
"10"=>[109266, 143246], |
TB.setLogLevel(5) | |
TB.js.erb:1407 TB.setLogLevel(5) | |
TB.js.erb:1407 OpenTok JavaScript library v2.4.0 | |
TB.js.erb:1407 Release notes: http://www.tokbox.com/opentok/webrtc/docs/js/release-notes.html | |
TB.js.erb:1407 Known issues: http://www.tokbox.com/opentok/webrtc/docs/js/release-notes.html#knownIssues | |
TB.js.erb:1407 OT.setLogLevel(5) | |
carlyle-goldfish:360 GET https://d118tajw24rava.cloudfront.net/images/users/7283/thumb/2395a417b8bc2538cf5c08dda36a0aebrandall.png?1404838372 403 (Forbidden) | |
jquery.js?body=1:7026 GET http://localhost:8080/assets/assets/social/fontawesome-social-webfont.woff | |
carlyle-goldfish:1 GET http://localhost:8080/assets/assets/social/fontawesome-social-webfont.ttf | |
jquery.min.js:2 Uncaught SecurityError: Failed to read the 'contentDocument' property from 'HTMLIFrameElement': Blocked a frame with origin "http://localhost:8080" from accessing a frame with origin "http://assets.zendesk.com". Protocols, domains, and ports must match. |