Skip to content

Instantly share code, notes, and snippets.

/* Flatten das boostrap */
.well, .navbar-inner, .popover, .btn, .tooltip, input, select, textarea, pre, .progress, .modal, .add-on, .alert, .table-bordered, .nav>.active>a, .dropdown-menu, .tooltip-inner, .badge, .label, .img-polaroid {
-moz-box-shadow: none !important;
-webkit-box-shadow: none !important;
box-shadow: none !important;
-webkit-border-radius: 0px !important;
-moz-border-radius: 0px !important;
border-radius: 0px !important;
border-collapse: collapse !important;
background-image: none !important;
@DefiPanda
DefiPanda / gist:7224852
Last active December 26, 2015 22:39
easiest way to permanently remove large ad from http://www.firstrowsports.eu/
Steps:
1) Go to (replace USERNAME by your username of your PC, e.g. John):
C:\Users\USERNAME\AppData\Local\Google\Chrome\User Data\Default\User StyleSheets
2) Open up (if you don't see any file there, create a Custom.css):
Custom.css
3) At the end of Custom.css, add:
#adv11ert000isediv {display:none;}
@DefiPanda
DefiPanda / leetcode.py
Last active December 24, 2020 17:26
Python script to save your Leetcode submissions locally.Simply sign in to your leetcode account, replace XXXX in my code to your sessionid and run "leetcode.py", and please don't log out on your browser meanwhile
import cookielib, urllib2, re, sys, HTMLParser, os.path
PHPSESSID = "XXXXXXXXXXXXXXXXXXXX"
def saveFileByType(code_content, parser, languages=[], postfixes=[]):
for index, language in enumerate(languages):
code_pattern = re.compile("""scope\.code\."""+language+""" = '.*?'""")
matched_code = code_pattern.search(code_content)
if(matched_code != None):
matched_code = matched_code.group(0)