Skip to content

Instantly share code, notes, and snippets.

@gavin19
gavin19 / gist:6fd823f797801fe5d026e1f4bf7ea621
Created June 13, 2018 13:47
crDroid_textSelection_shortcut_FC
06-12 19:27:51.689 26462 26462 E AndroidRuntime: FATAL EXCEPTION: main
06-12 19:27:51.689 26462 26462 E AndroidRuntime: Process: com.android.chrome, PID: 26462
06-12 19:27:51.689 26462 26462 E AndroidRuntime: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
06-12 19:27:51.689 26462 26462 E AndroidRuntime: at android.app.ContextImpl.startActivity(ContextImpl.java:881)
06-12 19:27:51.689 26462 26462 E AndroidRuntime: at android.app.ContextImpl.startActivity(ContextImpl.java:855)
06-12 19:27:51.689 26462 26462 E AndroidRuntime: at android.view.textclassifier.TextClassification.lambda$-android_view_textclassifier_TextClassification_5391(TextClassification.java:178)
06-12 19:27:51.689 26462 26462 E AndroidRuntime: at android.view.textclassifier.-$Lambda$mxr44OLodDKdoE5ddAZvMdsFssQ.$m$0(Unknown Source:8)
06-12 19:27:51.689 26462 26462 E AndroidRuntime: at andro
[SS-CLUSTER1-SP0]
algo_type ss
sampling 250
sensor xo_therm_buf
device cluster1
set_point 60000
set_point_clr 38000
time_constant 0
device_perf_floor 1824000
[SS-CLUSTER1-SP0]
algo_type ss
sampling 250
sensor xo_therm_buf
device cluster1
set_point 60000
set_point_clr 41000
time_constant 0
device_perf_floor 1478400
"""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
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
@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; }
@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 / 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 / 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 / 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 {