Skip to content

Instantly share code, notes, and snippets.

# -*- coding: utf-8 -*-
#######################################################
#
# @Author: Hardik Mehta <hard.mehta@gmail.com>
#
# @version: 0.1 basic script
#
########################################################
# -*- coding: utf-8 -*-
#######################################################
#
# @Author: Hardik Mehta <hard.mehta@gmail.com>
#
# @version: 0.1 basic script
#
########################################################
[default]
country = Germany
unit = SI
city = Munich
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>com.hardik.jsfinaction</groupId>
<artifactId>HelloJsf</artifactId>
<packaging>war</packaging>
<version>1.0</version>
<name>HelloJsf Maven Webapp</name>
<url>http://maven.apache.org</url>
<dependencies>
DROP TABLE IF EXISTS TEE;
DROP TABLE IF EXISTS TEE_SET;
DROP TABLE IF EXISTS HOLE;
DROP TABLE IF EXISTS COURSE;
DROP TABLE IF EXISTS FACILITY;
DROP SEQUENCE IF EXISTS SYSTEM_SEQUENCE_FACILITY;
DROP SEQUENCE IF EXISTS SYSTEM_SEQUENCE_COURSE;
DROP SEQUENCE IF EXISTS SYSTEM_SEQUENCE_HOLE;
DROP SEQUENCE IF EXISTS SYSTEM_SEQUENCE_TEE_SET;
@rangalo
rangalo / ini
Created December 14, 2009 19:12
[Midnight-Commander]
show_backups=1
show_dot_files=1
verbose=1
mark_moves_down=1
pause_after_run=1
shell_patterns=1
auto_save_setup=1
auto_menu=0
use_internal_view=1
#change the hardstatus settings
startup_message off
vbell off
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]'
#scrollback
altscreen on
# bindkey -k kD stuff "\010"
termcapinfo xterm 'bc@:bs@'
# termcapinfo rxvt
;;to set the cursor color
(set-cursor-color "white")
;;to set foreground color to white
(set-foreground-color "white")
;;to set background color to black
(set-background-color "black")
-- file: ch04/IntParse.hs
import Data.Char (digitToInt)
strToInt :: String -> Int
helper_func :: Int -> Char -> Int
helper_func i c = i * 10 + digitToInt c
-- file: ch04/Fold.hs
myFilter :: (a -> Bool) -> [a] -> [a]
myFilter p xs = foldr step [] xs
where step x ys | p x = x : ys
| otherwise = ys
myFoldl :: (a -> b -> a) -> a -> [b] -> a