This file contains 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
--- src/background.C.orig 2009-04-25 01:12:46.000000000 +0200 | |
+++ src/background.C 2009-04-25 01:19:21.000000000 +0200 | |
@@ -261,7 +261,7 @@ | |
unsigned int w = 0, h = 0; | |
unsigned int n; | |
unsigned long new_flags = (flags & (~geometryFlags)); | |
- char *p; | |
+ const char *p; | |
# define MAXLEN_GEOM 256 /* could be longer than regular geometry string */ | |
This file contains 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/sh | |
# Opens a Spotify URI passed as arg, or starts Spotify if executed without args | |
SPOTIFY_PATH="$HOME/.wine/drive_c/Program Files/Spotify/spotify.exe" | |
if [ "$#" -eq 1 ]; then | |
wine "$SPOTIFY_PATH" /uri "$1" | |
else | |
wine "$SPOTIFY_PATH" | |
fi |
This file contains 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 | |
TARGET_DIR="/tmp/" | |
shopt -s extglob | |
for FLAC_DIR in "$@" | |
do | |
MP3_DIR="$TARGET_DIR/$(basename "$FLAC_DIR") (V0)" | |
mkdir -p "$MP3_DIR" |
This file contains 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
gconftool-2 -t string -s /desktop/gnome/url-handlers/spotify/command "<path to spotify wrapper script> %s" | |
gconftool-2 -s /desktop/gnome/url-handlers/spotify/needs_terminal false -t bool | |
gconftool-2 -s /desktop/gnome/url-handlers/spotify/enabled true -t bool |
This file contains 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 | |
# -*- coding: utf-8 -*- | |
""" | |
Filling out forms is hard, let's do some Python. | |
This program determines the symbol and word count excluding markup for | |
a (X)HTML document, by passing a POST request to the count_words.php | |
script at the INF5270 web site. | |
Note that there is NO error handling whatsoever, so use at your own peril. |
This file contains 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
\documentclass[a4paper, 11pt]{article} | |
\usepackage[T1]{fontenc} | |
\usepackage[utf8]{inputenc} | |
\usepackage[english]{babel} | |
%\usepackage[norsk]{babel} | |
\usepackage{epsfig, times} | |
\usepackage{amsmath} | |
\usepackage{verbatim} | |
\usepackage{cite} | |
%\usepackage{uiosloforside} |
This file contains 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
>>> np.average(runtimes) | |
0.026240115346908569 | |
>>> np.std(runtimes) | |
0.0093610521219894029 | |
>>> min(runtimes) | |
3.5047531127929688e-05 | |
>>> max(runtimes) |
This file contains 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
>>> np.average(runtimes) | |
0.0023430713295936583 | |
>>> np.std(runtimes) | |
0.079931433047229744 | |
>>> min(runtimes) | |
2.09808349609375e-05 | |
>>> max(runtimes) |
This file contains 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
>>> np.average(runtimes) | |
0.012782844924926758 | |
>>> np.std(runtimes) | |
0.030188058451403252 | |
>>> min(runtimes) | |
0.0001430511474609375 | |
>>> max(runtimes) |
This file contains 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
# | |
# WeeChat configuration file, created by WeeChat v0.2.6.3 on Mon Apr 19 12:48:26 2010 | |
# WARNING! Be careful when editing this file, WeeChat writes this file when exiting. | |
# | |
[look] | |
look_save_on_exit = on | |
look_set_title = on | |
look_startup_logo = on | |
look_startup_version = on |
OlderNewer