Skip to content

Instantly share code, notes, and snippets.

View askhogan's full-sized avatar

Patrick Hogan askhogan

View GitHub Profile
@askhogan
askhogan / designer-ab-test-tenfold-homepage
Last active September 20, 2016 04:44
designer-ab-test-tenfold-homepage
Tenfold takes the same approach to decisions as Amazon. Data wins, not emotion. We A/B test pages on
tenfold.com religiously to ensure the highest visitor to lead conversion ratio. Your job as a designer
candidate for Tenfold is re-design the existing Tenfold homepage (www.tenfold.com) and create a new variation
that you believe will capture more leads.
**Testing Criteria**
Many designers can create beautiful drawings, artwork, and stunning work. However, it takes a special kind of
designer to design things that both; look well and convert visitors to leads. The designer Tenfold is looking for
is a person that understands this.
[{"module":"Asset","fields":[],"err":null,"meta":{"actionOverrides":[],"activateable":false,"childRelationships":[{"cascadeDelete":true,"childSObject":"ActivityHistory","deprecatedAndHidden":false,"field":"WhatId","relationshipName":"ActivityHistories","restrictedDelete":false},{"cascadeDelete":true,"childSObject":"AssetFeed","deprecatedAndHidden":false,"field":"ParentId","relationshipName":"Feeds","restrictedDelete":false},{"cascadeDelete":true,"childSObject":"AssetHistory","deprecatedAndHidden":false,"field":"AssetId","relationshipName":"Histories","restrictedDelete":false},{"cascadeDelete":true,"childSObject":"AttachedContentDocument","deprecatedAndHidden":false,"field":"LinkedEntityId","relationshipName":"AttachedContentDocuments","restrictedDelete":false},{"cascadeDelete":true,"childSObject":"Attachment","deprecatedAndHidden":false,"field":"ParentId","relationshipName":"Attachments","restrictedDelete":false},{"cascadeDelete":true,"childSObject":"CombinedAttachment","deprecatedAndHidden":false,"field":"Pa
@askhogan
askhogan / gist:427147852f7e2a33f531
Last active August 29, 2015 14:24
Simple Package
var request = require('request');
module.exports = function(){
request.get('http://google.com', function(err, response, body){
console.log(body);
}
}
$ git branch -r --merged |
grep origin |
grep -v '>' |
grep -v master |
xargs -L1 |
awk '{split($0,a,"/"); print a[2]}' |
xargs git push origin --delete

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

{
"panels": [{
"fields": [{
"name": "name"
}, {
"name": "phone_office"
}
]
}
]
<h3>Hello Uncon</h3>
({
events : {
"click span.stock-symbol" : "stockClicked"
},
stockClicked : function(e) {
console.log(e.target);
alert(this.model.get("ticker_symbol"));
},
myName: "Foo",
_render: function(){
({
events : {
"click span.stock-symbol" : "stockClicked"
},
stockClicked : function(e) {
console.log(e.target);
alert(this.model.get("ticker_symbol"));
},
myName: "Foo",
_render: function(){