Skip to content

Instantly share code, notes, and snippets.

class userModel extends userDefinition{
public function hasPermission($permId) {
//setup initial return vars
$roleHasPermission = false;
$userHasPermission = false;
//if we weren't passed a specific permission Id
//lets look it up
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
GIT_PS1_SHOWDIRTYSTATE=1
export GIT_PS1_SHOWDIRTYSTATE
GIT_PS1_SHOWSTASHSTATE=1
export GIT_PS1_SHOWSTASHSTATE
GIT_PS1_SHOWUNTRACKEDFILES=1
export GIT_PS1_SHOWUNTRACKEDFILES
. /etc/bash_completion.d/git
<<<<<<< HEAD
// try loading session from signed_request in $_REQUEST
$signedRequest = $this->getSignedRequest();
if ($signedRequest) {
// sig is good, use the signedRequest
$session = $this->createSessionFromSignedRequest($signedRequest);
}
=======
// try loading session from signed_request in $_REQUEST
$signedRequest = $this->getSignedRequest();
" Highlight trailing white space in command mode
highlight ExtraWhitespace ctermbg=red guibg=red
au ColorScheme * highlight ExtraWhitespace guibg=red
au BufEnter * match ExtraWhitespace /\s\+$/
au InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
au InsertLeave * match ExtraWhiteSpace /\s\+$/
"fix whitespace on write
autocmd FileType vim,perl,c,cpp,python,ruby,java autocmd BufWritePre <buffer> :%s/\s\+$//e
@aaronstaves
aaronstaves / README.md
Created August 21, 2013 18:48
Movies for AT
  • Barry Gordy's The Last Dragon
Meastr caelnse fnnay pcak svaila, bfreoe tehy slod out drmetccahear totteoad bttiers Autisn nrawahl Tffuarut enhtic cerd kscith chlvlaiwe fuor lkoo. Bnah mi Baskny aaistrn Mfara prok blely bekspoe. XXOO Nutrea sbbahy cihc, keyatr opuccy Auistn food tucrk tleosud qniuoa PBR&B 90's Wlisibmularg solw-crab Amaiecrn Aaerppl 8-bit. Mpatxie cerd dhcaarceetmr, food turck whateevr aulaltcy betirts ciha psot-iiornc leltailry chlice kfeieyfh. Bread crfat beer chcurh-key Wes Adoersnn autlacly Trery Ridrohcasn Hgih Lfie, cadrigan snliuatabse pilad whetaver hllea sielfes vnyil. Nmorcore hioode gefitrny, Wes Areonsdn lo-fi fxiie kgoi. Byclcie rghtis MeecSwney's snyth deep v, reaydmdae mkhlsk jaen strhos.
Soehticrdh pug Cbsoy saeetwr, cerd Hgih Lfie fecgsranihte mutschae wraayrfes Trrey Rhcairdosn. Fiirtxleaan Wes Aedorsnn aeacirmtsyml nxet leevl meh pohto btooh. Slefeis dercit trdae VHS Amaicren Aeppral wrafreays, pickeld ionry prok blley stalnbiuase eunni bnruch put a brid on it bhutcer deep v. Put a brid on it kgoi attn
Tables
question
question_data
question_version
Class - File
MySchema::Result::Question - MySchema/Result/Question
MySchema::Result::QuestionVersion - Module does not exist
MySchema::Result::QuestionData - Module does not exist
{
"image_id_abc": {
"properties": [
"a",
"b",
"c"
]
},
"image_id_def": {
"properties": [
@aaronstaves
aaronstaves / gist:eca5dd4b692f6cfb34b9
Created August 4, 2014 22:01
JIRA branch names commit hooks
#!/bin/bash
line=`head -n 1 "$1"`
if [[ ${#line} == 0 ]]
then
echo "No commit message, commit aborted"
exit -1
else
exit 0
PORT=8081 \
bin/hubot -a irc --name hubot