Skip to content

Instantly share code, notes, and snippets.

View apod's full-sized avatar

Alex Podaras apod

View GitHub Profile
@apod
apod / core.clj
Last active June 17, 2016 12:21
Parse project.clj dependencies from top clojure projects in Github
(ns github-dependencies.core
(:require [clojure.string :as str]
[clj-http.client :as http]))
(def github-search-url "https://api.github.com/search/repositories")
(def github-projects-data
(:body
(http/get github-search-url
{:query-params {:q "language:clojure"
@apod
apod / rails_console_tips.rb
Created December 20, 2012 22:21
Rails: Console Tips
# _ last return value
[1, 2, 3]
a = _
# avoid return value
a = (1..100000).to_a; nil
# reloading the console
reload!
@apod
apod / gist:1208284
Created September 10, 2011 13:03
AppleScript: Resize application
tell application (path to frontmost application as Unicode text)
activate
-- Place the application on top left corner with size 1024x768
set bounds of window 1 to {0, 0, 1024, 768}
end tell
@apod
apod / gist:415231
Created May 26, 2010 23:44
Vim: Move line up/down
" Mappings for moving lines up and down in all modes.
nmap <C-j> :m+<CR>
imap <C-j> <Esc>:m+<CR>
vmap <C-j> :m'>+<CR>gv
nmap <C-k> :m-2<CR>
imap <C-k> <Esc>:m-2<CR>
vmap <C-k> :m-2<CR>gv
@apod
apod / gist:252127
Created December 9, 2009 00:32
ZSH: History search with up/down arrow keys
bindkey '^[[A' history-beginning-search-backward
bindkey '^[[B' history-beginning-search-forward