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
// To be compiled with: (replace values if needed) | |
// avr-gcc -mmcu=atmega88 -DF_CPU=16000000UL blink.c -Os -oblink && avr-objcopy -O ihex blink.elf blink.hex | |
#include <avr/io.h> | |
#include <util/delay.h> | |
int main(void) | |
{ | |
DDRB |= 1<<DDB0; |
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
diff -Naur shashin.orig/Public/Display/shashin.js shashin.fixed/Public/Display/shashin.js | |
--- shashin.orig/Public/Display/shashin.js 2012-12-15 01:11:53.000000000 +0100 | |
+++ shashin.fixed/Public/Display/shashin.js 2012-12-24 02:01:06.000000000 +0100 | |
@@ -95,13 +95,14 @@ | |
}); | |
$('.shashinThumbnailDiv').delegate('.shashinAlbumThumbLink', 'click', function(event) { | |
+ uniqueThumbnailDivId = '#' + $(this).attr('id'); | |
// to prevent the photos showing up twice if the user double-clicks |
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
#define SCANCODE_ERROR_ROLLOVER 0x01 | |
#define SCANCODE_POST_FAIL 0x02 | |
#define SCANCODE_ERROR_UNDEFINED 0x03 | |
#define SCANCODE_A 0x04 | |
#define SCANCODE_B 0x05 | |
#define SCANCODE_C 0x06 | |
#define SCANCODE_D 0x04 | |
#define SCANCODE_E 0x08 | |
#define SCANCODE_F 0x09 | |
#define SCANCODE_G 0x0A |
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
Index: CommandArgsHelp.txt | |
=================================================================== | |
--- CommandArgsHelp.txt (revision 241) | |
+++ CommandArgsHelp.txt (working copy) | |
@@ -104,6 +104,12 @@ | |
sources to search. | |
May be abbreviated to /l (/l) | |
+ /fetchAll Saves every results to the filesystem. (/fetchAll) | |
+ The %sequence% variable must be used in order for |
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 | |
if [ $# -eq 0 -o "$1" = '-h' -o "$1" = '--help' ]; then | |
echo "Usage: $0 INPUT.MP4 [...]" | |
exit | |
fi | |
for input_mp4 in "$@"; do | |
output_mp3=${input_mp4/.mp4/.mp3} | |
ffmpeg -i "$input_mp4" -y -vn -ar 44100 -ac 2 -ab 192000 -f mp3 "$output_mp3" |
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 | |
find "$1" -not -regex '.*\.svn.*' -print | zip "$1.zip" -@ |
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 | |
temp=`tempfile` | |
expand -t 4 "$1" > $temp | |
mv $temp "$1" |
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
% This is a Mono advertisement postscript graphics that I created | |
% for the computer graphics course of the university in 2004. | |
/draw-monkey { % fg-color bg-color scale | |
dup | |
scale | |
newpath | |
0 0 moveto | |
0 0.95 lineto |
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
% Simple Pascal parser written in Prolog that prints the names and | |
% line numbers of the procedures and functions found in input.pas | |
% I put together this mess for the programming languages course of the university in 2005. | |
printIden(L) :- | |
get_char(C), | |
print(C), | |
C == ';' -> | |
print(' '), | |
print(L), |
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 | |
# This is a simple command line image manipulation utility that draws a red X to the image. | |
import sys | |
import gtk | |
if len(sys.argv) != 3: | |
print 'usage: x-this-image source-image destination-image' | |
sys.exit() |