This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** EXAMPLE 1 | |
---------------------------------------- **/ | |
/* LESS */ | |
.museo,h1,h2,h3 { | |
font-family:"Museo",sans-serif; | |
} | |
.nav { | |
/* some css */ | |
&:extend(.museo); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# from repo root foder | |
git update-index --assume-unchanged <file> | |
# or | |
git update-index --no-assume-unchanged <file> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function get_excerpt_stripped($char_limit = NULL) | |
{ | |
$this->_CI->load->helper('text'); | |
$excerpt = (empty($this->excerpt)) ? $this->content : $this->excerpt; | |
// must strip tags to get accruate character count | |
$excerpt = strip_tags($excerpt); | |
if (!empty($char_limit)) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// http://placehold.it | |
function placeholdit($width = 100, $height = '', $text = '', $colors = '') | |
{ | |
$dimentions = $width.( !empty($height) ? 'x'.$height : ''); | |
$text = !empty($text) ? '&text='.urlencode($text) : ''; | |
$colors = !empty($colors) ? explode(' ', $colors) : ''; | |
$colors = !empty($colors) ? '/'.$colors[0].'/'.$colors[1] : ''; | |
return 'http://placehold.it/'.$dimentions.$colors.$text; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Returns an array of arrays. | |
* | |
* $array - an array to be divided | |
* $groups - number of groups to divide the array into | |
*/ | |
function array_group($array, $groups) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Goes in codeigniter/libraries | |
if (!defined('BASEPATH')) | |
exit('No direct script access allowed'); | |
class Numbertowords { | |
function convert_number($number) { | |
if (($number < 0) || ($number > 999999999)) { |
NewerOlder