This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import moment from 'moment'; | |
import _ from 'lodash'; | |
/** | |
* Transform given timestamp properties into moment objects | |
* Example usage: | |
* myEvent = transformTimestamps(myEvent, ['started_at', 'confirmation.confirmed_at']) | |
* @param {Object} targetObject Object to transform properties for | |
* @param {Array} targetKeys Array of paths to timestamp property | |
* @return {Object} Transformed targetObject |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "Core Competency Synergies", | |
"started_at": "2014-11-01T00:23:45Z", | |
"ended_at": "2014-11-01T01:23:45Z", | |
"invitees": [ | |
{ | |
"email": "[email protected]", | |
"display_name": "Attendee 1", | |
}, | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
'use strict'; | |
// Papa Parse: http://papaparse.com/ | |
// Allows Angular apps to neatly inject `Papa` in components. | |
angular.module('appName').constant('Papa', window.Papa); | |
}).call(this); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ... (Find this section in your local .zshrc to replace) | |
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) | |
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ | |
# Example format: plugins=(rails git textmate ruby lighthouse) | |
# Add wisely, as too many plugins slow down shell startup. | |
plugins=(git osx terminalapp zsh-syntax-highlighting) | |
source $ZSH/oh-my-zsh.sh | |
# ... |
OlderNewer