I hereby claim:
- I am seletz on github.
- I am seletz (https://keybase.io/seletz) on keybase.
- I have a public key ASDUpiRgFWwhHifECeWfIxoffMwZubpVp-GkFp0emqRHMwo
To claim this, I am signing this object:
# Copyright @ Bjarte Johansen 2012 | |
# License: http://ljos.mit-license.org/ | |
from AppKit import NSApplication, NSApp, NSWorkspace | |
from Foundation import NSObject, NSLog | |
from PyObjCTools import AppHelper | |
from Quartz import kCGWindowListOptionOnScreenOnly, kCGNullWindowID, CGWindowListCopyWindowInfo | |
class AppDelegate(NSObject): | |
def applicationDidFinishLaunching_(self, notification): |
#!/bin/sh | |
M2_REPO=${HOME}/.m2 | |
OLDFILES=/tmp/deleted_artifacts.txt | |
AGE=181 # more or less 6 months and it's a palindromic prime number, so it's cool | |
echo "==== To be Deleted Jars ====" >> ${OLDFILES} | |
find "${M2_REPO}" -name '*-SNAPSHOT*jar' -atime +${AGE} -exec dirname {} \; >> ${OLDFILES} | |
echo "==== To be Deleted Wars/Ears ====" >> ${OLDFILES} |
I hereby claim:
To claim this, I am signing this object:
library IEEE; | |
use IEEE.std_logic_1164.all; | |
use IEEE.std_logic_arith.all; | |
use IEEE.std_logic_unsigned.all; | |
use work.constants.all; | |
use work.ctypes.all; | |
entity ALU is port ( | |
clk : in std_logic; | |
#!/bin/bash | |
function usage() { | |
echo "usage: fbranch <issue no> <tagline>..." | |
} | |
issue=$1 | |
shift |
#!/bin/bash | |
#set -x | |
VENV=$1 | |
VH=$VIRTUALENV_ROOT/$VENV | |
# Adjust this to the actual python version you want to convert your venv to | |
PYTHON_ROOT=/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7 | |
test -d "$VIRTUALENV_ROOT/p27" || { |
class MyCallable(object): | |
def __init__(self, urlparts, callable): | |
self.urlparts = urlparts | |
self.callable = callable | |
def __call__(self, **kwargs): | |
print kwargs | |
print self.urlparts | |
def __getattr__(self, name): | |
# Return a callable object of this same type so that you can just keep | |
# chaining together calls and just adding that missing attribute to the |