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
- (id)initWithResArchiver:(ResUnarchiver *)coder { | |
if (self) { | |
[coder skip:1u];//type | |
reflexive = (BOOL)[coder decodeSInt8]; | |
[inclusiveFilter setHex:[coder decodeUInt32]]; | |
[exclusiveFilter setHex:[coder decodeUInt32]]; | |
owner = [coder decodeSInt16]; | |
delay = [coder decodeSInt32]; | |
subjectOverride = [coder decodeSInt16]; | |
directOverride = [coder decodeSInt16]; |
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
LINK = ln -f | |
BUILD_DIR = ./build | |
MODULE_DIR = ./lib | |
RES_FILE = reddit_enhancement_suite.user.js | |
MODULES = $(MODULE_DIR)/$(RES_FILE) | |
BUILT_FILE = $(BUILD_DIR)/$(RES_FILE) |
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
console.time('creation'); | |
var array = []; | |
for (var i = 0; i < 100000; i++) { | |
array.push({i:i}); | |
} | |
console.timeEnd('creation'); | |
console.group('for index'); |
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
#! /usr/bin/python | |
from os import system as s | |
import sqlite3,datetime | |
s('rm -f ./test.sqlite'); | |
conn = sqlite3.connect('test.sqlite'); | |
c = conn.cursor(); | |
c.execute('CREATE TABLE foo(bar STRING PRIMARY KEY, baz STRING,bin);'); | |
c.execute('CREATE INDEX index_bar ON foo(bar);'); | |
c.execute('CREATE INDEX index_baz ON foo(baz);'); |
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
nmap <silent> <leader>/ :call Commentify()<cr> | |
vmap <silent> <leader>/ :call Commentify()<cr> | |
"Commentify config | |
if !exists("b:commentType") | |
let b:commentType="#" | |
endif | |
augroup Commentify |
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 buildHTML(template) { | |
/* | |
htmlTemplateChild = string|number|Node|htmlTemplate | |
htmlTemplate = { | |
required name: string, | |
//do not include the 'on' in the event name | |
optional events: {name: function(event){},...} | |
optional attrs: {name: string|number, ...}, | |
//attributue shortcuts for frequently use attributes override the coresponding attrs[name] value | |
optional id: string, |
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
if exists("g:loaded_smartabbrev") | |
finish | |
endif | |
let g:loaded_smartabbrev=1 | |
if !exists("g:reservedMark") | |
let g:reservedMark = "y" | |
endif | |
"match <cursor> preceded by 2n backslashes |
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/lib/reddit_enhancement_suite.user.js b/lib/reddit_enhancement_suite.user.js | |
index 63409e5..dfd4e30 100644 | |
--- a/lib/reddit_enhancement_suite.user.js | |
+++ b/lib/reddit_enhancement_suite.user.js | |
@@ -8741,6 +8741,9 @@ modules['showImages'] = { | |
}); | |
} | |
+ //So the link gets colored when clicking the thumbnail | |
+ $(elem).closest('.thing').find('.thumbnail').attr('href', elem.href); |
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/lib/reddit_enhancement_suite.user.js b/lib/reddit_enhancement_suite.user.js | |
index 63409e5..ed514e8 100644 | |
--- a/lib/reddit_enhancement_suite.user.js | |
+++ b/lib/reddit_enhancement_suite.user.js | |
@@ -8386,6 +8386,11 @@ modules['showImages'] = { | |
value: true, | |
description: 'Mark links visited when you view images (does eat some resources).' | |
}, | |
+ preserveThumbnailLink: { | |
+ type: 'boolean', |
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
@echo off | |
if not exist Opera\includes\ (mkdir Opera\includes) | |
if not exist Opera\modules\ (mkdir Opera\modules) | |
if not exist XPI\data\ (mkdir XPI\data\) | |
if "%1"=="clean" ( | |
for %%G in (lib\*.js) do ( | |
del XPI\data\%%G | |
del Chrome\%%G |