Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Smokey Sidebar
// @desc Adds recent Smokey reports to the sidebar along with feedback buttons.
// @author ArtOfCode
// @version 0.5.12
// @grant none
// @match *://*.stackexchange.com/*
// @match *://*.stackoverflow.com/*
// @match *://*.superuser.com/*
// @match *://*.serverfault.com/*

Keybase proof

I hereby claim:

  • I am alexanderhiam on github.
  • I am graycat (https://keybase.io/graycat) on keybase.
  • I have a public key whose fingerprint is D01F 6B39 58C6 6360 CCBE BBE6 BDF4 4E9A 807D EF3E

To claim this, I am signing this object:

@JonasCz
JonasCz / jsoupLinkExtraction
Last active May 20, 2021 04:58
Email and link / URL extraction using Jsoup
package jsouptest;
import java.io.IOException;
import java.util.HashSet;
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.jsoup.nodes.Document;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Element;
#!/usr/bin/env python
# Here is the python2 script to see StackOverflow 2015 election candidates who're going to the next phase along with their vote-counts.
# For this script to work, you must need to install Python's BeautifulSoup html parser.
# Created by Stack Overflow user Avinash Raj ( http://stackoverflow.com/users/3297613/avinash-raj )
from bs4 import BeautifulSoup
import urllib2
s = urllib2.urlopen('http://stackoverflow.com/election/6?tab=primary')
soup = BeautifulSoup(s)
@coolaj86
coolaj86 / github-pages-https-lets-encrypt.md
Last active November 16, 2021 22:36
Github Pages: Let's Encrypt!
@scottburton11
scottburton11 / gist:3222152
Created August 1, 2012 00:58
Audio Compression for Voiceover

About compression

Audio compression is used to reduce the dynamic range of a recording. Dynamic range is the difference between the loudest and softest parts of an audio signal. It was originally used to guard against defects when cutting wax and vinyl phonograph records, but generally became useful as a way of increasing the loudness of an audio recording without achieving distortion.

The goal of most compression applications is to increase the amplitude of the softest parts of a recording, without increasing the amplitude of the loudest parts.

Compressor anatomy

Compressors generally all have the same conceptual parts. However, not all compressors present variable controls for all parts to the user. If you don't see all of your compressor's controls here, there's a chance it either has a fixed value (and no control), or is named something else:

@SeanPONeil
SeanPONeil / BlockingIntentService.java
Last active February 15, 2021 21:59
An extension of the IntentService class that will block an Intent from entering the queue if the same Intent is already in the queue.
package com.atami.mgodroid.util;
import java.util.LinkedList;
import android.app.IntentService;
import android.content.Intent;
/**
* An extension of the IntentService class that will block