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
#!/usr/bin/env bash | |
# | |
# Source this file in your ~/.bash_profile or interactive startup file. | |
# This is done like so: | |
# | |
# [[ -s "$HOME/.rvm/contrib/ps1_functions" ]] && | |
# source "$HOME/.rvm/contrib/ps1_functions" | |
# | |
# Then in order to set your prompt you simply do the following for example |
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
export WIBBLE=woo |
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
# Add this file to your Sublime Packages/User folder | |
import sublime | |
import sublime_plugin | |
import re | |
import os | |
class FindInFilesGotoCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
view = self.view | |
if view.name() == "Find Results": |
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 | |
# root repo folder | |
REPOROOT="$HOME/Projects" | |
# folder search glob | |
REPOGLOB="cozy[-_]*" | |
OUTDATA="" | |
fetch_msg="Fetching.." |
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
#222222,#2F2F2F,#F92772,#FFFFFF,#A6E22D,#FFFFFF,#66D9EF,#BE84F2 |
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
Show hidden characters
{ | |
"additional_path_items": | |
[ | |
"/usr/local/Cellar/git/2.1.2/libexec/git-core" | |
], | |
"animation_enabled": false, | |
"binary_file_patterns": | |
[ | |
"*.jpg", | |
"*.jpeg", |
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
[ | |
// Simplify command pallet | |
{ | |
"keys": ["super+p"], "command": "show_overlay", | |
"args": {"overlay": "command_palette"} , | |
"context": [ { "key": "overlay_visible", "operand": false } | |
}, | |
// Join lines |
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 | |
// 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 | |
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)) | |
{ |
OlderNewer