Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
| // Generated on 2013-06-03 using generator-webapp 0.2.2 | |
| 'use strict'; | |
| var LIVERELOAD_PORT = 35729; | |
| var lrSnippet = require('connect-livereload')({port: LIVERELOAD_PORT}); | |
| var mountFolder = function (connect, dir) { | |
| return connect.static(require('path').resolve(dir)); | |
| }; | |
| // # Globbing | |
| // for performance reasons we're only matching one level down: |
Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
| <script type="text/ng-template" id="one.html"> | |
| <div>This is first template</div> | |
| </script> | |
| <script type="text/ng-template" id="two.html"> | |
| <div>This is second template</div> | |
| </script> |
| # the admin password for all of the IE VMs is “Password1″ without the quotes, it's also used for the password hints | |
| 1) Install VirtuaBox on your mac | |
| http://download.virtualbox.org/virtualbox/4.1.10/VirtualBox-4.1.10-76795-OSX.dmg | |
| 2) Decide which versions of Internet Explorer you want to download and install – each version of Internet Explorer is contained within a separate virtual machine that runs within VirtualBox. In other words, if you want to run Internet Explorer 7, 8, and 9, you will need to download three separate VM’s, which may take a while so keep that in mind. Select the text below and copy it: | |
| # Install ALL versions of Internet Explorer: IE 7, IE 8, and IE 9 (for now this script will also pull down a IE 6 vm with windows xp) |
| // Ever needed to escape '\n' as '\\n'? This function does that for any character, | |
| // using hex and/or Unicode escape sequences (whichever are shortest). | |
| // Demo: http://mothereff.in/js-escapes | |
| function unicodeEscape(str) { | |
| return str.replace(/[\s\S]/g, function(character) { | |
| var escape = character.charCodeAt().toString(16), | |
| longhand = escape.length > 2; | |
| return '\\' + (longhand ? 'u' : 'x') + ('0000' + escape).slice(longhand ? -4 : -2); | |
| }); | |
| } |
| <target name="-sanitize"> | |
| <apply executable="java" parallel="false" failonerror="true"> | |
| <fileset dir="${SRC_DIR}" casesensitive="yes"> | |
| <include name="**/*.js"/> | |
| </fileset> | |
| <arg line="-jar"/> | |
| <arg path="${RESOURCE_DIR}/rhino.jar"/> | |
| <arg path="${RESOURCE_DIR}/jshint-rhino.jar"/> | |
| </apply> | |
| </target> |
| // Put this file in Program Files\Adobe\Photoshop\Presets\Scripts\ | |
| // In PhotoShop menu File > Automate > Scripts: layersToSprite.js | |
| // Arrange layers into a sprite sheet. | |
| if (documents.length > 0) | |
| { | |
| // -------------------------- | |
| docRef = activeDocument; |