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
#!/bin/bash | |
# cp all *.in to *.ans | |
for file in *.in | |
do | |
f=${file%%.in} | |
cp "$f.in" "$f.ans" | |
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
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package przyklady; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.io.ObjectInputStream; |
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> | |
struct Node { | |
struct Node* next; | |
int val; | |
}; | |
typedef struct Lifo { | |
struct Node* head; |
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/bin/python2 | |
# Title : uptime-client | |
# Date : 2011-01-10 | |
# Modified : 2011-01-13 | |
# Author : Damian Skrodzki <[email protected]> | |
# Version : 0.1 | |
# Description : Client designed for sending data to server for uptime measurement. | |
# TODO : - |
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 <ctype.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/types.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <regex.h> | |
/** | |
* Simple grep |
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
#!/bin/sh | |
# Title : tree | |
# See : http://damienix.jogger.pl/2010/12/01/skrypt-bashowy-wyswietlajacy-drzewko-struktury-katalogow/ | |
# Date : 2010-12-16 | |
# Author : Damian Skrodzki <[email protected]> | |
# Description : Prints directory tree | |
clr_dir='\033[1;34m' # Blue | |
clr_fil='\033[0;33m' # Yellow |
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/bin/perl | |
#: Date : 2010-12-12 | |
#: Author : Damian Skrodzki <[email protected]> | |
#: Description : Prints words statistics for file. | |
open(F, "file") || die("Could not open file!"); | |
@content=<F>; | |
close(F); |
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
-- Creates ------------------------------------------------------------ | |
CREATE DATABASE stars; | |
-- TRUNCATE TABLE objects; | |
CREATE TABLE objects ( | |
oname VARCHAR(32) PRIMARY KEY, | |
distance FLOAT NULL | |
); |
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
#!/bin/sh | |
#: TItle : ytdownload | |
#; Date : 2010-12-12 | |
#: Modified : 2010-12-14 | |
#: Author : Damian Skrodzki <[email protected]> | |
#: Version : 1.2 | |
#: Description : Downloads videos loaded by flashplugin. | |
#: TODO : - command line interface | |