Skip to content

Instantly share code, notes, and snippets.

@gamefreak
gamefreak / index.html
Created April 19, 2013 19:30
A CodePen by douglasdeodato. Single Element Pure CSS MacBook Pro - This is just an experiment! There are certainly better ways to show an image of a MacBook, but none as fun as this :)
<i class="macbook"></i>
import sublime, sublime_plugin
import glob, re, json, difflib
import heapq
def pdir(obj):
print(dir(obj))
def pdirl(obj):
ll = dir(obj)
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
<link rel="stylesheet" href=""/>
</head>
<body>
<table>
<tr>
0:00:00.190,0:00:06.790
news comes from sahi
0:00:06.790,0:00:10.509
you need to raise money for you could
you please please please wait
0:00:10.509,0:00:14.309
deep throat until he plans to use it
85 :'Chelle:
51 :'Kweng:
2 :5ER0:
2 ::
8 :Aanders:
45 :Aardman:
1 :Acey Nubbs:
11 :Acey Nubs:
10 :Admiral Breya:
68 :Admiral Emm:
@gamefreak
gamefreak / link.bat
Created August 29, 2012 19:33
Link RES library files
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',
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);
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
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,