Use these rapid keyboard shortcuts to control the GitHub Atom text editor on macOS.
Key to the Keys
- ⌘ : Command key
- ⌃ : Control key
- ⌫ : Delete key
- ← : Left arrow key
- → : Right arrow key
- ↑ : Up arrow key
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
(function() { | |
var CSSCriticalPath = function(w, d, opts) { | |
var opt = opts || {}; | |
var css = {}; | |
var pushCSS = function(r) { | |
if(!!css[r.selectorText] === false) css[r.selectorText] = {}; | |
var styles = r.style.cssText.split(/;(?![A-Za-z0-9])/); | |
for(var i = 0; i < styles.length; i++) { | |
if(!!styles[i] === false) continue; | |
var pair = styles[i].split(": "); |
/** | |
* Simple node_acl example with mongoDB and expressjs | |
* | |
* Usage: | |
* 1. Start this as server | |
* 2. Play with the resoures | |
* | |
* Show all permissions (as JSON) | |
* http://localhost:3500/info | |
* |
// Paper.js Ruler object. | |
// Creates a ruler of the specified dimensions using paper.js | |
function Ruler(params) { | |
// Length of the ruler (px) | |
this.lengthOfRuler = params.lengthOfRuler; | |
// Space between ticks (px) | |
this.tickSpacing = params.tickSpacing; | |
// Show the number on the [nth] tick | |
this.numOnTick = params.numOnTick; | |
// Tick height (px) |
Use these rapid keyboard shortcuts to control the GitHub Atom text editor on macOS.
Save this file as ai2svg
, make it executable via chmod +x ai2svg
then run it optionally passing the folder to look for.
It will convert in that folder, or the current one, all .ai files into .svg
#!/usr/bin/bash
createsvg() {
local margin="$1"
local d
#!/bin/bash | |
set -e | |
##################### | |
# Inkscape Install # | |
##################### | |
# Script installs Inkscape from source for Amazon AMI Instance (CentOS/REHL) | |
# | |
# Works as of 01/03/2016 |
// Get height of window and set an offset from bottom | |
var winHeight = $(window).height(); | |
var offset = 50; | |
// Recalc height of window in case of resize | |
$(window).bind('resizeEnd', function() { | |
winHeight = $(window).height(); | |
}); | |
// When we scroll we do some checks... |
<f:form class="searchbox form-inline" | |
pageUid="{pidSearch}" | |
method="post" | |
noCacheHash="true" | |
absolute="0" | |
action="search" | |
extensionName="IndexedSearch" | |
pluginName="pi2" | |
controller="Search" | |
> |