Skip to content

Instantly share code, notes, and snippets.

@rppowell-lasfs
rppowell-lasfs / java-griffon-notes.md
Last active October 25, 2021 17:39
Griffon Notes

My notes on installing/developing/using griffon - http://griffon-framework.org/

Griffon 1.5.0

There is an older griffon at 1.5.0 and a more recent one, version 2.8.0+.

Windows

Installing on windows

Java JDK

  • install jdk
@rppowell-lasfs
rppowell-lasfs / README.md
Last active August 22, 2017 01:24
Groovy Notes

Groovy Notes

My notes on using groovy

Dependencies / Grapes / Grab

Running on the Command Line

Running with additional information

@rppowell-lasfs
rppowell-lasfs / youtube-like-dislike.js
Created January 4, 2018 20:20
javascript youtube likes/dislikes
javascript:(function(){
var buttons = document.querySelectorAll('#menu ytd-toggle-button-renderer button.style-scope.yt-icon-button');
var likes = buttons[0].attributes["aria-label"].nodeValue;
var dislikes = buttons[1].attributes["aria-label"].nodeValue;
var regex = /[\d,.]+/;
likes = likes.match(regex);
dislikes = dislikes.match(regex);
alert("Likes: " + likes + "\nDislikes: " + dislikes);
})();
@rppowell-lasfs
rppowell-lasfs / dbf_dump.py
Created January 23, 2018 06:28
Python script to dumping dbf database files
# -*- coding: utf-8 -*-
"""
This python script is used for dumping dbf database files
* python2.7
"""
@rppowell-lasfs
rppowell-lasfs / notes-2018-02-01.md
Last active February 23, 2018 04:55
webapp-builders/market notes 2018-02-01
@rppowell-lasfs
rppowell-lasfs / tictactoe.py
Created February 23, 2018 21:13
Python Tic-Tac-Toe Game Example
import random
"""
A quick exercise in making a tic-tac-toe game in python 3
"""
class Board:
def __init__(self):
self.newGame()
@rppowell-lasfs
rppowell-lasfs / Android-TicTacToe-Notes.md
Last active March 23, 2021 14:38
Android Tic Tac Toe Game Notes
@rppowell-lasfs
rppowell-lasfs / dbf-notes.md
Created April 16, 2018 05:32
Java/Python DBF notes (convention registration database)

DBF notes

Java

javadbf

// https://mvnrepository.com/artifact/com.linuxense/javadbf
@rppowell-lasfs
rppowell-lasfs / java-hibernate-sqlite.md
Last active March 10, 2024 19:12
Java Hibernate-Sqlite Simple Example 2018-04-22

Java Hibernate/Sqlite Example

Dependencies

// https://mvnrepository.com/artifact/org.hibernate/hibernate-core
compile group: 'org.hibernate', name: 'hibernate-core', version: '5.2.16.Final'

// https://mvnrepository.com/artifact/org.xerial/sqlite-jdbc
compile group: 'org.xerial', name: 'sqlite-jdbc', version: '3.21.0.1'
@rppowell-lasfs
rppowell-lasfs / Hibernate5SqliteProgrammaticConfigurationEmbeddedClassTest.java
Last active May 7, 2018 02:42
Hibernate 5 SQLite Programmatic Configuration with Embedded Class
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.cfg.Configuration;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import org.testng.Assert;
import javax.persistence.*;
import java.util.List;