Skip to content

Instantly share code, notes, and snippets.

View gerardorochin's full-sized avatar

Gerardo Rochín gerardorochin

View GitHub Profile
@gerardorochin
gerardorochin / bootstrap_pagination.php
Created February 20, 2013 01:51
CodeIgniter Pagination Twitter Bootstrap Style
/**
* Pagination Twitter Bootstrap Style
*
* @access private
* @param records per page
* @param current page
* @param total records
* @return string
*/
private function _bootstrap_paginate($rpp='', $page='', $total=0)
@gerardorochin
gerardorochin / serf_members_api.rb
Last active August 29, 2015 14:05
Serf members HTTP API
#!/usr/local/bin/ruby
# -*- mode: ruby -*-
# vi: set ft=ruby :
# encoding: UTF-8
#
# Get all members:
# curl "localhost:3737/api/members"
#
# Get members alive:
# curl "localhost:3737/api/members?status=alive"
ZSH=$HOME/.oh-my-zsh
# Path to your oh-my-zsh configuration.
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"
{
"caret_extra_width": 1,
"caret_style": "phase",
"close_windows_when_empty": false,
"color_scheme": "Packages/Predawn/predawn.tmTheme",
"copy_with_empty_selection": false,
"detect_indentation": true,
"detect_slow_plugins": false,
"drag_text": false,
"draw_minimap_border": true,