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
Fx.CSS.implement({ | |
search: function(selector){ | |
if (Fx.CSS.Cache[selector]) return Fx.CSS.Cache[selector]; | |
var to = {}; | |
function extract(sheet, j){ | |
var href = sheet.href; | |
if (href && href.contains('://') && !href.contains(document.domain)) return; | |
var rules = sheet.rules || sheet.cssRules; | |
Array.each(sheet.imports, extract); |
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
Fx.CSS.implement({ | |
search: function(selector){ | |
if (Fx.CSS.Cache[selector]) return Fx.CSS.Cache[selector]; | |
var to = {}; | |
function extract(sheet, j){ | |
var href = sheet.href; | |
if (href && href.contains('://') && !href.contains(document.domain)) return; | |
var rules = sheet.rules || sheet.cssRules; | |
Array.each(sheet.imports, extract); |
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.implement({ | |
decorate: function() | |
{ | |
var decorators = $A(arguments); | |
var resultFn = this; | |
decorator = decorators.pop(); | |
while(decorator) | |
{ | |
resultFn = decorator(resultFn); |
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
[ | |
{ | |
"action": "read", | |
"table": "workset", | |
"properties": "*", | |
"constraints": { | |
"userid": "4511" | |
}, | |
"orderby": [ | |
">", |
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 verify1 = function(fn) { | |
return function() { | |
var args = $A(arguments); | |
if($type(args[0]) != "string") | |
{ | |
throw new Error("First arg is not a string"); | |
} | |
else | |
{ | |
console.log("verify1 decorator run"); |
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
Browser.Request = function(){ | |
return $try(function(){ | |
return new GM.Request(); | |
}, function(){ | |
return new XMLHttpRequest(); | |
}, function(){ | |
return new ActiveXObject('MSXML2.XMLHTTP'); | |
}); | |
}; |
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() { | |
function $normalize(v) { | |
if($type(v) == "array") | |
{ | |
v = v.normalize() | |
} | |
else if(['object', 'hash'].contains($type(v))) | |
{ | |
v = $H(v).normalize(); |
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
this.allShifts = new SSResource("AllShifts", { | |
routes:{ create: {resource:'shift', id:"*"}, | |
read: {resource:'shifts'}, | |
update: {resource:'shift', id:"*"}, | |
'delete': {resource:'shift', id:"*"}}, | |
bindings: [{ | |
match:[{resource:"shift", action:"favorite"}, | |
{resource:"shift", action:"unfavorite"}, | |
{resource:"shift", action:"publish"}, | |
{resource:"shift", action:"unpublish"}, |
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
class Bar(): | |
z = 3 | |
class Foo(): | |
x = 1 | |
y = 2 | |
def __init__(self): | |
self.other = Bar() | |
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
{ | |
"data": { | |
"stream_name": "Categories", | |
"unique_name": "Categories", | |
"user_id": "4511", | |
"created_by_name": "dnolen", | |
"object_ref": "null", | |
"private": "0", | |
"meta": "category", | |
"id": "25", |