Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View andreis's full-sized avatar

andreis

View GitHub Profile
@andreis
andreis / keymap.cson
Last active August 29, 2015 14:27
A minimal keybinding setup for Atom on OS X
'atom-text-editor':
'alt-left': 'editor:move-to-previous-subword-boundary'
'alt-right': 'editor:move-to-next-subword-boundary'
'alt-delete': 'editor:delete-to-end-of-subword'
'alt-d': 'editor:delete-to-end-of-subword'
'alt-backspace': 'editor:delete-to-beginning-of-subword'
'alt-delete': 'editor:delete-to-end-of-subword'
'alt-shift-left': 'editor:select-to-previous-subword-boundary'
'alt-shift-right': 'editor:select-to-next-subword-boundary'
'alt-up': 'editor:move-to-beginning-of-previous-paragraph'
http://rephial.org/
https://sites.google.com/site/broguegame/
https://crawl.develz.org/
http://www.adom.de/home/downloads.html
http://www.nethack.org/
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDGodgeSLHHt+spcgvpGNYNqfwAcKMTf+JYitp1a21pdQsaTwrfMUKns3BtMc4Qwl/joVbJFO1qnM5up1oxDpR9qpIPjOmP3wRGUXHK0wLpnB/YZVRY/q9KfrULENM1do818yU7nferWfPfGQ/iHDxzuGX6GTXdyMS+hAnvyLa59AJ/HdX7aUd7ZEnLeckdtprwgP8xqOYLhsjmcRy3Oq8VvFjx7MVev3GVInV8+J25hcbWTqOHTzZRmJtRNb3vYjCqNT2RYtfPQG8QoqP1gJJVWhvFk0Cwn25B27lDMmAiU+/1eykGWiUBIddDWrjmDNAcercQto9qb7kl3e25rHLl ansimionescu@gmail.com
@andreis
andreis / article.md
Last active March 15, 2016 15:49
Web content extraction
Key translations Starting With C-x:
key binding
--- -------
C-x 8 iso-transl-ctl-x-8-map
C-x 8 SPC †
C-x 8 ! °
C-x 8 " Prefix Command
C-x 8 $ §
youdontknowjs grip out.md
* Running on http://localhost:6419/ (Press CTRL+C to quit)
* Downloading style https://assets-cdn.github.com/assets/frameworks-be4c6e0e479a2d4d0eb3159c8772b5bfc4aa39831cb28f5f92cc2e448d93eaa1.css
* Downloading style https://assets-cdn.github.com/assets/github-cafce9070920fab83a8c1b7df81cfa66d3ca70cdea6d05f18674f6bf5b22f046.css
* Downloading style https://assets-cdn.github.com/assets/site-c31d97cdffdd1a140b356a16a2e2b37db7c98fa23ce2127f79a61bc338af1083.css
* Cached all downloads in /Users/andrei/.grip/cache-4.3.2
[2016-08-11 08:04:06,784] ERROR in app: Exception on / [GET]
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1988, in wsgi_app
response = self.full_dispatch_request()

Keybase proof

I hereby claim:

  • I am andreis on github.
  • I am andreisimionescu (https://keybase.io/andreisimionescu) on keybase.
  • I have a public key whose fingerprint is EF43 1336 9046 F771 6A5C 76F3 0EFC 686D F0FF 31A4

To claim this, I am signing this object:

function shuffle(arr) {
if (!Array.isArray(arr)) { throw "need an array as input"; }
if (arr.length < 2) { return arr; }
var pick = Math.floor(Math.random() * (arr.length));
var tmp = arr[pick]; arr[pick] = arr[0]; arr[0] = tmp;
return [arr[0]].concat(shuffle(arr.slice(1)));
}
shuffle([1,2,3,4,5])
@andreis
andreis / soma.txt
Last active May 22, 2018 16:15
Soma Radio iTunes Playlist
Name Artist Composer Album Grouping Work Movement Number Movement Count Movement Name Genre Size Time Disc Number Disc Count Track Number Track Count Year Date Modified Date Added Bit Rate Sample Rate Volume Adjustment Kind Equalizer Comments Plays Last Played Skips Last Skipped My Rating Location sonicuniverse-192-mp3 11/1/16, 1:44 PM 192 44100 Internet audio stream 1 11/1/16, 1:44 PM http://ice1.somafm.com/sonicuniverse-192-mp3 beatblender-128-aac 11/1/16, 1:45 PM 44100 Internet audio stream 1 11/1/16, 1:45 PM http://ice1.somafm.com/beatblender-128-aac suburbsofgoa-128-mp3 11/1/16, 1:45 PM 128 44100 Internet audio stream 1 11/1/16, 1:45 PM http://ice1.somafm.com/suburbsofgoa-128-mp3 thetrip-128-mp3 11/1/16, 1:46 PM 128 44100 Internet audio stream 1 11/1/16, 1:46 PM http://ice1.somafm.com/thetrip-128-mp3 7soul-128-aac 11/1/16, 1:48 PM 44100 Internet audio stream 1 11/1/16, 1:48 PM http://ice1
// https://leetcode.com/problems/invert-binary-tree
/**
* Definition for a binary tree node.
* type TreeNode struct {
* Val int
* Left *TreeNode
* Right *TreeNode
* }
*/
func invertTree(root *TreeNode) *TreeNode {