Instantly share code, notes, and snippets.

View aftonbladet.js
javascript: document.querySelector('.qVgIk').classList.remove('qVgIk'); document.querySelectorAll('._3WxSp, ._2BiUa').forEach(function(x) { x.remove() }); void 0;
View custom-queries.php
<?php
/**
* @package Custom_queries
* @version 1.0
*/
/*
Plugin Name: Custom queries
Plugin URI: http://wordpress.org/extend/plugins/#
Description: This is an example plugin
Author: Carlo Daniele
View opinion-export.rb
#!/usr/bin/env ruby
require 'tempfile'
require 'open-uri'
# Settings
SUBDOMAIN = "mypodcast"
DOWNLOAD_DIR = "downloads"
# Opinion urls
View DN Paywall Bookmarklet.js
javascript: var d = document, h = function(a) { if (a = d.querySelector(a)) a.style.display = 'none' }, s = function(a) { if (a = d.querySelector(a)) a.style.display = 'block' }; h('#pwOverlay'); h('.paywall'); s('.article__premium-content'); if (m = d.querySelector('.article__body--mask')) { m.className = m.className.replace(/\barticle__body--mask\b/, '') }; void 0;
View RoundRectButton.swift
import UIKit
/// UIButton subclass that draws a rounded rectangle in its background.
public class RoundRectButton: UIButton {
// MARK: Public interface
/// Corner radius of the background rectangle
public var roundRectCornerRadius: CGFloat = 8 {
View ArrayTransform.swift
// Based on Swift 1.2, ObjectMapper 0.15, RealmSwift 0.94.1
// Author: Timo Wälisch <timo@waelisch.de>
import UIKit
import RealmSwift
import ObjectMapper
import SwiftyJSON
class ArrayTransform<T:RealmSwift.Object where T:Mappable> : TransformType {
typealias Object = List<T>
View ListTransform.swift
import Foundation
import ObjectMapper
import RealmSwift
class ListTransform<T:RealmSwift.Object where T:Mappable> : TransformType {
typealias Object = List<T>
typealias JSON = [AnyObject]
let mapper = Mapper<T>()
View MartinExtended.keylayout
<?xml version="1.1" encoding="UTF-8"?>
<!DOCTYPE keyboard PUBLIC "" "file://localhost/System/Library/DTDs/KeyboardLayout.dtd">
<!--Last edited by Ukelele version 2.0b1 on 2010-01-18 at 17:01 (GMT+01:00)-->
<keyboard group="126" id="-2" name="Martin Extended" maxout="3">
<layouts>
<layout first="0" last="17" modifiers="commonModifiers" mapSet="ANSI"/>
<layout first="18" last="18" modifiers="commonModifiers" mapSet="JIS"/>
<layout first="21" last="23" modifiers="commonModifiers" mapSet="JIS"/>
<layout first="30" last="30" modifiers="commonModifiers" mapSet="JIS"/>
<layout first="194" last="194" modifiers="commonModifiers" mapSet="JIS"/>
View trigram.html
<!DOCTYPE html>
<html>
<head>
<title>Trigram for heaven icon</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style type="text/css">
li {
list-style-type: none;
}
View RSOAuthEngine.podspec
Pod::Spec.new do |s|
s.name = 'RSOAuthEngine'
s.version = '1.0.0'
s.license = 'MIT'
s.summary = 'ARC based OAuth engine for MKNetworkKit.'
s.homepage = 'https://github.com/rsieiro/RSOAuthEngine'
s.authors = { 'Rodrigo Sieiro' => 'rsieiro@sharpcube.com' }
s.source = {:git => 'https://github.com/rsieiro/RSOAuthEngine.git'}
s.source_files = 'RSOAuthEngine/*.{h,m}'