Skip to content

Instantly share code, notes, and snippets.

View jarek-foksa's full-sized avatar

Jarek Foksa jarek-foksa

View GitHub Profile
/**
* Trim sting to the part between prefix and suffix
*/
String.prototype.between = function(prefix, suffix) {
var string = this;
var i = string.indexOf(prefix);
if (i >= 0) {
string = string.substring(i + prefix.length);
}
else {
/**
* Custom events
*
* (c) 2010 Jeremy Ashkenas, DocumentCloud Inc.
* License: MIT License
*
* Usage:
* > bind('widgetClicked', function() {
* console.log("Button was clicked");
* }
Load command 11
cmd LC_LOAD_DYLIB
cmdsize 88
name @loader_path/../Frameworks/WebKit2.framework/Versions/A/WebKit2 (offset 24)
time stamp 2 Thu Jan 1 01:00:02 1970
current version 535.2.0
compatibility version 1.0.0
Load command 12
cmd LC_LOAD_DYLIB
cmdsize 88
JavaScriptCore:
@loader_path/../Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore (compatibility version 1.0.0, current version 535.2.0)
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)
/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 53.0.0)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 635.0.0)
/usr/lib/libicucore.A.dylib (compatibility version 1.0.0, current version 46.1.0)
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 833.1.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 52.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.0.0)
~/apps/boxy/mac/build/Release/Boxy.app/Contents/Frameworks/JavaScriptCore.fra
WebKit2:
@loader_path/../Frameworks/WebKit2.framework/Versions/A/WebKit2 (compatibility version 1.0.0, current version 535.2.0)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 41.0.0)
/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 153.0.0)
/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 17.0.0)
/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 53.0.0)
@loader_path/../../../JavaScriptCore.framework/Versions/A/JavaScriptCore (compatibility version 1.0.0, current version 535.2.0)
/usr/lib/libicucore.A.dylib (compatibility version 1.0.0, current version 46.1.0)
/System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore (compatibility version 1.2.0, current version 1.7.0)
@loader_path/../../../WebCore.framework/Versions/A/We
#import "Boxy_CSS.h"
@implementation Boxy_CSS
@synthesize window;
@synthesize webView;
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
}
- (void)awakeFromNib {
[self startServer];
var modules = {};
var _require;
var require = _require = function(scriptName) {
if (modules[scriptName] === undefined) {
console.error("require('" + scriptName + "'): file not found.");
return;
}
if (modules[scriptName].cached) {
return modules[scriptName].cached;
}
simple_selector_sequence
: [ type_selector | universal ]
[ HASH | class | attrib | pseudo | negation ]*
| [ HASH | class | attrib | pseudo | negation ]+
;
global.copy = function(refObject) {
var newObject;
var descriptor;
var properties;
if (refObject.cloneNode) {
newObject = refObject.cloneNode();
}
else {
newObject = Object.create(Object.getPrototypeOf(refObject));
var stats = require('stats.js').stats;
//▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇
// Toolbar
//▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇
var toolbar = exports.toolbar = {
//
// Init