Skip to content

Instantly share code, notes, and snippets.

@struts2spring
struts2spring / h2.sh
Created November 16, 2013 17:30
H2 database as linux service or daemon Unpack it to any directory you like, but this guide assumes that database files are extracted to /opt/h2 unzip h2-2013-10-19.zip Create /etc/init.d/h2 file with following content: sudo chmod 755 h2 sudo chkconfig --add h2 sudo service h2 init sudo service h2 start access h2 webconsole at http://localhost:8082
#!/bin/sh
# This stuff will be ignored by systems that don't use chkconfig.
# chkconfig: 345 87 13
# description: H2 database
# pidfile: /opt/H2/bin/h2.pid
# config:
### BEGIN INIT INFO
# Provides: H2-Server
@struts2spring
struts2spring / memory.py
Last active December 28, 2015 11:49
Memory game in python
http://www.codeskulptor.org/#user24_SyOHBQnx3L_15.py
# implementation of card game - Memory
import simplegui
import random
lst = range(0, 8)
deck=lst+list(lst)
myDeck={}
<a href="#" class="show-photos">Show All Photos</a>
<ul id="tourprices">
<li class="tour" data-loc="london,uk">
London, UK
<ul class="photos">
<li><img src="/assets/photos/london.jpg"></li>
<li><img src="/assets/photos/london.jpg"></li>
<li><img src="/assets/photos/london.jpg"></li>
</ul>
<a href="#" class="see-photos">See Photos</a>