These notes were update for 10.15 (Catalina)
I use Brew to install libraries and software.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
These notes were update for 10.15 (Catalina)
I use Brew to install libraries and software.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
###Port PHP Functions to Javascript http://phpjs.org/
####Turn icons into a web font http://www.webdesignerdepot.com/2013/04/how-to-turn-your-icons-into-a-web-font/
####Compact CSS Framework http://purecss.io
###Start boot2docker from the command line
boot2docker init
boot2docker up
###Stop boot2docker from the command line
boot2docker stop
boot2docker poweroff
https://github.com/Komodo/KomodoEdit/wiki/138-events-and-notifications
var obsSvc = Components.classes['@mozilla.org/observer-service;1'].getService(Components.interfaces.nsIObserverService);
var listener = {
observe: function(subject, topic, data) {
alert("received observer subject: " + subject);
}
};
obsSvc.addObserver(listener, "application-activated", false);
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
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 |
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
//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){ |