This file contains 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
<script id="IntercomSettingsScriptTag"> | |
var creationDate = @bootstrapData.user.userData.creationDate; | |
var creationDateString = creationDate.toString(); | |
var creationDateTruncated = creationDateString.substring(0,10); | |
window.intercomSettings = { | |
name: "@bootstrapData.user.userData.fullname", | |
user_id: "@bootstrapData.user.userData.id", | |
email: "@bootstrapData.user.userData.email", | |
created_at: creationDateTruncated, | |
user_hash: "@bootstrapData.intercomConfig.userHash", |
This file contains 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
Remote Address:173.193.138.213:443 | |
Request URL:https://app.getsentry.com/api/38297/store/?sentry_version=4&sentry_client=raven-js/1.1.15&sentry_key=a92f6c9edba84731880255132945c7e2&sentry_data=%7B%22project%22%3A%2238297%22%2C%22logger%22%3A%22javascript%22%2C%22platform%22%3A%22javascript%22%2C%22request%22%3A%7B%22url%22%3A%22http%3A%2F%2Flocalhost%3A9000%2F%22%2C%22headers%22%3A%7B%22User-Agent%22%3A%22Mozilla%2F5.0%20(X11%3B%20Linux%20x86_64)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F37.0.2062.120%20Safari%2F537.36%22%7D%7D%2C%22exception%22%3A%7B%22type%22%3A%22Error%22%2C%22value%22%3A%22Async%20value%20completion%20for%20path%20stores%2CspaceOverview%2CspaceOverview%20but%20swap%3Dfalse%22%7D%2C%22stacktrace%22%3A%7B%22frames%22%3A%5B%7B%22filename%22%3A%22http%3A%2F%2Flocalhost%3A8080%2Fapp.js%22%2C%22lineno%22%3A1077%2C%22colno%22%3A36%2C%22function%22%3A%22%3F%22%2C%22post_context%22%3A%5B%22%20%20%20%20%20%20%20%20%20%20%20%20%7D%20catch%20(error)%20%7B%22%2C%22%20%20%20%20%20%2 |
This file contains 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
var WithStopPropagation = React.createClass({ | |
propTypes: { | |
children: React.PropTypes.node.isRequired, | |
eventNames: React.PropTypes.arrayOf(React.PropTypes.string).isRequired | |
}, | |
stopPropagation: function(e){ | |
e.stopPropagation(); | |
}, |
This file contains 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
var WithStopPropagation = React.createClass({ | |
propTypes: { | |
children: React.PropTypes.node.isRequired, | |
eventNames: React.PropTypes.arrayOf(React.PropTypes.string).isRequired | |
}, | |
componentDidMount: function() { | |
this.props.eventNames.forEach(function(eventName) { | |
$(this.getDOMNode()).on(eventName,function(e) { | |
e.stopPropagation(); |
This file contains 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
exports.highlightStampleDescription = function highlightBlock(descriptionDiv) { | |
//$(descriptionDiv).find("pre").first().remove(); | |
console.error("##################################################"); | |
console.debug("DOM node in document?",document.contains(descriptionDiv)); | |
console.debug("DOM node has parent?",descriptionDiv.parentNode); | |
var codeDivs = $(descriptionDiv).find("pre").get(); | |
console.debug("codeDivs",codeDivs); | |
_.each(codeDivs,function(codeDiv) { |
This file contains 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
module.exports = AtomReact.newStore("currentSpace",{ | |
handleEvent: function(event) { | |
switch (event.name) { | |
case AppEvents.Names.APPLICATION_STARTED: | |
var initialRouting = event.data.initialRouting; | |
this.selectSpace(initialRouting.selectedSpace); | |
break; | |
case AppEvents.Names.ROUTING_STATE_POPPED: |
This file contains 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
var MenuSection = AtomReact.createPureClass("MenuSection",{ | |
propTypes: { | |
appStateCursor: AtomReact.PropTypes.isCursor | |
}, | |
render: function() { | |
return ( | |
<section id="menu"> | |
<Menu | |
currentUserCursor={this.props.appStateCursor.follow("stores","currentUser","user").asyncSuccess()} | |
interactionStoreCursor={this.props.appStateCursor.follow("stores","interaction")} |
This file contains 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
sebastien@sebastien-xps:stample-Phonegap (master $)$ cd ../Stampl;e | |
bash: cd: ../Stampl: No such file or directory | |
e: command not found | |
sebastien@sebastien-xps:stample-Phonegap (master $)$ cd ../Stample | |
sebastien@sebastien-xps:Stample (master $%)$ ./sbt | |
################################################################################### | |
### PREPARING SBT OPTIONS | |
######################### | |
Dev: won't send errors by mail | |
Dev: will start JVM in debug mode on port 9876 |
This file contains 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
[stample-web] $ it:testOnly *CategoryService* | |
Extract /home/sebastien/.embedmongo/linux/mongodb-linux-x86_64-2.4.10.tgz START | |
Extract /home/sebastien/.embedmongo/linux/mongodb-linux-x86_64-2.4.10.tgz DONE | |
Oct 16, 2014 10:43:24 AM MongodExecutable start | |
INFO: de.flapdoodle.embed.mongo.config.MongodConfigBuilder$ImmutableMongodConfig@27514bba | |
STARTED EMBEDDED MONGODB | |
[info] service.CategoryServiceTest | |
[info] CategoryServiceTest | |
[info] | |
[info] CategoryService service getSubCategories(user,categoryId) should |
This file contains 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 setupAsyncValueSwapping(atom,path,asyncValue,promise) { | |
var deferred = Q.defer(); | |
promise | |
.then(function asyncCompletionSuccess(data) { | |
var swapped = atom.compareAndSwapPathValue(path,asyncValue,asyncValue.toSuccess(data)); | |
if ( swapped ) { | |
deferred.resolve(data); | |
} else { | |
deferred.reject(new Error("Async value completion for path "+path+" but swap=false")); |