Please see: https://github.com/kevinSuttle/html-meta-tags, thanks for the idea @dandv!
Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/
| // prop - destination key | |
| // value - source key | |
| const entityProps = { | |
| name: 'title', | |
| body: 'description', | |
| day: 'date', | |
| room: 'location', | |
| }; | |
| // transform a destination value |
| // check version | |
| node -v || node --version | |
| // list locally installed versions of node | |
| nvm ls | |
| // list remove available versions of node | |
| nvm ls-remote | |
| // install specific version of node |
| $('#form-selector').submit( function(event) { | |
| event.preventDefault(); | |
| //copy the mailchimp formm action URL, and change "post" parameter to "post-json" | |
| var submitUrl = $(this).data('submit-url'); | |
| $.getJSON( submitUrl+"&c=?", $(this).serialize(), function(data) { | |
| }); | |
| }); |
| module.exports = function(grunt) { | |
| // Project configuration. | |
| grunt.initConfig({ | |
| pkg: grunt.file.readJSON('package.json'), | |
| uglify: { | |
| build: { | |
| //src: ['template/js/libs/*.js', 'template/js/libs/cloudzoom/*.js', 'template/js/crafted.js'], //input |
| <?php | |
| // address to map | |
| $map_address = ""; | |
| $url = "http://maps.googleapis.com/maps/api/geocode/json?sensor=false&address=".urlencode($map_address); | |
| $lat_long = get_object_vars(json_decode(file_get_contents($url))); | |
| // pick out what we need (lat,lng) | |
| $lat_long = $lat_long['results'][0]->geometry->location->lat . "," . $lat_long['results'][0]->geometry->location->lng; |
| <?php | |
| /** | |
| * WordPress Query Comprehensive Reference | |
| * Compiled by luetkemj - luetkemj.com | |
| * | |
| * CODEX: http://codex.wordpress.org/Class_Reference/WP_Query | |
| * Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php | |
| */ | |
| $args = array( |
Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.
open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl
You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html
| The MIT License (MIT) | |
| Copyright (c) James Dennes | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |