Skip to content

Instantly share code, notes, and snippets.

View josemarluedke's full-sized avatar

Josemar Luedke josemarluedke

View GitHub Profile
@josemarluedke
josemarluedke / README.md
Last active August 29, 2015 13:55
Github Issue to Pull-request
@josemarluedke
josemarluedke / gist:7684953
Created November 27, 2013 23:35
Disable responsive from foundation 4
.row
width: 100%
max-width: 62.5em
min-width: 62.5em
.row, .row .row
width: auto
margin-left: -0.9375em
margin-right: -0.9375em
margin-top: 0
@josemarluedke
josemarluedke / gist:6440351
Created September 4, 2013 17:51
Pushing specific tags to Heroku
$ git tag -a v1.1
$ git push heroku v1.1^{}:master
@josemarluedke
josemarluedke / gist:5881143
Created June 27, 2013 22:57
Install and create user on PostgreSQL
$ sudo apt-get install postgresql libpq-dev postgresql-contrib
$ sudo -u postgres createuser desired_user
$ cd /etc/init.d/
$ sudo -u postgres psql template1
template1=# ALTER USER desired_user WITH PASSWORD 'desired_password';
@josemarluedke
josemarluedke / README.md
Last active December 18, 2015 03:38
Default README.md file for Rails projects

Project name

Project description...

Development environment

Make sure you have installed Ruby 2.0.0.

Then just checkout the code, configure dependencies and run the tests:

@josemarluedke
josemarluedke / post-commit
Created May 7, 2013 20:22
Git hook for taking picture on commit
#!/usr/bin/env ruby
file="~/Drive/.gitshots/#{Time.now.to_i}.jpg"
unless File.directory?(File.expand_path("../../rebase-merge", __FILE__))
puts "Taking capture into #{file}!"
system "imagesnap -q -w 3 #{file} &"
end
exit
@josemarluedke
josemarluedke / .vimrc.local
Last active December 16, 2015 18:09
.vimrc.local
if has("gui_running")
color peacock
else
color railscasts
endif
Tasker.Projects = {} if Tasker.Projects is undefined
Tasker.Projects.Show = ->
$('.new-task-button').click ->
url = $(this).data('url')
$.ajax
url: url
type: "GET"
success: (data)->
$('#newTask .modal-body').html(data)
#= require_self
#= require_tree .
window.Tasker =
Common:
initPage: ->
# If you're using the Turbolinks and you need run a code only one time, put something here.
# if you're not using the turbolinks, there's no difference between init and initPage.
# toggle links