Source Tree uses the LineParserJS to parse CSS and SCSS. This is the refactoring I made to improve SASS support.
p = new LineParserJS(self.lang,
['@name,'],
['name {'],
'[\\-*#.a-zA-Z_]' +
List the event listeners added to an object using JQUERY:
$._data($('selector')[0],'events');
//A Basic Build Tool | |
function run(){ | |
var p = binder.ko.projectGetPath(); | |
if ( p.length <= 0) return; | |
var pd = binder.ko.pathJoin(p, "config.build.js"); | |
//alert(pd); | |
var ok = binder.ko.pathExists(pd); | |
if(!ok){ |
Convert files to PDF
for line in $(ls SHCDRROP*); do cupsfilter -o landscape -o media=legal -o PageSize=legal -o fitplot=true $line > ~/COHORT_REPORTS/${line}.pdf 2> /dev/null; done
My list of commonly used sites for web development
Tool | Address |
---|---|
Create Data URLs | http://dataurl.net/#about |
Desktop Browser Compatibility Tables For DOM Events | http://www.webbrowsercompatibility.com |
Can I Use | http://caniuse.com/ |
PHP Composer repository | https://packagist.org |
You can run the JavaScriptCore Framework from the CLI to run javascript code.
All we have to do is create an alias to access the jsc binary easily from the CLI.
sudo ln -s /System/Library/Frameworks/JavaScriptCore.framework/Versions/Current/Resources/jsc /bin/jsc
To see the CLI options available visit the WebKit wiki. http://trac.webkit.org/wiki/JSC