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 ruby | |
require 'rubygems' | |
require 'hpricot' | |
require 'open-uri' | |
require 'cgi' | |
require 'pp' | |
require 'ostruct' | |
require 'optparse' | |
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
==> Bestimme letzte git-Revision... | |
-> Gefundene Version: 20090102 | |
==> Erstelle Paket: newsbeuter-git 20090102-2 i686 (Fr 2. Jan 11:31:23 CET 2009) | |
==> Prüfe Laufzeit-Abhängigkeiten... | |
==> Prüfe Buildtime-Abhängigkeiten... | |
==> Empfange Quellen... | |
-> newsbeuter-git.install im Build-Verzeichnis gefunden | |
-> newsbeuter-archlinux.patch im Build-Verzeichnis gefunden | |
==> Überprüfe Gültigkeit der Quell-Dateien mit md5sums... | |
newsbeuter-git.install ... Durchgelaufen |
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
class MenuEntry | |
{ | |
public: | |
MenuEntry(std::string n): name(n) { } | |
std::string name; | |
}; | |
class Settings : public MenuEntry | |
{ |
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
void MPD::dprint(const char *fmt, ...) | |
{ | |
if(!debug) return; | |
va_list list; | |
char msg[256]; | |
va_start(list, fmt); | |
vsprintf(msg, fmt, list); | |
va_end(list); |
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
MODULES=(skge slhc ac97_bus snd-seq snd-pcm snd snd-ac97-codec snd-via82xx soundcore fuse) |
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 | |
#Czyta dane z pliku | |
cnd=$(cat ~/bin/conky/pogoda.txt) | |
#Ustawia czcionkę obrazkową, odpowiadającą aktualnej pogoda. | |
if echo "$cnd" | grep -E -i -q 'partly cloudy'; then | |
echo 'c' | |
elif echo "$cnd" | grep -E -i -q 'fair|sunny'; then | |
echo 'b' |
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
// ==UserScript== | |
// @name TwitterKeys | |
// @namespace * | |
// @description use twitter keys directly on the twitter site | |
// @include http://twitter.com/* | |
// @include https://twitter.com/* | |
// ==/UserScript== | |
twitterkeys_url = 'http://thenextweb.com/TwitterKeys/keys.php'; |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define OVERFLOW -2147483648 | |
int main(int argc, char** argv) | |
{ | |
printf("so the following expression is totally correct:\n"); | |
printf(" %d == %d => %s\n", OVERFLOW, OVERFLOW, OVERFLOW==OVERFLOW? "true" : "false"); |
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
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- --> | |
<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN" | |
"http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd"> | |
<!-- See the manual page PolicyKit.conf(5) for file format --> | |
<config version="0.1"> | |
<match action="org.freedesktop.hal.storage.mount-removable"> | |
<return result="yes" /> |
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
V(a) = Vx * a² - 2 Cxy * a + Vy | |
Vx (a² - 2 * Cxy/Vx * a ) + Vy | |
Vx ( a² - 2 * Cxy / Vx * a + (Cxy/Vx)² ) + Vy - Cxy/Vx | |
V(a) = Vx (a - Cxy/Vx)² + Vy - Cxy/Vx | |
S( Cxy/Vx | Cxy/Vx ) | |
laut Buch muss noch nen Quadrat (²) an das Cxy im Scheitelpunkt =D | |
ergänz es halt :P |
OlderNewer