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
{ | |
"name": "some-app", | |
"version": "0.0.1", | |
"private": true, | |
"dependencies": { | |
"animate-css": "git://github.com/daneden/animate.css.git", | |
"closure-compiler-externs": "https://github.com/dcodeIO/node.js-closure-compiler-externs.git", | |
"closure-library": "git://github.com/steida/google-closure-library.git#74667f60a487ea7a596789e2d9f48f26ff29569c", | |
"este-library": "git://github.com/steida/este-library.git", | |
"normalize-css": "~2.1.3" |
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
/** @jsx React.DOM */ | |
goog.provide('app.foo.react.FooSubscribe'); | |
goog.require('este.thirdParty.react'); | |
/** | |
* Injected via DI container. | |
* @param {app.visitor.Model} visitor | |
* @constructor |
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
name: "Alprazolam" | |
drug_class: "benzodiazepine" | |
controlled_substance: "CIV" | |
available_as_generic: "yes (all formulations)" | |
available_as_brand: "yes" | |
brand_names: [ | |
"Xanax (tablet, XR tablet)" | |
"Niravam (orally disintegrating tablet)" | |
] | |
medical_food_products: [ |
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
container.configure | |
resolve: app.Scroller | |
with: | |
drugHeader: document.querySelector '.drug > header' | |
somethingElse: document.querySelector '.something > .else' |
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
/** @jsx React.DOM */ | |
goog.provide('app.drugs.react.DrugAutoComplete'); | |
goog.require('este.thirdParty.react'); | |
goog.require('goog.ui.ac.AutoComplete'); | |
/** | |
* @param {app.Routes} routes | |
* @constructor |
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
// ==ClosureCompiler== | |
// @compilation_level ADVANCED_OPTIMIZATIONS | |
// @warning_level VERBOSE | |
// @output_file_name default.js | |
// ==/ClosureCompiler== | |
// ADD YOUR CODE HERE | |
var app = { | |
helllllo: function (name) { | |
alert('Hello, ' + name); |
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 getAllTextNodes = function(node) { | |
var all = []; | |
for (node = node.firstChild; node; node = node.nextSibling){ | |
if (node.nodeType == 3) | |
all.push(node); | |
else | |
all = all.concat(getAllTextNodes(node)); | |
} | |
return all; | |
}; |
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() { | |
var run = function() { | |
// loadjscssfile("http://iodine-app.herokuapp.com/med-terms/externs/tooltip/bootstrap.min.css", "css"); | |
// loadjscssfile("http://iodine-app.herokuapp.com/med-terms/bookmarklet.css", "css"); | |
// createToolbar(); | |
// loadDictionary(onDictionaryLoad); | |
var textNodes = []; | |
console.time('Translating'); | |
getAllTextNodes(document.body, textNodes); |
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
<div className="drug-basics"> | |
<h2> | |
<span className="drug-name"> | |
{this.props.selectedDrug.name} | |
</span> | |
<span className="drug-name-generic"> | |
{this.props.selectedDrug.name_generic.toLowerCase()} | |
</span> | |
</h2> | |
<h3> |
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
8. Do programmers have quiet working conditions? | |
There are extensively documented productivity gains provided by giving knowledge workers space, quiet, and privacy. The classic software management book Peopleware documents these productivity benefits extensively. | |
Here's the trouble. We all know that knowledge workers work best by getting into "flow", also known as being "in the zone", where they are fully concentrated on their work and fully tuned out of their environment. They lose track of time and produce great stuff through absolute concentration. This is when they get all of their productive work done. Writers, programmers, scientists, and even basketball players will tell you about being in the zone. | |
The trouble is, getting into "the zone" is not easy. When you try to measure it, it looks like it takes an average of 15 minutes to start working at maximum productivity. Sometimes, if you're tired or have already done a lot of creative work that day, you just can't get into the zone and you spend the res |
OlderNewer