Skip to content

Instantly share code, notes, and snippets.

{"data":[{"id":"1432750582849","json":"{\"enabled\":true,\"name\":\"Twitter: Hide Trends\",\"url\":\"\",\"updateUrl\":\"\",\"sections\":[{\"code\":\".module.trends { display: none; }\",\"domains\":[\"twitter.com\"],\"regexps\":[],\"urlPrefixes\":[],\"urls\":[\"\"]}]}"},{"id":"1432750082921","json":"{\"enabled\":true,\"name\":\"Twitter: Hide Promoted Tweets\",\"url\":\"\",\"updateUrl\":\"\",\"sections\":[{\"code\":\"*[data-promoted] { display:none; }\",\"domains\":[\"twitter.com\"],\"regexps\":[],\"urlPrefixes\":[],\"urls\":[\"\"]}]}"},{"id":"1432750240677","json":"{\"enabled\":true,\"name\":\"Twitter: Hide Who to Follow\",\"url\":\"\",\"updateUrl\":\"\",\"sections\":[{\"code\":\".wtf-module,\\n.WhoToFollow {\\n\\tdisplay: none !important;\\n}\",\"domains\":[\"twitter.com\"],\"regexps\":[],\"urlPrefixes\":[],\"urls\":[\"\"]}]}"},{"id":"1432750414498","json":"{\"enabled\":true,\"name\":\"Twitter: Hide Footer\",\"url\":\"\",\"updateUrl\":\"\",\"sections\":[{\"code\":\".Footer { display: none }\",\"domains\":[\"t
#pagelet_trending_tags_and_topics,
#pagelet_ego_pane,
.rhcFooterWrap {
display: none !important;
}
[data-reactid*="$interestsNav"],
[data-reactid*="$developerNav"],
[data-reactid*="$pagesNav"],
[data-reactid*="$listsNav"],
[data-reactid*="$eventsNav"],
@jamiehodge
jamiehodge / Gemfile
Created January 15, 2012 22:37
Spine.js contacts demo Sinatra backend
source 'https://rubygems.org'
gem 'sinatra', git: 'git://github.com/sinatra/sinatra.git'
gem 'sequel'
gem 'sqlite3'
gem 'yajl-ruby', require: 'yajl'
@stympy
stympy / excerpt.rb
Created May 23, 2011 13:14
Jekyll excerpt plugin
# This goes in _plugins/excerpt.rb
module Jekyll
class Post
alias_method :original_to_liquid, :to_liquid
def to_liquid
original_to_liquid.deep_merge({
'excerpt' => content.match('<!--more-->') ? content.split('<!--more-->').first : nil
})
end
end
@roddds
roddds / gist:a1f42bae598028ac7809
Last active December 8, 2020 22:46 — forked from raddevon/gist:67935d320ee9b726d19d
Adobe tries to strong-arm me into keeping Creative Cloud

To everyone who got here through Twitter or Facebook or Hacker News or whatever: THIS IS NOT ME.

The "Me" in this transcript is @raddevon, who shared his story first on reddit.


List of incompetent jackasses who can't check a source if their lives depended on it:

// HOWTO: load LABjs itself dynamically!
// inline this code in your page to load LABjs itself dynamically, if you're so inclined.
(function (global, oDOC, handler) {
var head = oDOC.head || oDOC.getElementsByTagName("head");
function LABjsLoaded() {
// do cool stuff with $LAB here
}
@danott
danott / entities.css
Created January 31, 2011 22:07
Use CSS's :after pseudo-selector to insert hexadecimal values of html entities into the document. Less markup. More awesome.
/* Daniel Ott
* entities.css
* 31 January 2011
*
* Adding arrows to thinks makes them more clickable. Right?
* Use CSS's :after pseudo-selector to insert hexadecimal values
* of html entities into the document. Less markup. More awesome.
*/
.add-an-arrow:after {
const fs = require('fs');
const d3 = require('d3-dsv');
const path = require('path');
const yaml = require('js-yaml');
const toMarkdown = require('to-markdown');
d3.csvParse(
fs.readFileSync('./goodreads_library_export.csv', 'utf8')
).filter(row => {
return row['Exclusive Shelf'] !== 'to-read';
@turtlesoupy
turtlesoupy / nginx.conf
Created July 8, 2012 21:16
node.js upstream nginx config
http {
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=one:8m max_size=3000m inactive=600m;
proxy_temp_path /var/tmp;
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
gzip on;
gzip_comp_level 6;
@Glutexo
Glutexo / current-date-and-time.applescript
Created September 14, 2014 12:48
AppleScript to get current date and time (YYYY-MM-DD HH:MM:SS). Usable as a Text Service in Mac OS X.
(*
The zero_pad function taken from:
http://www.nineboxes.net/2009/10/an-applescript-function-to-zero-pad-integers/
*)
on zero_pad(value, string_length)
set string_zeroes to ""
set digits_to_pad to string_length - (length of (value as string))
if digits_to_pad > 0 then
repeat digits_to_pad times
set string_zeroes to string_zeroes & "0" as string