Skip to content

Instantly share code, notes, and snippets.

View karol-may's full-sized avatar

Karol May karol-may

View GitHub Profile
/*
This file contains validations that are too specific to be part of the core
Please reference the file AFTER the translation file or the rules will be overwritten
Use at your own risk. We can't provide support for most of the validations
*/
(function($){
if($.validationEngineLanguage == undefined || $.validationEngineLanguage.allRules == undefined )
alert("Please include other-validations.js AFTER the translation file");
else {
$.validationEngineLanguage.allRules["postcodeUK"] = {
@karol-may
karol-may / zadanie238.c
Created October 23, 2011 09:57
zadanie 23/10/11 8
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
/* qsort int comparison function */
int int_cmp(const void *a, const void *b)
{
const int *ia = (const int *) a; // casting pointer types
const int *ib = (const int *) b;
return *ia - *ib;
@karol-may
karol-may / zadanie237.c
Created October 23, 2011 09:37
zadanie 23/10/11 7
#include <stdio.h>
#include <math.h>
int main()
{
double x,r,i;
scanf("%lf", &x);
if (x>0){