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
SELECT *, md5(data) as md5, TRUNCATE(LENGTH(`data`)/1000,1) as "SIZE (kB)" | |
FROM `image` |
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/php | |
<?php | |
class A { | |
public $a; | |
public function __construct($a) { | |
$this->a = $a; | |
} |
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 | |
# What do: Converting, manipulating etc. jpegs to CMYK colorspace | |
# Script is absolutly free/libre, but no guarantee. | |
# Author: Ondřej Profant | |
function 2cmyk { | |
echo -e "[info]\tThis operation needs a lot of CPU resources. Probably will take a long time." | |
for i in *.jpg ; do | |
mv $i ${i%.jpg}rgb.jpg | |
convert -depth 8 -colorspace cmyk -alpha Off ${i%.jpg}rgb.jpg ${i%.jpg}cmyk.jpg |
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
using System; | |
using System.Threading; | |
using Gtk; | |
namespace koncept | |
{ | |
public static class MainClass | |
{ | |
/* locks */ | |
public static object lockEnd; |
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 | |
#============================================================================== | |
# | |
# FILE: frp.sh | |
# | |
# USAGE: | |
# ./frp.sh --list list.txt -f text.tex | |
# ./frp.sh --help | |
# | |
# DESCRIPTION: Finds the patterns from list in LaTeX source code and replaces them by index entry. |
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
// MSVS spouští program ve složce projektu, např: | |
// C:\Users\keddie\Documents\Visual Studio 2010\Projects\<name> | |
void print(char c) { | |
cout << c; | |
} | |
int _tmain() | |
{ | |
ifstream in("in.txt", ifstream::in); // V MSVS se aplikace spousti v hlavni slozce aplikace |
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 <vector> | |
#include <string> | |
#include <iostream> | |
#include <algorithm> | |
using namespace std; | |
template <typename T> | |
void print(T element) { | |
cout << element << ' '; | |
} |
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 | |
# Author: Ondřej Profant, 2012 | |
# Email: ondrej.profant <> gmail.com | |
# Licence: GPL | |
# Sorted files from gived dirs by file's sufixes. And it is little bit complicated than just copy (for example see arg LIMIT etc.). | |
# I use it as final step after PhotoRec recovery app. | |
# Sorry for Czech texts. | |
# TODO: | |
# -- cmd args | |
# -- clean code |
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 | |
# Author: Ondřej Profant, 2012 | |
# Mail: ondrej.profant <> gmail.com | |
# Licence: GPL | |
# Utility to clean/sort huge directories. For example for move all preview images (small files) from dir to another dir. | |
LICENCE=GPL | |
VERSION=0.1 | |
DEFAULT_LIMIT=$((10 << 10)); #10kb | |
function help() { |
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
/** | |
* Author: Ondřej Profant, 2010 | |
* Velmi stará a špatná školní práce... | |
*/ | |
using System; | |
using CodEx; | |
namespace Nejcastejsi | |
{ |
OlderNewer