Skip to content

Instantly share code, notes, and snippets.

View sbai's full-sized avatar

Scott Bai sbai

  • Laerdal Labs DC
  • Washington, DC
View GitHub Profile
@sbai
sbai / disable-google-search-spellcheck.css
Created April 6, 2014 05:11
Hide the red squiggle from the Google Search spell checker.
/*
The Google Search page has its own spellchecker, which applies to any text you
enter into the search box. Like all spellcheckers, it's a useless pile of shit.
I haven't found any way to turn it off, or even much confirmation of its
existence.
The page loads a script that sends the content of the search box to Google's
servers whenever you type something into it. This enables Google to perform
autocompletion and spellchecking. If Google thinks you've misspelled something,
the script will insert a span element with the CSS class "gsc_b" into the input
@sbai
sbai / news.google.com.css
Last active December 11, 2015 00:18
Custom CSS to clean up Google News. Hides all the pushy sections where it tells you what to read/watch based on what's popular or what it thinks is important.
/* hides the breaking news box */
div.small-section.section-BREAKING_NEWS_BOX {
display: none;
}
/* hides the spotlight videos gadget */
div.gadget.t-FEATURED_VIDEOS.gsid-FVD {
display: none;
}
@sbai
sbai / sadness.py
Created November 19, 2012 01:33
SMBC 2012-11-18
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# http://www.smbc-comics.com/index.php?db=comics&id=2798
'''sadness.py'''
var = raw_input("What is your job?")
print "So, basically suicide in slow motion."