Skip to content

Instantly share code, notes, and snippets.

%module APIX
%{
#include "APIX_CInterlink.h"
#include "APIX_CInterlinkDefines.h"
%}
@atondwal
atondwal / spawn
Created May 28, 2012 17:43
spawn application in nth desktop
#!/bin/zsh
##################################################
# Get application's window ID
# Input:
# $1: application's process ID
# Output:
# $1: application's window ID
# Return value:
# success: 0
xargs <strings2 -i curl -A {} http://www.countablethoughts.com/cmuf12/puzzle.py >outs2
# Maintainer: Michael Pusterhofer <pusterhofer at student dot tugraz dot at>
# Contributor: Raphael Scholer <[email protected]>
# Contributor: Anish Tondwalkar <[email protected]>
pkgname=mathematica
pkgver=9.0.0
pkgrel=2
pkgdesc="A computational software program used in scientific, engineering, and mathematical fields and other areas of technical computing."
arch=('i686' 'x86_64')
url="http://www.wolfram.com/mathematica/"
license=('proprietary')
time for i in `ls -d --color=none *txt`; do time awk '/^#yyyy/{print "#day_of_year hour min value";};/#/{print};/^[^#]/{system("date -u -d\""$1" "$2"\" +\"%j %k %M \"|tr -d \"\\n\"");print $3;}' <$i >$i.dated ; done;
for i in `ls`; do mkdir `basename $i .baseline.dat`; done;
for i in `ls`; do mv $i `basename $i .baseline.dat`; done;
for i in {1992..2011}; do grep '^'$i *.dat > $i; done; #years.sh
for i in `ls`; do cd $i; ~/years.sh; cd ..; done;
for i in {1992..2011}; do mkdir -p IRIyears/$i; noglob zmv -W -C IRIsynthdb/*/$i IRIyears/$i/*; done;
Zomg; Zombies!!
books
books/RedditBooks
books/RedditBooks/170 The Handmaids Tale - Margaret Atwood
books/RedditBooks/170 The Handmaids Tale - Margaret Atwood/Handmaid's Tale, The - Margaret Atwood & Valerie Martin.jpg
books/RedditBooks/170 The Handmaids Tale - Margaret Atwood/Handmaid's Tale, The - Margaret Atwood & Valerie Martin.mobi
books/RedditBooks/170 The Handmaids Tale - Margaret Atwood/Handmaid's Tale, The - Margaret Atwood & Valerie Martin.opf
books/RedditBooks/170 The Handmaids Tale - Margaret Atwood/Handmaid's Tale, The - Margaret Atwood & Valerie Martin.epub
books/RedditBooks/140 Pale Blue Dot_ A Vision of the Human Future in Space - Carl Sagan
books/RedditBooks/140 Pale Blue Dot_ A Vision of the Human Future in Space - Carl Sagan/Pale Blue Dot_ A Vision of the Human Future in Space - Carl Sagan.jpg
# Conky Google Now style #
# Conky settings #
background no
update_interval 1
double_buffer yes
no_buffers yes
# Window specifications #
own_window yes
if [[ "$TERM" != emacs ]]; then
[[ -z "$terminfo[kdch1]" ]] || bindkey -M emacs "$terminfo[kdch1]" delete-char
[[ -z "$terminfo[khome]" ]] || bindkey -M emacs "$terminfo[khome]" beginning-of-line
[[ -z "$terminfo[kend]" ]] || bindkey -M emacs "$terminfo[kend]" end-of-line
[[ -z "$terminfo[kich1]" ]] || bindkey -M emacs "$terminfo[kich1]" overwrite-mode
[[ -z "$terminfo[kdch1]" ]] || bindkey -M vicmd "$terminfo[kdch1]" vi-delete-char
[[ -z "$terminfo[khome]" ]] || bindkey -M vicmd "$terminfo[khome]" vi-beginning-of-line
[[ -z "$terminfo[kend]" ]] || bindkey -M vicmd "$terminfo[kend]" vi-end-of-line
[[ -z "$terminfo[kich1]" ]] || bindkey -M vicmd "$terminfo[kich1]" overwrite-mode
gcc -Wall -O2 -g -fno-strict-aliasing -I. -I/home/atondwal/git/temu-1.0 -MMD -MP -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/home/atondwal/git/temu-1.0/slirp -DQEMU_IMG -c -o qemu-img-block-raw-posix.o block-raw-posix.c
block-raw-posix.c:242:26: error: ‘SIGUSR2’ undeclared here (not in a function)
block-raw-posix.c: In function ‘qemu_aio_init’:
block-raw-posix.c:264:22: error: storage size of ‘act’ isn’t known
block-raw-posix.c:268:5: warning: implicit declaration of function ‘sigfillset’ [-Wimplicit-function-declaration]
block-raw-posix.c:271:5: warning: implicit declaration of function ‘sigaction’ [-Wimplicit-function-declaration]
block-raw-posix.c:264:22: warning: unused variable ‘act’ [-Wunused-variable]
block-raw-posix.c: In function ‘qemu_aio_wait_start’:
block-raw-posix.c:348:5: warning: implicit declaration of function ‘sigemptyset’ [-Wimplicit-function-declaration]
block-raw-posix.c:349:5: warning: implicit declaration of function ‘sigaddset’ [-Wimplicit-function-declaration]