- Platformen:
- Unix/Linux: 9
- Win32: 3
- Programmiersprachen:
- C: 8
- C++: 8
- J2EE/Java: 5
- XSLT: 2
- (La)TeX: 2
- Perl: 2
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
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <fcntl.h> | |
#include <string.h> | |
#include <unistd.h> |
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
-module(p3). | |
-export([prime_sieve/1, solution/0, solution/1]). | |
% generate a list of all primes smaller than N | |
prime_sieve(N) when is_integer(N) -> | |
prime_sieve([ 2 ] ++ [ X || X <- lists:seq(3, N) ]); | |
prime_sieve([]) -> []; | |
prime_sieve([H|C]) -> | |
[ H ] ++ prime_sieve(lists:filter(fun(X)-> (X rem H) /= 0 end, C)). |
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/local/bin/python2.7 | |
import getopt | |
import os | |
import os.path | |
import smtplib | |
import sys | |
import tempfile | |
import socket | |
import time | |
import subprocess |
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
-- Environment | |
local awful = require('awful') | |
local capi = { | |
tag = tag, | |
mouse = mouse, | |
screen = screen, | |
keygrabber = keygrabber, | |
client = client | |
} | |
local ipairs = ipairs |
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
----------------------------- | |
-- Plan9 theme for Awesome -- | |
----------------------------- | |
return { | |
font = "Terminus 8", | |
bg_normal = "#9fefef", -- done | |
bg_focus = "#57a8a8", -- done | |
bg_urgent = "#478847", -- done |
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
while ! bioctl -c C -l 6349e25527df5700.j softraid0; do | |
sleep 1 | |
done | |
fsck -y /home | |
mount /home |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <fcntl.h> | |
#include <string.h> | |
#include <unistd.h> |