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
for (var i = 1; i <= 100; i++) { | |
if (i % 15 === 0) { | |
console.log('FizzBuzz'); | |
} else if (i % 3 === 0) { | |
console.log('Fizz'); | |
} else if (i % 5 === 0) { | |
console.log('Buzz'); | |
} else { | |
console.log(i); | |
} |
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
var conf = { | |
tab: { | |
tab: { | |
}, | |
customVariables: { | |
foo: 'bar' | |
} | |
}, | |
floating: { |
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 (w, o) { | |
w.oo_tab = new o.Ocode({ | |
tab:{}, | |
customVariables: { | |
yourParameterName: 'Your value', | |
anotherParamName: 'Another value', | |
aCookieValue: o.readCookie('cookie_name') || '' | |
} | |
}); | |
})(this, OOo); |
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
var conf = { | |
tab: { | |
tab: { | |
customVariables: { | |
foo: 'bar' | |
} | |
} | |
}, | |
floating: { | |
floating: { |
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
#!/usr/bin/env ruby | |
# | |
# This script uses command line args 'valid_args' to | |
# create valid code/extranet packages | |
# | |
# place this script in /usr/local/bin | |
# | |
# usage: | |
# opcode t i b | |
# |
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
// Reusable constructor function for prototype setting. | |
var Ctor = function(){}; | |
// Create a function bound to a given object (assigning `this`, and arguments, | |
// optionally). Delegates to **ECMAScript 5**'s native `Function.bind` if | |
// available. | |
var OOo = {}; | |
OOo.bind = function(func, context) { | |
var args, | |
bound, |
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
module.exports = function(grunt) { | |
// Files to be concatinated | |
var srcFiles = [ | |
'src/intro.js', | |
'src/utilities.js', | |
'src/utilities/tunnel.js', | |
'src/utilities/sha1.js', | |
'src/utilities/abandonment.js', | |
'src/utilities/thirdPartyCookies.js', |
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
module.exports = function(grunt) { | |
var srcFiles = [ | |
'src/intro.js', | |
'src/utilities.js', | |
'src/utilities/tunnel.js', | |
'src/utilities/sha1.js', | |
'src/utilities/abandonment.js', | |
'src/utilities/thirdPartyCookies.js', | |
'src/cookie.js', |
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
(fn [s] | |
(empty? | |
(loop [s (clojure.string/replace s #"[^\(\)\{\}\[\]]" "")] | |
(let [r (clojure.string/replace s #"\(\)|\{\}|\[\]" "")] | |
(if (= r s) s (recur r)))))) |
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
/*global OOo*/ | |
var customVar; | |
var oo_tab = new OOo.Ocode({ | |
customVariables: { | |
var1: (customVar !== undefined) ? customVar : '' | |
} | |
}); |