Skip to content

Instantly share code, notes, and snippets.

@gtarsia
gtarsia / gist:f139cb4e452d9d12b8f5
Last active August 29, 2015 14:18
Hide reddit comments by click the side of the comment
function hide(obj) {
$(obj)
.children('.entry').first()
.children('.tagline').first()
.children('.expand').first()
.click();
}
var shouldClick = true;
var preventClickEvent = false;
@lavoiesl
lavoiesl / extract-func-comment-string.js
Last active November 23, 2020 16:20
Extract a function's comment, useful to have multiline string
/*!
* Extract a function's comment, useful to have multiline string
* @link https://gist.github.com/lavoiesl/5880516
*
* Don't forget to use /*! to avoid the comment being removed in minification
*/
// Example:
// var myString = extractFuncCommentString(function(){/*!
// <p>
// foo bar
@DEADB33F
DEADB33F / highlightmodmail.user.js
Created November 22, 2012 15:18
Reddit.com - Highlight unread modmail.
// ==UserScript==
// @name reddit.com - Highlight unread modmail
// @namespace v1
// @include http://www.reddit.com/message/moderator/*
// @include http://www.reddit.com/r/*/about/message/inbox/*
// ==/UserScript==
function main()
{
var ALL=0, UNREAD=1,
@nikcub
nikcub / README.md
Created October 4, 2012 13:06
Facebook PHP Source Code from August 2007
@j0hn
j0hn / str2bf.py
Created January 1, 2012 08:32
String to brainfuck converter
#!/usr/bin/env python
# coding: utf-8
"""
String to Brainfuck.
Converts a string to a brainfuck code that prints that string.
Author: j0hn <j0hn.com.ar@gmail.com>
"""