Skip to content

Instantly share code, notes, and snippets.

@JoelBesada
JoelBesada / dabblet.css
Created March 19, 2012 00:06
Basic CSS States
/* Basic CSS States */
body {
padding: 100px;
}
/* When a button is pressed, overwrite the transition property
to remove the delay, so that we can instantly change the color */
.red:active ~ p.perm, .green:active ~ p.perm, .blue:active ~ p.perm {
transition: color 0;
}
@JoelBesada
JoelBesada / dabblet.css
Created March 20, 2012 17:09
CSS States
/* CSS States */
body {
background: url(http://dabblet.com/img/noise.png);
background-color: #F5F2F0;
font-family: Georgia, serif;
font-size: 18px;
line-height: 1.6em;
text-shadow: 0 2px 0 white;
color: #222;
}
@JoelBesada
JoelBesada / command.js
Created November 5, 2013 01:44 — forked from lox/command.js
(function() {
var silent = false;
var url = location.href;
var title = document.title;
if(document.querySelector) {
if(1 === document.getElementsByClassName('hentry').length) {
title = document.querySelector(
'.hentry .entry-title, .hentry h1, .hentry h2, .hentry h3'
@JoelBesada
JoelBesada / dabblet.css
Created November 7, 2013 17:06
Untitled
.resize {
resize:both;
overflow: auto;
width: 30px;
height: 20px;
}
.logout {
width: 100%;
height: 100%;
@JoelBesada
JoelBesada / dabblet.css
Created November 7, 2013 17:11
Untitled
body {
font-family:sans-serif;
}
.resize {
resize:both;
overflow: auto;
width: 30px;
height: 20px;
}
@JoelBesada
JoelBesada / command.js
Last active December 29, 2015 23:09 — forked from busterc/README.md
window.location.href = 'http://whois.domaintools.com/' + location.host;
@JoelBesada
JoelBesada / command.js
Last active December 30, 2015 20:29 — forked from codeanpeace/README.md
(function(){
var resource = document.createElement("script");
resource.src = "http://www.magicscroll.net/bookmarklet/init.js";
document.documentElement.appendChild(resource);
}());
var d = document,
w = window,
e = w.getSelection,
k = d.getSelection,
x = d.selection,
s = (e ? e() : (k) ? k() : (x ? x.createRange().text : 0)),
f = 'http://www.tumblr.com/share',
l = d.location,
e = encodeURIComponent,
p = '?v=3&u=' + e(l.href) + '&t=' + e(d.title) + '&s=' + e(s),
(function (e, t) {
var n = e.document;
setTimeout(function () {
function a(e) {
if (e.data === "destroy_bookmarklet") {
var r = n.getElementById(t);
if (r) {
n.body.removeChild(r);
r = null
}
@JoelBesada
JoelBesada / sketch-loader.js
Created January 8, 2018 15:10
Webpack Sketch Loader
const JSZip = require('jszip')
const { parseBuffer } = require('bplist-parser')
const { isObject, each, find } = require('lodash')
const parseArchivedValue = value => {
return parseBuffer(new Buffer(value, 'base64'))
}
const parseArchivedString = obj => {
const { $objects } = parseArchivedValue(