I hereby claim:
- I am jweaver on github.
- I am jweaver (https://keybase.io/jweaver) on keybase.
- I have a public key whose fingerprint is 6B9C 40C2 1408 97F2 2588 93EC E924 F32C 8AA4 6955
To claim this, I am signing this object:
var myApp = angular.module('myApp', []); | |
myApp.directive('repository', function() { | |
return { | |
restrict: 'C', | |
scope: { | |
owner: '@repoOwner', | |
name: '@repoName' | |
}, | |
link: function(scope, element, attrs, controller) { | |
//attach to 'repoOwner' due to ordering of attributes in element. TODO: Is there a better way? |
var engineer = { name: 'Joe Sixpack', salary: 50 }; | |
var interceptor = { | |
set: function (receiver, property, value) { | |
console.log(property, 'is changed to', value); | |
receiver[property] = value; | |
} | |
}; | |
engineer = Proxy(engineer, interceptor); |
$ perl -pi -e '<some replacement regular expression>' <file or files> | |
# Example | |
$ perl -pi -e 's/src/build/g' * |
gpg -ea -r {pgp-email-address-here} -o {encrypted-file-name-output} {input-file-to-encrypt} |
I hereby claim:
To claim this, I am signing this object:
/** | |
* @OnlyCurrentDoc Limits the script to only accessing the current spreadsheet. | |
*/ | |
/** | |
* Take two string addresses, and use the google matrix distance API to | |
* fetch the mileage (distance) between the two. | |
* | |
* @param {String} origin An Address that resolves in Google Maps. The Origin. | |
* @param {String} destination Another address that varies from the first and |
C-c % (org-mark-ring-push) Push the current position onto the mark ring, to be able to return easily. Commands following an internal link do this automatically
C-c & (org-mark-ring-goto) Jump back to a recorded position. A position is recorded by the commands following internal links, and by C-c %. Using this command several times in direct succession moves through a ring of previously recorded positions.
Headings produce sections, and you want to link (hotlink) to this section elsewhere in the document, and even have that produce a valid URL/anchor link on the HTML export.
For this, use a custom section ID heading:
mvn -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec |
ext { | |
/** | |
* Builds an Android version code from the version of the project. | |
* This is designed to handle the -SNAPSHOT and -RC format. | |
* | |
* I.e. during development the version ends with -SNAPSHOT. As the code stabilizes and release nears | |
* one or many Release Candidates are tagged. These all end with "-RC1", "-RC2" etc. | |
* And the final release is without any suffix. | |
*/ | |
buildVersionCode = { |
;; Disable every prompt during an org-mode export, when using plantuml. | |
;; Useful when you have multiple UML diagrams in an org doc, and you don't | |
;; want to type 'y' on every export prompt. | |
(defun my-org-confirm-babel-evaluate (lang body) | |
(not (string= lang "plantuml"))) | |
(setq org-confirm-babel-evaluate 'my-org-confirm-babel-evaluate) |