Skip to content

Instantly share code, notes, and snippets.

View AeroNotix's full-sized avatar
💭
🇺🇦

Aaron France AeroNotix

💭
🇺🇦
View GitHub Profile
22:51:17 AeroNotix | dmpayton: my attempt basically creating a function which subbed to the hook.window_new (or whatever it's called). │
| This function had a dict that I popped when a window matching a dict entry got used then sent it to the correct │
| window, with an inner closure. │
22:51:30 dmpayton | That's what I used to us │
22:51:51 dmpayton | https://github.com/dmpayton/dotfiles/blob/ef0e94f1dd17642a2cb478849cd9fc61924665a0/qtile/config.py#L124 │
22:52:25 AeroNotix | dmpayton: no │
22:52:38 AeroNotix | dmpayton: I was trying to make it so it'd only put them into the groups the _first_ time │
22:52:49 AeroNotix | dmpayton
class Defaults:
def __init__(self, *defaults):
"""
defaults: A list of (name, value, description) tuples.
"""
self.defaults = defaults
def load(self, target, config):
"""
Loads a dict of attributes, using specified defaults, onto target.
def cmd_swap_groups(self, group=None):
for item in range(len(self.windows)):
try:
self.windows.pop().togroup(group)
except KeyError:
break
from django.shortcuts import render_to_response
from django.http import HttpResponse
from django.template import RequestContext
from django.views.decorators.csrf import csrf_protect
from django.template import Template, Context
from djangotest.blog.models import Blog
from djangotest.blog.forms import ContactForm
from django.shortcuts import render_to_response
from django.http import HttpResponse
from django.template import RequestContext
from django.views.decorators.csrf import csrf_protect
from django.template import Template, Context
from djangotest.blog.models import Blog
from djangotest.blog.forms import ContactForm
getItemAt(x, y) {
;; This function gets the text at a location
MouseClick, left, x, y
Send, {HOME}
Sleep, 10
Send, {SHIFTDOWN}{END}{SHIFTUP}
Sleep, 10
Send, {CTRLDOWN}c{CTRLUP}
[xeno@archlinux ~]$ sudo pacman -Syu
:: Synchronising package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
:: Starting full system upgrade...
:: Replace lib32-libgl with catalyst/lib32-catalyst-utils? [Y/n] y
resolving dependencies...
looking for inter-conflicts...
/usr/bin/python2 ./py_client.py -p /usr/lib/python2.7/site-packages /usr/share/xcb/xproto.xml
Traceback (most recent call last):
File "./py_client.py", line 623, in <module>
module.generate()
File "/usr/lib/python2.7/site-packages/xcbgen/state.py", line 101, in generate
item.out(name)
File "./py_client.py", line 363, in py_struct
_py_complex(self, name)
File "./py_client.py", line 327, in _py_complex
_py(' self.%s = xcb.List(self, count, %s, %s, %d)', _n(field.field_name), _py_get_expr(field.type.expr), field.py_listtype, field.py_listsize)
>>> sys.__file__
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute '__file__'
def link(request):
if request.POST.get("link", None):
subprocess.call(['firefox-aurora', request.POST['link']])
return render_to_response("link.html",
{},
RequestContext(request))