<flag-icon country="nl"></flag-icon>
class FlagIcon extends HTMLElement {
constructor() {
super();
List the event listeners added to an object using JQUERY:
$._data($('selector')[0],'events');
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
//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
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);