Skip to content

Instantly share code, notes, and snippets.

@randallm
randallm / config.py
Created August 25, 2012 20:10
qtile config.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from libqtile import bar, hook, layout, widget
from libqtile.command import lazy
from libqtile.manager import Drag, Click, Group, Key, Screen
##-> Commands to spawn
class Commands(object):
Section "InputClass"
Identifier "touchpad catchall"
Driver "synaptics"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Option "TapButton1" "1"
Option "TapButton2" "2"
Option "TapButton3" "3"
EndSection
@randallm
randallm / ahs_python_roadmap.txt
Created October 29, 2012 04:00
ahs software dev python roadmap
@terence
We need to accomplish 4 things going into learning Django to the point where we can create a basic webapp (for the sake of example, and also what we're most likely to actually do, the homework photo sharing app).
1. Get Python and batteries efficiently installed onto all computers.
Steps to take:
1. Contact Mr. Morris on batch installing ActivePython + subl onto all lab computers
2. If #1 fails, contact IT dept. to get software installed
3. Point people at http://wbond.net/sublime_packages/package_control, get linter installed
@randallm
randallm / kairui_lesson1.py
Created December 7, 2012 04:30
for kairui
class Attacker:
# use 4 spaces, you fool
def __init__(self):
self.user_high = None
def user_input(self):
self.user_high = input("enter your high: ")
return self.user_high
attacker_1 = Attacker()
Setting up Steam content in /home/randall/.local/share/Steam
Running Steam on arch rolling 64-bit
STEAM_RUNTIME is enabled automatically
ILocalize::AddFile() failed to load file "public/steambootstrapper_english.txt".
Installing breakpad exception handler for appid(steam)/version(0_client)
Installing breakpad exception handler for appid(steam)/version(1.0_client)
Installing breakpad exception handler for appid(steam)/version(1.0_client)
Installing breakpad exception handler for appid(steam)/version(1.0_client)
Installing breakpad exception handler for appid(steam)/version(1.0_client)
Running Steam on arch rolling 64-bit
�X���xAuthenticAMD�Linux 3.7.4-1-ARCH #1 SMP PREEMPT Mon Jan 21 23:05:29 CET 2013 x86_64processor : 0
vendor_id : AuthenticAMD
cpu family : 16
model : 4
model name : AMD Phenom(tm) II X4 B55 Processor
stepping : 3
microcode : 0x10000c8
cpu MHz : 3599.903
cache size : 512 KB
physical id : 0
@randallm
randallm / gist:5087003
Last active December 14, 2015 12:29 — forked from DeBomb123/gist:5086975
for sam
def check_divisible_by_three(n):
if n % 3 == 0:
return True
else:
return False
def cube(n):
return n ** 3
MDMP�� 2�Q��I�<� ��8pgG@gG^P gGG�#gG
�#gG�. gGp)�.
gG���
$��10�� ���&$1���P)�P9%1��� <� L91P���N��^A1�����a���B1��������C1���`��`E1л�0
�0G1p���-H1P�� �/��OI1����R��bJ1�� pe�p�K1��� @��@�L1�� ���M1��� �����N1�� ����`1�� ���3�1`�� P6�PV�1`c� Y� y�1`� ������1` ������1 � `��`�1�7� 0�0'�1PS�*�:i����yY8 ��Ol��Ol��0���0��T�c��g��2��x0��0P��0��(�c�0P�1%��g��0���0���2�2���g��#�և������@���6���u�
c++@���6���6��� �'�9+D����#�6��+4��9+DG��1���K���O�2H7���G��O���2��2H7����2�� �2H7�4�����2����4����D��Ḏ��o��ڇ��2���k���6���2��G�+
ڇ��2�� t��̱��o��ڇ�h3���n��̱��ڇ��3��3��ڇ�yD@BE�4��G���EG�83��͙�� �E�����-c��3��G�x3�����G�H7� ��, �H7��5���3��̱��o��ڇ��3���u��̱��ڇ�aDb���o���-c�G�o��aD(�c�BE�@BE�H7� �4��8X��PX��̱��X4��By��̱��8X��G�j4�����5��
H7�X�ẁ��/������#+�
@randallm
randallm / gist:6096913
Created July 28, 2013 00:49
Centered left-aligned-text list
<style>
ul {
margin: 0;
display: inline-block;
list-style: none;
text-align: left;
}
.icon-wrapper {
text-align: center;
Aug 24 11:32:08 arsenic kernel: [12508.249700] usb 8-4: USB disconnect, device number 3
Aug 24 11:32:11 arsenic kernel: [12510.694715] usb 8-4: new high-speed USB device number 4 using ehci-pci
Aug 24 11:32:11 arsenic kernel: [12510.844530] usb 8-4: New USB device found, idVendor=0781, idProduct=8889
Aug 24 11:32:11 arsenic kernel: [12510.844534] usb 8-4: New USB device strings: Mfr=2, Product=3, SerialNumber=4
Aug 24 11:32:11 arsenic kernel: [12510.844536] usb 8-4: Product: ImageMate 8 in 1
Aug 24 11:32:11 arsenic kernel: [12510.844537] usb 8-4: Manufacturer: SanDisk
Aug 24 11:32:11 arsenic kernel: [12510.844539] usb 8-4: SerialNumber: 0000243642
Aug 24 11:32:11 arsenic kernel: [12510.845390] scsi9 : usb-storage 8-4:1.0
Aug 24 11:32:12 arsenic kernel: [12511.842903] scsi 9:0:0:0: Direct-Access Generic STORAGE DEVICE 9139 PQ: 0 ANSI: 0
Aug 24 11:32:33 arsenic kernel: [12532.906650] usb 8-4: reset high-speed USB device number 4 using ehci-pci