Skip to content

Instantly share code, notes, and snippets.

View leonardinius's full-sized avatar

Leonids Maslovs leonardinius

View GitHub Profile
public static class PasswordChange {
@MinLength(5)
@Required
public String password;
@MinLength(5)
@Required
public String repeatPassword;
public String getPassword() {
@leonardinius
leonardinius / solutions.clj
Last active October 28, 2021 10:48
4clojure my solutions
;; http://www.4clojure.com/problem/1
;; Nothing but the Truth
;; Difficulty: Elementary Topics:
;; Description: This is a clojure form. Enter a value which will make the form evaluate to true. Don't over think it! If you are confused, see the getting started page. Hint: true is equal to true.
;; TestCases:
;; (= __ true)
true
;; http://www.4clojure.com/problem/2
@leonardinius
leonardinius / create_project.sh
Created September 7, 2012 16:43 — forked from shazow/create_project.sh
Setup deployment target for Nginx + Python/uWSGI + Supervisor + Git
#!/bin/bash
# Setup deployment target for Nginx + Python/uWSGI + Supervisor + Git
function usage() {
cat << EOF
Usage: $0 [-y] PROJECT_NAME [DOMAIN]
Options:
-y No prompts, assume yes to all.
@leonardinius
leonardinius / index.md
Created July 19, 2012 08:37
some stupid title

header

some stupid text

@leonardinius
leonardinius / bbbb
Created July 19, 2012 08:36
bbb.md
# header
some value
## header 2
some value 2
aaaa
This file has been truncated, but you can view the full file.
Delivered-To: leonidms@gmail.com
Received: by 10.50.168.99 with SMTP id zv3csp135316igb;
Wed, 30 May 2012 23:06:43 -0700 (PDT)
Received: by 10.14.119.9 with SMTP id m9mr7742123eeh.93.1338444401590;
Wed, 30 May 2012 23:06:41 -0700 (PDT)
Return-Path: <leonids.maslovs@galeoconsulting.com>
Received: from mail-wg0-f52.google.com (mail-wg0-f52.google.com [74.125.82.52])
by mx.google.com with ESMTPS id b19si1003619wiw.39.2012.05.30.23.06.40
(version=TLSv1/SSLv3 cipher=OTHER);
This file has been truncated, but you can view the full file.
Delivered-To: leonidms@gmail.com
Received: by 10.50.168.99 with SMTP id zv3csp108899igb;
Wed, 30 May 2012 05:41:30 -0700 (PDT)
Received: by 10.52.176.66 with SMTP id cg2mr14126138vdc.121.1338381689727;
Wed, 30 May 2012 05:41:29 -0700 (PDT)
Return-Path: <drops@ukeeper.com>
Received: from mail.ukeeper.com (mail.ukeeper.com. [23.21.201.74])
by mx.google.com with ESMTP id m6si12192785vdi.103.2012.05.30.05.41.29;
Wed, 30 May 2012 05:41:29 -0700 (PDT)
@leonardinius
leonardinius / pom.xml
Created February 20, 2011 21:25
selenium integration test configuration
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<!-- ... -->
<dependencies>
<!-- ... -->
<dependency>
// this code is copied and modified from dialogs.js
(function(){
var chainedonload = function(callback){
var old = window.onload;
window.onload = function(){
if(typeof old == 'function') old.apply(this, arguments);
if(typeof callback == 'function') callback.apply(this, arguments);
};
};