Skip to content

Instantly share code, notes, and snippets.

@gavin19
gavin19 / dabblet.css
Created September 5, 2013 16:22
top 100% vs bottom 0 *
/** top 100% vs bottom 0 **/
div {
position: relative;
display: inline-block;
height: 200px;
width: 200px;
background: rgba(0,0,0,.5);
margin: 5px 0;
}
@gavin19
gavin19 / dabblet.css
Created October 9, 2013 02:13
top 100% vs bottom 0 *
/** top 100% vs bottom 0 **/
div {
position: relative;
display: inline-block;
height: 200px;
width: 200px;
background: rgba(0,0,0,.5);
margin: 5px 0;
}
@gavin19
gavin19 / dabblet.css
Created October 19, 2013 14:52
Untitled
.header1{
text-align: center;
border-bottom: 2px solid #009;
font-family:verdana;
margin: 0;
background-color: #ABC;
}
body, .PackagedDealsSub, .FlightSub, .AccommodationSub, .navbar {
margin:0;
@gavin19
gavin19 / dabblet.css
Created October 25, 2013 02:39
Untitled
.dates {
list-style: none;
margin: 0;
padding: 0;
}
.dates li {
position: relative;
padding-left: 5.75em;
}
.dates li + li {
@gavin19
gavin19 / dabblet.css
Created November 10, 2013 21:55
Untitled
h3 {
text-indent: 25px;
outline: 1px solid #f00;
}
div {
background: url(http://e.thumbs.redditmedia.com/6symwJZ1QOQXvB9R.png) no-repeat;
height: 50px;
}
div + div {
@gavin19
gavin19 / comment_scrape.py
Last active January 18, 2020 17:05
Scrape user names from reddit thread
#!/usr/bin/python
# -*- coding: utf-8 -*-
import praw
# PRAW ident
ua = '/u/someone for /r/somesub'
r = praw.Reddit(user_agent=ua)
# Fetch thread contents where submission_id is found at
@gavin19
gavin19 / migrate_flair.py
Last active August 18, 2017 13:59
Reddit migrate flair
import praw
username = 'someuser'
password = 'somepassword'
user_agent = '/u/someuser for /r/yoursub'
client_id = 'abc123'
client_secret = 'xyz789'
reddit = praw.Reddit(user_agent=user_agent,
@gavin19
gavin19 / dabblet.css
Created January 13, 2014 18:13
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
span {
background: #f00;
}
span[c] { background: green; }
This file has been truncated, but you can view the full file.
i> 00001990 Successfully created OpenGL context:
i> 00001990 GL_VENDOR: NVIDIA Corporation
i> 00001990 GL_VERSION: 4.5.0 NVIDIA 358.50
i> 00001990 GL_RENDERER: GeForce GTX 760/PCIe/SSE2
i> 00001990 GL_SHADING_LANGUAGE_VERSION: 4.50 NVIDIA
i> 00000C04 XThread00000004 (1) Stack: 40010000-40030000
i> 00000C04 XThread00000008 (2) Stack: 40040000-40060000
K> 00000004 XThread::Execute thid 1 (handle=00000004, 'GL4 Worker', native=00000814, <host>)
K> 00000008 XThread::Execute thid 2 (handle=00000008, 'GL4 Vsync', native=00001A24, <host>)
i> 00000C04 XThread0000000C (3) Stack: 40070000-40090000
"""Python subreddit utils."""
import os
import sys
import argparse
import shutil
from configparser import ConfigParser
from time import sleep
from urllib.request import (Request, urlopen, urlretrieve)
from zipfile import ZipFile
import praw