Skip to content

Instantly share code, notes, and snippets.

View ArtOfCode-'s full-sized avatar
💎
Ruby

ArtOfCode ArtOfCode-

💎
Ruby
View GitHub Profile
// ==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/*
@ArtOfCode-
ArtOfCode- / analyse_flags.py
Last active November 9, 2015 22:44
An analysis script for bad flags on SO, when given a list of bad flags one-per-line in bad_flags.dta.
import sys
def get_list_index(list_obj, item, alternative=None):
try:
return list_obj.index(item)
except:
if alternative is not None:
try:
return list_obj.index(alternative)
except: