Skip to content

Instantly share code, notes, and snippets.

View devsigner's full-sized avatar

Cedric Darricau devsigner

  • France
View GitHub Profile
@devsigner
devsigner / hack.sh
Created March 31, 2012 12:15 — forked from erikh/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/2108403/hack.sh | sh
#
@devsigner
devsigner / rbenv-install-system-wide.sh
Created March 28, 2012 09:52 — forked from v1nc3ntlaw/rbenv-install-system-wide.sh
rbenv install ruby 1.9.3-p125 on Debian 6 Squeeze
# Update, upgrade and install development tools:
apt-get update
apt-get -y upgrade
apt-get -y install build-essential git-core curl libssl-dev \
libreadline5 libreadline5-dev \
zlib1g zlib1g-dev \
libmysqlclient-dev \
libcurl4-openssl-dev \
libxslt-dev libxml2-dev
@devsigner
devsigner / ovhfact.rb
Created January 20, 2012 23:02 — forked from solisoft/ovhfact.rb
OVH Invoices
#!/usr/bin/ruby
# Require:
# - linux or Mac
# - ruby 1.8.7
# - Gem soap4r
# - curl
#
# Usage :
# ruby ovhfact.rb 2011
#
@devsigner
devsigner / index.js.erb
Created December 17, 2011 21:16 — forked from ryanb/index.js.erb
Infinite scrolling solution covered in revised episode #114: http://railscasts.com/episodes/114-endless-page-revised
$('#products').append('<%= j render(@products) %>');
<% if @products.next_page %>
$('.pagination').replaceWith('<%= j will_paginate(@products) %>');
<% else %>
$('.pagination').remove();
<% end %>
@devsigner
devsigner / gist:1490395
Created December 17, 2011 14:48
sass Buttons sample
/* **** BUTTON TEMPLATE *****
<a href="#" class="button orange">
<span class="corner_left"></span>
<span class="corner_right">
<span class="text">Connexion</span>
</span>
</a>
*/
@devsigner
devsigner / gist:1490392
Created December 17, 2011 14:46
Button CSS
/* TEMPLATE HTML
<a href="#" class="button orange">
<span class="corner_left"></span>
<span class="corner_right">
<span class="text">Connexion</span>
</span>
</a>
TEMPLATE IMAGE
<##
@devsigner
devsigner / config.ru
Created April 8, 2011 20:28
use rack with rails 2.3.8
# use rack with rails 2.3.8
# config.ru
require "config/environment"
use Rails::Rack::LogTailer
use Rails::Rack::Static
run ActionController::Dispatcher.new