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
# Maintainer: Alireza Savand <alireza.savand@gmail.com> | |
# Special thanks to: olive, mirrr, GUiHKX, alessiofachechi, jeremy33, | |
# jstitch, plv, lahwaacz | |
pkgname=cnijfilter-mp280 | |
pkgver=3.40.1 | |
pkgrel=4 | |
_pkgrealver=3.40 | |
_pkgrealrel=1 | |
pkgdesc="Canon IJ Printer Driver (mp280 series)" |
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
import itertools | |
languages = ["en", "cs", "eng", "cze"] # list of language codes | |
language_separators = [".", "-"] # list of separators (between file name and extension) | |
subtitle_extensions = ["srt", "sub"] # list of subtitle extensions | |
def rename_file(old, new): | |
p("rename %s to %s" % (old, new)) | |
stat = os.stat(old) | |
os.rename(old, new) |
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 <iostream> | |
#include <sstream> | |
#include <fstream> | |
#include <string> | |
#include <map> | |
#include <utility> | |
#include <algorithm> | |
// trim from start | |
static inline std::string <rim(std::string &s) { |
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
pkgname=cutechess-git | |
pkgver=20130304 | |
pkgrel=1 | |
pkgdesc="GUI and cli application for automating chess engine tournaments.(xboard & UCI)" | |
url="http://ajonsson.kapsi.fi/cutechess.html" | |
arch=('i686' 'x86_64') | |
license=('GPL3') | |
depends=('qt4') | |
makedepends=('git') | |
source=('cutechess.desktop') |
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
diff --git src/client.c src/client.c | |
index 7b9790e..db38e8b 100644 | |
--- src/client.c | |
+++ src/client.c | |
@@ -1115,7 +1115,8 @@ client_winsize(struct client *c, struct geo *g) | |
c->wgeo.h = oh = tmp.h - (c->border + c->tbarw); | |
c->wgeo.w = ow = tmp.w - (c->border << 1); | |
- client_geo_hints(&c->wgeo, (int*)c->sizeh); | |
+ if(c->flags & CLIENT_FREE) |
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/env python | |
""" | |
Zadání úlohy: | |
Kolik slov délky n lze sestavit v abecedě {A,B,C,D} za podmínky, že prvky A a B nesousedí | |
(ale A může sousedět s A, B může sousedět s B). | |
""" | |
import itertools | |
from math import sqrt |
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/zsh | |
# Inspired by: | |
# http://askubuntu.com/questions/11634/how-can-i-substitute-colons-when-i-rsync-on-a-usb-key | |
autoload zargs zmv | |
fatcp() { | |
local src="$1" | |
local dest="$2" |
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
class MyComplex | |
{ | |
private: | |
double real, imag; | |
public: | |
MyComplex(){ | |
real = 0; | |
imag = 0; | |
} |
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
# Makefile for LaTeX files | |
# Original Makefile from http://www.math.psu.edu/elkin/math/497a/Makefile | |
# Please check http://www.acoustics.hut.fi/u/mairas/UltimateLatexMakefile | |
# for new versions. | |
# Copyright (c) 2005,2012 (in order of appearance): | |
# Matti Airas <Matti.Airas@hut.fi> | |
# Rainer Jung |
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
# Contributor: Felix Hanley <felix@seconddrawer.com.au> | |
pkgname=multimarkdown-git | |
_pkgname=multimarkdown | |
pkgver=3.7.1.2.g0d9c20e | |
pkgrel=1 | |
pkgdesc="Expanded version of John Gruber's original Markdown" | |
makedepends=('git' 'glib2') | |
optdepends=('texlive-most: latex and PDF output support') | |
url="https://github.com/fletcher/peg-multimarkdown" |
OlderNewer