Skip to content

Instantly share code, notes, and snippets.

View tonycosentini's full-sized avatar
🍕

Tony Cosentini tonycosentini

🍕
View GitHub Profile
@tonycosentini
tonycosentini / .vimrc
Created May 31, 2012 14:28
Safari Reload Vim Plugin
autocmd BufWriteCmd *.html,*.css,*.gtpl :call Refresh_safari()
function! Refresh_safari()
if &modified
write
execute "silent ! osascript ~/.vim/applescript/reload_safari.applescript"
endif
endfunction
http://twitter.com/statuses/user_timeline.json?screen_name=mindsnacks
@tonycosentini
tonycosentini / hack.sh
Created December 6, 2012 06:57 — forked from amrox/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/4222316/hack.sh | sh
#
@tonycosentini
tonycosentini / RxJava.java
Created April 18, 2017 21:06
Retrofit bug
public class RxJava {
public static void main(String[] args) {
Retrofit retrofit = new Retrofit.Builder()
.baseUrl("https://google.com/")
.addCallAdapterFactory(RxJavaCallAdapterFactory.createAsync())
.build();
Service service = retrofit.create(Service.class);