Skip to content

Instantly share code, notes, and snippets.

<?php
class Status extends MY_Controller {
function Status() {
parent::MY_Controller();
$this->load->model('Status_model');
function get_database_quantity($id) {
$db_quantity = $this->Database_model->get_from_organization_by_id($id);
We couldn’t find that file to show.
<?php
class Status extends MY_Controller {
function Status() {
parent::MY_Controller();
$this->load->model('Status_model');
}
function index() {
<?php
class Status extends MY_Controller {
function Status() {
parent::MY_Controller();
$this->load->model('Status_model');
}
function index() {
@fholgado
fholgado / gist:736363
Created December 10, 2010 15:50
MiniBufExpl Feature Suggestion
Anyways, I think the only issue with this otherwise great plugin is that you don't have an indication of what buffer your cursor is currently active in. See the following screenshot for an example:
http://fhl.gd/mhM
I have 2 buffers open in a split, and as expected, both buffers are shown as "MBEVisibleNormal" defined in the plugin. It would be great if we could have a color property in the plugin to be something like "MBEVisibleNormalActive", so that we can define a color for a buffer which contains the active cursor.
I am assuming we would need an "Active" category for each of the states defined now:
hi def link MBENormal Comment
hi def link MBEChanged String
@fholgado
fholgado / .tmux.conf
Created March 6, 2012 01:37
Show iTunes current track/song in tmux
# Custom status bar
# # Powerline symbols: ⮂ ⮃ ⮀ ⮁ ⭤
set -g status-left-length 32
set -g status-right-length 150
set -g status-interval 5
set -g status-left '#[fg=colour16,bg=colour254,bold] #S #[fg=colour254,bg=colour234,nobold]⮀'
set -g status-right '#[fg=colour245]⮃ %R ⮃ %d %b #[fg=colour254,bg=colour234,nobold]#(~/Documents/AppleScripts/itunes-current-track-tmux.sh)⮂#[fg=colour16,bg=colour254,bold] #h '
# set -g status-right '#(~/Documents/AppleScripts/itunes-current-track-tmux.sh)'
set -g window-status-format "#[fg=white,bg=colour234] #I #W "
set -g window-status-current-format "#[fg=colour234,bg=colour39]⮀#[fg=colour16,g=colour39,noreverse,bold] #I ⮁ #W #[fg=colour39,bg=colour234,nobold]⮀"
@fholgado
fholgado / index.js.coffee
Created March 19, 2012 18:52
Load all models before instantiating app
# Let's get all the data first
query_params =
data: {page: 1}
processData: true
new_request: true
App.Email.fetch(query_params)
App.User.fetch()
App.Rule.fetch()
App.PopAccount.fetch()
@fholgado
fholgado / root_controller.js.coffee
Created June 18, 2012 18:32
Fix routing for substacks
class App.Root extends Spine.Stack
controllers:
feeds: App.Feeds
routes:
'/feeds' : 'feeds'
className: 'stack root'
constructor: ->
@fholgado
fholgado / index.js.coffee
Created June 25, 2012 15:39
Spine.js preloader logic
class App extends Spine.Controller
@extend(Spine.Events)
constructor: ->
super
# Initialize cache object
App.cache = {} unless App.cache?
@fholgado
fholgado / index.html
Created March 13, 2013 19:47
A CodePen by Federico Holgado.
<nav id="btns">
<a href="#" class="next">Next</a>
</nav>