Skip to content

Instantly share code, notes, and snippets.

View antonva's full-sized avatar

Anton Vilhelm Ásgeirsson antonva

  • Reykjavik
View GitHub Profile
/*
* =====================================================================================
*
* Filename: keyword.cpp
*
* Description: Keyword Cipher written for T-109-INTO
*
*
* Version: 1.0
* Created: fös 1.nóv 2013 00:04:28
myManageHook = manageDocks <+> composeAll
[ className =? "Steam" --> doFloat
, className =? "Steam" --> doShift "6:steam"
, className =? "dota_linux" --> doShift "6:steam"
, className =? "steam" --> doShift "3:code"
, className =? "steam" --> doFloat --bigpicturemode
, className =? "Chromium" --> doShift "2:web"
, className =? "mpv" --> doFloat
, className =? "Gimp" --> doShift "7:gimp"
, isFullscreen --> doFullFloat --fullscreen flash and other stuff
#!/usr/bin/env node
//Dependencies.
var clc = require('cli-color'),
util = require('util'),
ic = require('irc-colors'),
whois = require('whois-available'),
imdb = require('imdb-api'),
config = require('./modules/config.js'),
eventSystem = require('./modules/eventSystem.js'),
/*
* allOddBits - return 1 if all odd-numbered bits in word set to 1
* Examples allOddBits(0xFFFFFFFD) = 0, allOddBits(0xAAAAAAAA) = 1
* Legal ops: ! ~ & ^ | + << >>
* Max ops: 12
* Rating: 2
*/
int allOddBits(int x) {
int a = x >> 16;
x &= a;
310 /*
311 * float_neg - Return bit-level equivalent of expression -f for
312 * floating point argument f.
313 * Both the argument and result are passed as unsigned int's, but
314 * they are to be interpreted as the bit-level representations of
315 * single-precision floating point values.
Running Steam on arch rolling 64-bit
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(1373503443_client)
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
after 73 requests (73 known processed) with 0 events remaining.
Running Steam on arch rolling 64-bit
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(1380154943_client)
Installing breakpad exception handler for appid(steam)/version(1380154943_client)
unlinked 0 orphaned pipes
Running Steam on arch rolling 64-bit
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(1373503443_client)
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
after 73 requests (73 known processed) with 0 events remaining.
Running Steam on arch rolling 64-bit
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(1380154943_client)
Installing breakpad exception handler for appid(steam)/version(1380154943_client)
unlinked 0 orphaned pipes
@antonva
antonva / darth.c
Last active December 22, 2015 17:49
#include "stdint.h"
#include "stdio.h"
int main()
{
uint8_t x = 0x55;
uint8_t y0, y1, y2, y3, y;
y1= (x >> 4);
printf("y1 is: %u\n", y1);
import XMonad
import XMonad.Hooks.ManageDocks
import XMonad.Hooks.ManageHelpers
import XMonad.Hooks.DynamicHooks
import XMonad.Hooks.DynamicLog
import XMonad.Layout.PerWorkspace --Gimp
import XMonad.Layout.Fullscreen
import XMonad.Layout.NoBorders
import XMonad.Layout.IM --Gimp
import XMonad.Layout.Reflect --Gimp
20 #Do evil.
21 while True:
22 f = open('rickroll.txt')
23 s.send("espeak \n")
24 for line in f.readlines():
25 s.send(line + "\n")
27 break