This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while true | |
do | |
gnome-screenshot -w | |
sleep 3 | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Compile me with native full-screen (recommended) | |
curl -L https://git.io/vdiqC | gcc -DNATIVE -framework Cocoa -o ~/bin/black -x objective-c - | |
Compile me without native full-screen (recommended) | |
curl -L https://git.io/vdiqC | gcc -framework Cocoa -o ~/bin/black -x objective-c - | |
*/ | |
#import <Cocoa/Cocoa.h> | |
#include <stdio.h> | |
void usage(NSString*name, NSArray*screens) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% vim: syntax=bst | |
% In some fields like theoretical particle physics it is common in | |
% talks to use one's initials in citations while writing the surname | |
% of all other authors in full. This BibTeX style allows this. Just | |
% change line 11 and 12. | |
% Example: | |
% | |
% \usepackage[square]{natbib} % Uses natbib for management | |
% \usepackage{bibentry} % Uses inline citation, i.e. don't | |
% actually print a bibliography |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
wd=`pwd` | |
for var in "$@" | |
do | |
file=$wd/$var | |
osascript <<EOF | |
set x to the clipboard | |
set notesFile to POSIX file "$file" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Adafruit_BluefruitLE | |
from Adafruit_BluefruitLE.services import UART | |
import os | |
import pty | |
import threading | |
ble = Adafruit_BluefruitLE.get_provider() | |
class BLEbridge: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#!/usr/bin/env python | |
import Adafruit_I2C as i2c | |
import ctypes | |
import struct | |
import math | |
import tools | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/expect -f | |
#log_user 0 | |
set userhost [lrange $argv 0 0] | |
set userhost [split $userhost "@"] | |
set len [llength $userhost] | |
if {$len == 2} { | |
set user [lrange $userhost 0 0] |