Skip to content

Instantly share code, notes, and snippets.

View desmondmorris's full-sized avatar

Desmond Morris desmondmorris

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Play>https://dl.dropboxusercontent.com/s/wa5ygkovh90mhjv/phone.mp3?dl=0</Play>
<Dial>516-860-8404</Dial>
</Response>
@desmondmorris
desmondmorris / ipak.R
Created June 7, 2016 02:27 — forked from stevenworthington/ipak.R
Install and load multiple R packages at once
# ipak function: install and load multiple R packages.
# check to see if packages are installed. Install them if they are not, then load them into the R session.
ipak <- function(pkg){
new.pkg <- pkg[!(pkg %in% installed.packages()[, "Package"])]
if (length(new.pkg))
install.packages(new.pkg, dependencies = TRUE)
sapply(pkg, require, character.only = TRUE)
}
git clone --depth=1 --branch=master git@github.com:desmondmorris/node-boilerplate.git new-project && rm -rf !$/.git && git init
{
"name": "Static Template",
"description": "",
"details": "A static sample Power-Up hosted on GitHub pages. Feel free to fork [this repository](https://github.com/trello/power-up-template) as a starting point for your own Power-Up.",
"icon": {
"url": "./images/logo.png"
},
"author": "Trello Inc",
"capabilities": [
"attachment-sections",
module.exports = function (event) {
if (!event.name) return Promise.reject(new Error('You must supply a name.'))
return Promise.resolve(`Hello ${event.name}!`)
}
diff --git a/robots.txt b/robots.txt
index ff9e286..1f53798 100644
--- a/robots.txt
+++ b/robots.txt
@@ -1,57 +1,2 @@
-#
-# robots.txt
-#
-# This file is to prevent the crawling and indexing of certain parts
-# of your site by web crawlers and spiders run by sites like Yahoo!
@desmondmorris
desmondmorris / testHook.js
Created September 1, 2015 23:04
My first hook.io microservice
module['exports'] = function simpleHttpRequest (hook) {
// npm modules available, see: http://hook.io/modules
var request = require('request');
request.get('http://httpbin.org/ip', function(err, res, body){
if (err) {
return hook.res.end(err.messsage);
}
hook.res.end(body);
})
};
@desmondmorris
desmondmorris / gist:bb5d07da92dc1005da79
Last active September 18, 2015 18:47
d7-disable-robots
diff --git a/robots.txt b/robots.txt
index ff9e286..21ea432 100644
--- a/robots.txt
+++ b/robots.txt
@@ -1,57 +1 @@
-#
-# robots.txt
-#
-# This file is to prevent the crawling and indexing of certain parts
-# of your site by web crawlers and spiders run by sites like Yahoo!
@desmondmorris
desmondmorris / gist:babc7e5ac8c0f543ff2f
Created March 31, 2015 14:39
Installing ElasticSearch on OSX via Homebrew

Elasticsearch on OSX via Homebrew

Requirements

  • OSX with Homebrew installed

Installation

brew update
@desmondmorris
desmondmorris / gist:0fc39d6458f73e8867eb
Created February 25, 2015 01:02
Experiment ab test manifest
name: i am an ab test
hypothesis: I think that removing underlines from links will increases clicks
type: split
cap: 10000
audience:
- mobile
url: /^\/stories/[0-9]*\/.*/
variants:
without-underline:
affect: $('a').css('decoration', 'none');