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
Baz.js | |
-------------- | |
goog.require('goog.array'); | |
function Baz() {} | |
Baz.prototype = { | |
baz: function() { | |
return goog.array.last(['asdf','asd','baz']); | |
}, | |
bar: function () { | |
return 4 + 4; |
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 (window) { | |
'use strict'; | |
// | |
// Detect full support | |
// | |
var isSupported = ( | |
'CustomEvent' in window && | |
// in Safari, typeof CustomEvent == 'object' but it works | |
(typeof window.CustomEvent === 'function' || |
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
/** | |
* Records information for later handling of events. This type is | |
* shared, and instances of it are passed, between the eventcontract | |
* and the dispatcher jsbinary. Therefore, the fields of this type are | |
* referenced by string literals rather than property literals | |
* throughout the code. | |
* | |
* 'targetElement' is the element the action occured on, 'actionElement' | |
* is the element that has the jsaction handler. |
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
~ $ python | |
Python 2.7.6 (default, Mar 22 2014, 22:59:56) | |
[GCC 4.8.2] on linux2 | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> class Foo(): | |
@property | |
def bar(self): | |
return "42" | |
>>> "The magic number is {foo.bar}".format(foo=Foo()) | |
'The magic number is 42' |
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
REPO = git@github.com:andreasgal/pdf.js.git | |
BUILD_DIR := build | |
DEFAULT_BROWSERS := test/resources/browser_manifests/browser_manifest.json | |
DEFAULT_TESTS := test/test_manifest.json | |
# JS files needed for pdf.js. | |
# This list doesn't account for the 'worker' directory. | |
PDF_JS_FILES = \ | |
pdf.js \ | |
crypto.js \ |
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
diff --git a/twitter-text.js b/twitter-text.js | |
index 0741aa2..adc2388 100644 | |
--- a/twitter-text.js | |
+++ b/twitter-text.js | |
@@ -5,6 +5,7 @@ if (!window.twttr) { | |
(function() { | |
twttr.txt = {}; | |
twttr.txt.regexen = {}; | |
+ twttr.txt.initialized = false; | |
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
// Option 4 | |
function mkAttrs() { | |
if (condition) { | |
return a; | |
} | |
return b; | |
} | |
function() { |
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
// require hogan | |
var hogan = require("hogan.js"); | |
// compile template | |
var template = hogan.compile("@{{name}}"); | |
var team = ['dhg', 'fat', 'jimio', 'nickgreen', 'sayrer']; | |
team.map(function (twitterer) { | |
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 Hogan = require('./lib/hogan'); | |
var templates = { | |
test: 'Hello {{name}}!', | |
test2: 'Lorem ipsum dolor sit amet, {{foo}}consectetur adipisicing elit, sed do eiusmod tempor {{bar}}.', | |
test3: '<html><body>incididunt ut labore et dolore magna aliqua.{{baz}} Ut enim ad minim veniam, quis nostrud.</body></html>' | |
}; | |
var compiled = []; |
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
Rob-Sayres-MacBook-Pro:titan-test sayre$ cd ~/Downloads/titan-1.0.0-hadoop1/ | |
Rob-Sayres-MacBook-Pro:titan-1.0.0-hadoop1 sayre$ ls | |
CHANGELOG.asc LICENSE.txt NOTICE.txt UPGRADE.asc bin conf data ext javadocs lib log scripts | |
Rob-Sayres-MacBook-Pro:titan-1.0.0-hadoop1 sayre$ bin/gremlin.sh | |
objc[75580]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined. | |
\,,,/ | |
(o o) | |
-----oOOo-(3)-oOOo----- | |
plugin activated: aurelius.titan |
OlderNewer