Skip to content

Instantly share code, notes, and snippets.

View alfanick's full-sized avatar
💭
I may be slow to respond.

Amadeusz Leonardo Juskowiak alfanick

💭
I may be slow to respond.
View GitHub Profile
#include <iostream>
#include <algorithm>
using namespace std;
void kmp(string siano, string igla)
{
int P[igla.size()], t = 0, j = 0, i = 1;
P[0]=0; P[1]=0;
@alfanick
alfanick / lrbackup.rb
Created December 28, 2009 20:05
Simple script which helps backuping Lightroom catalog
#!/usr/local/bin/ruby
require 'fileutils'
require 'ftools'
MKISOFS_BIN = '/opt/local/bin/mkisofs'
module Lightroom
class Backup
attr_accessor :catalog
#include <iostream>
#include <windows.h>
#define W_SIZE 24
#define H_SIZE 79
#define TIME 300
using namespace std;
enum stan { ZYWY, MARTWY };
#include <iostream>
#include <windows.h>
#define W_SIZE 50
#define H_SIZE 40
#define TIME 10
using namespace std;
enum stan { ZYWY, MARTWY };