These instructions will set up local-npm so that it runs as a launch daemon, meaning that it will start up whenever you log in.
First, install local-npm
and pm2
:
npm install -g local-npm
<script> | |
Polymer({ | |
is: 'observe-array-length', | |
properties: { | |
myArray: { | |
type: Array, | |
value: [] | |
} | |
}, | |
cat ~/.ssh/id_rsa.pub | ssh <user>@<host> "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys" && echo "done." |
alias youtube-dl-playlist="youtube-dl --ignore-errors --output '%(playlist)s/%(playlist_index)s- %(title)s.%(ext)s'" |
git log -1 --format="%H" | xclip -selection clipboard |
<?php | |
add_filter('redirect_post_location', 'redirect_to_add_new_post_on_publish_or_save'); | |
function redirect_to_add_new_post_on_publish_or_save(){ | |
if (isset($_POST['save']) || isset($_POST['publish'])) { | |
$pl = get_admin_url('', 'post-new.php'); | |
if ($pl) { | |
wp_redirect($pl); | |
} |
These instructions will set up local-npm so that it runs as a launch daemon, meaning that it will start up whenever you log in.
First, install local-npm
and pm2
:
npm install -g local-npm
var hyd = require('hydrolysis'); | |
hyd.Analyzer.analyze('app/elements/elements.html') | |
.then(function(analyzer) { | |
// console.log(analyzer.elements); // A list of all elements the Analyzer has metadata for. | |
console.log('Total elements: ' + analyzer.elements.length); | |
}); |
# Compiler Error | |
error /ERROR/ | |
# Compiler Warning | |
warning /WARNING/ | |
# Compiler Info | |
info /INFO/ | |
# Start Build Step |
options("/*", | |
(request, response) -> { | |
String accessControlRequestHeaders = request | |
.headers("Access-Control-Request-Headers"); | |
if (accessControlRequestHeaders != null) { | |
response.header("Access-Control-Allow-Headers", | |
accessControlRequestHeaders); | |
} |
# Unity generated | |
Temp/ | |
Library/ | |
# Visual Studio / MonoDevelop generated | |
ExportedObj/ | |
obj/ | |
*.svd | |
*.userprefs | |
/*.csproj |