Skip to content

Instantly share code, notes, and snippets.

View albertzak's full-sized avatar

Albert Zak albertzak

View GitHub Profile
// Wiggle wiggle wiggle (!)
// somewhat borrowed(tm) from AirBnB
@-webkit-keyframes wiggle
from
-webkit-transform: rotate(0deg)
to
-webkit-transform: rotate(2deg)
from
-webkit-transform: rotate(2deg)
S.cfga({
"defaultToCurrentScreen" : true,
"secondsBetweenRepeat" : 0.1,
"checkDefaultsOnLoad" : true,
"focusCheckWidthMax" : 3000,
"orderScreensLeftToRight" : true
});
S.bnda({
@albertzak
albertzak / example.html
Created October 28, 2014 08:56
jQCloud - Click on a word to slide open a description pane (Google Images style)
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jqcloud/1.0.4/jqcloud-1.0.4.min.js"></script>
<script type="text/javascript">
makeClickable = function() {
@albertzak
albertzak / Preferences.sublime-settings
Created December 7, 2014 05:09
Sublime Text Settings
{
"color_scheme": "Packages/Color Scheme - Default/Cobalt.tmTheme",
"ensure_newline_at_eof_on_save": true,
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
".meteor/local"
],
Verifying that +albertzak is my openname (Bitcoin username). https://onename.com/albertzak
@albertzak
albertzak / pre-commit
Created August 25, 2015 21:26
Prevent committing dev tags
#!/bin/sh
if git rev-parse --verify HEAD >/dev/null 2>&1
then
against=HEAD
else
# Initial commit: diff against an empty tree object
against=$(git hash-object -t tree /dev/null)
fi
@albertzak
albertzak / wacom.md
Created November 11, 2015 18:19
Troubleshooting Wacom Driver Issues on OS X

Old Wacom Tablets <3 OS X Updates

Have you got an old Wacom Pen Tablet (Ex. Bamboo CTH-470) running on an old driver because the newer drivers don't support your old tablet? Are you running a recent OS X, and your mac won't boot after you update your system? Keep this in mind before you install your next OS X update.

Step 1: Remove Pen Tablet driver and preferences

This is important. Before you install any OS X updates, completely remove the Tablet driver and preferences from your system.

Step 1.1: Wacom Utility

int run[] = { 0, 0 };
int turn = 0;
/**
* Function to enter critical section.
*/
void enterCriticalSection_dekker(int threadId)
{
run[threadId] = 1;
while ( run[1 - threadId] != 0 ) {
#!/bin/bash
fail() {
echo "search: abort due to fatal error." 1>&2
exit 1
}
if [ ! -z $1 ] && [ "--help" == $1 ]; then
echo "V01.01 Vorname Nachname Personenkennzahl"
elif [ ! -z $1 ]; then
/* Algorithmen und Datenstrukturen Uebung 5 */
#include <stdio.h>
#include <stdlib.h>
// Globale Variablen und Typdefinitionen
typedef struct node_ {
int key;