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 <time.h> | |
# include <locale.h> | |
int main(void) | |
{ | |
time_t currtime = time(NULL); // time_t time(time_t *timep) | |
struct tm *local, *gmt; | |
local = localtime(&currtime); |
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
*.aux | |
*.glo | |
*.idx | |
*.log | |
*.toc | |
*.ist | |
*.acn | |
*.acr | |
*.alg | |
*.bbl |
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 | |
# Usage: | |
# | |
# Go to the directory you want to contain the transcoded files and | |
# call this script: $ downcode.sh /path/to/ogg/files/to/be/transcoded | |
# The transcoded ogg files containing the old tags are placed in $PWD. | |
# --> Spaces are replaced by underscores (_) in both the file names of the | |
# ogg files being transcoded and the new ogg files! |
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
{-# LANGUAGE OverloadedStrings #-} | |
import System.IO | |
import System.IO.Error | |
import System.Locale | |
import System.Exit | |
import Control.Monad | |
import Control.Exception |
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
-- Dec2Bin | |
-- | |
data Digital = D1 | D0 | |
instance Show Digital where | |
show D1 = "1" | |
show D0 = "0" | |
instance Eq Digital where |
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
/* | |
Compile this file using a C++11-compliant compiler! | |
*/ | |
# include <iostream> | |
# include <string> | |
# include <vector> |
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
module Main where | |
import Control.Parallel.Strategies | |
import Data.List | |
-- Standard quicksort | |
qsort :: Ord a => [a] -> [a] | |
qsort [] = [] | |
qsort (x:xs) = let smaller = [e | e <- xs, e <= x] | |
bigger = [e | e <- xs, e > x] |
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
project(libbitarray) | |
cmake_minimum_required(VERSION 2.8) | |
set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} -O3) | |
include_directories(.) | |
set(libsources | |
bitarray.c | |
) |
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
module Url where | |
import Data.List | |
import Text.Parsec | |
import Text.Parsec.String | |
data Proto = HTTP | FTP | |
data URL = URL { |
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 <stdlib.h> | |
# include <stdio.h> | |
# include <sys/stat.h> | |
# include <pthread.h> | |
# include <fcgiapp.h> | |
const char* const sockpath = "/tmp/fcgicpp.sock"; |
OlderNewer