Skip to content

Instantly share code, notes, and snippets.

#####################
#...................#
#...................#
#...................#
#...................#
#...................#
#...................#
#...................#
#.........C.C.......#
#..P.....T..T.......#
#!/usr/bin/env ruby
puts %r{ a+ # Some a characters
[0-9]+ # Some numbers
:[0-9] # A colon then a number
}x =~ "aaa23:7"
# This is functionally equivalent puts /a+[0-9]+:[0-9]/ =~ "aaa23:7"
@lxsndl
lxsndl / The Technical Interview Cheat Sheet.md
Last active August 29, 2015 14:28 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@lxsndl
lxsndl / tmux-cheatsheet.markdown
Created November 3, 2015 13:14 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@lxsndl
lxsndl / helloworld
Created January 20, 2016 10:01 — forked from qrohlf/helloworld
Ruby Hello World
  = 1
   =  + 
    =   *  + 
     =    *  
      =
[     *(   +  )+  ,
        =     *    + ,
         =     *    +    -  ,
        ,
        =        +    ,
-----BEGIN PRIVATE KEY-----
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDTTPFwSiVbQMiA
Dv7Hz4fdNTdUWOM/5ek5haG99iqe2D6DQqW6kWVRkFkEoBq0WdHq2jfcuCgFxEDz
EviHtiPX8ZGX59XXacQrUeUtUwVriXf086A6l3grF8NOVOWkMWYadZosPNFQwaf4
O89f4rTusacdzXH/OER62JAY9464ci3LXfyjrFIQGAFYb0YyxA/lWUKvBICNh8TN
XU8XAyzIM30/YQfmA3VbqHcIgLrPSWQO6KK9f9VyTX4705753lLIYc4JgIYGL7TU
I54c272q2cf6rWGIX1PtfVzVv3fdTqPyjAwBCD3Z2zQLaA1P2gCRbpAb4+fBHmrJ
IhT7UcKhAgMBAAECggEAW74xqkaXN6rGI0vfdZP28qXTcyzw5mKFw/LwihEi6jsL
0WQTnxDYA/T/oZF+ZsYE7cp3rL7MqcxPQvr+q7X6lB0P0PvZDiGfCgwRzH8agFl8
mv9Yl3gCtfsoUo9r8cF9Con7Oa/iVgTvUElvvbsqQeUioT79ewnMOeZjkmOSNSSb