Show hidden folders and files on MacOS
defaults write com.apple.finder AppleShowAllFiles true; killall Finder
xcode-select --install
defaults write com.apple.finder AppleShowAllFiles true; killall Finder
xcode-select --install
| isUser(uid) = auth != null && auth.uid == uid; | |
| type Post { | |
| uid: String; | |
| title: String; | |
| description: String; | |
| timestamp: Number; | |
| } | |
| type User { |
| // requires jQuery or similar | |
| function parseFormToJSON (pcSelector) { | |
| var aFieldsArray = $(pcSelector).serializeArray(), | |
| oJSON = {}, | |
| i = 0; | |
| for (i = 0; i < aFieldsArray.length; i++) { | |
| oJSON[aFieldsArray[i].name] = aFieldsArray[i].value; | |
| } | |
| var http = require("http"), | |
| url = require("url"), | |
| path = require("path"), | |
| fs = require("fs") | |
| port = process.argv[2] || 8888; | |
| http.createServer(function(request, response) { | |
| var uri = url.parse(request.url).pathname | |
| , filename = path.join(process.cwd(), uri); |
| function extend(base) { | |
| var parts = Array.prototype.slice.call(arguments, 1); | |
| parts.forEach(function (p) { | |
| if (p && typeof (p) === 'object') { | |
| for (var k in p) { | |
| if (p.hasOwnProperty(k)) { | |
| base[k] = p[k]; | |
| } | |
| } | |
| } |
| <link rel="import" href="../core-icon-button/core-icon-button.html"> | |
| <link rel="import" href="../core-icons/core-icons.html"> | |
| <link rel="import" href="../core-icon/core-icon.html"> | |
| <polymer-element name="my-element"> | |
| <template> | |
| <style> | |
| :host { | |
| position: absolute; |
| // source: http://javascriptweblog.wordpress.com/2011/05/31/a-fresh-look-at-javascript-mixins/ | |
| function extend(destination, source) { | |
| for (var k in source) { | |
| if (source.hasOwnProperty(k)) { | |
| destination[k] = source[k]; | |
| } | |
| } | |
| return destination; | |
| } |
| // Filter and export site's listing data | |
| // columns: 'Domain', 'Parent Theme', 'Bootstrap', 'Mobile Version', 'Data Integration' | |
| if (jQuery('body').hasClass('sites-php')) { | |
| var aCSVData = [], cOutput = '', cURI = ''; | |
| jQuery('#the-list tr:not(.site-deleted)').each(function () { | |
| var aTMP = [], cTMP = '', cTMP2 = ''; | |
| cTMP = jQuery('.blogname a', this).html().replace(/"/g, '""'); |
| function createCORSRequest (poMethod, pcURL) { | |
| var oXHR = new XMLHttpRequest(); | |
| if ('withCredentials' in oXHR) { | |
| // Check if the XMLHttpRequest object has a "withCredentials" property. | |
| // "withCredentials" only exists on XMLHTTPRequest2 objects. | |
| oXHR.open(poMethod, pcURL, true); | |
| } else if (typeof XDomainRequest != 'undefined') { | |
| // Otherwise, check if XDomainRequest. | |
| // XDomainRequest only exists in IE, and is IE's way of making CORS requests. |