This file contains hidden or 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
import * as React from 'react'; | |
interface Open { | |
isOpen: true; | |
selectedIndex: number; | |
} | |
interface Closed { | |
isOpen: false; | |
selectedIndex: null; |
This file contains hidden or 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
source ~/.git-flow-completion.sh | |
export TERM=xterm-16color | |
source /etc/bash_completion.d/git | |
GIT_PS1_SHOWDIRTYSTATE=true | |
# colours | |
local black='\[\033[8;30m\]' | |
local red='\[\033[0;31m\]' | |
local green='\[\033[0;32m\]' |
This file contains hidden or 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
<snippet> | |
<content><![CDATA[ | |
\$defaultViewFacade = new Succeed_Web_DefaultView('${1:SECTION} ${2:SUBSECTION} ${3:PAGE}', '${4:TITLE}'); | |
echo \$defaultViewFacade->render(); | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>defaultv</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<!-- <scope>source.python</scope> --> |
This file contains hidden or 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 | |
if [ "$1" == "" ]; then | |
echo -e "\e[00;32mPlease specify a JavaScript file to check." | |
exit 1 | |
fi | |
git rev-parse --git-dir 1>/dev/null 2>&1 | |
if [ $? != 0 ]; then | |
echo -e "\n\033[00;41;30mYou are not in a git repository.\033[00m\n" | |
exit 1 |
This file contains hidden or 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
<snippet> | |
<content><![CDATA[ | |
Josh's Update ${1:DATE} | |
=========================== | |
<< Previous | |
+ ${2} | |
Today >> | |
+ ${3} |
This file contains hidden or 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
{ | |
"cmd": ["coffee","-c","$file"], | |
"file_regex": "^(...*?):([0-9]*):?([0-9]*)", | |
"selector": "source.coffee", | |
"windows": | |
{ | |
"cmd":["coffee.cmd"] | |
} | |
} |
This file contains hidden or 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
# These files are ignored by git | |
# App Configuration # | |
##################### | |
.htaccess | |
/config/ | |
/core/config/config.xml | |
/wk12/includes/configuration.php | |
/wk12/district/course-planner/index.php | |
/includes/naviance_network_class.php |
This file contains hidden or 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
{ | |
// Settings | |
"passfail" : false, // Stop on first error. | |
"maxerr" : 100, // Maximum error before stopping. | |
// Predefined globals whom JSHint will ignore. | |
"browser" : true, // Standard browser globals e.g. `window`, `document`. | |
"node" : false, |
This file contains hidden or 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
// When the final report checkbox is clicked | |
$('table.detailed input[type="checkbox"].final-report').click(function() { | |
// Find the associated optional and midyear report checkboxes | |
var $opt_mid = $this.parents('table.detailed').children('input[type="checkbox"]').filter('.optional-report, .midyear-report'); | |
// If the final report checkbox is checked | |
if ( $(this).is(':checked') ) { | |
// For each optional/midyear checkbox |
This file contains hidden or 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
// JavaScript Document | |
//console fix for IE or other browsers that don't have a console | |
if(typeof(console)!='undefined'){ | |
//console exists, do nothing | |
} else { | |
//console doesn't exist, create it and create console.log | |
var console=new Object(); | |
console.log=function(o){ | |
//window.status=o.toString(); | |
} |
NewerOlder