Skip to content

Instantly share code, notes, and snippets.

View zverbatim's full-sized avatar
🚲
C'est la vie

Ivan Munteanu zverbatim

🚲
C'est la vie
View GitHub Profile
@kenichi-shibata
kenichi-shibata / counter-test.html
Created November 26, 2015 04:42
using deep freeze to test if the states are mutating
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Avoiding mutations</title>
<script src="https://wzrd.in/standalone/expect@latest"></script>
<script src="https://wzrd.in/standalone/deep-freeze@latest"></script>
</head>
<body>
@jpertino
jpertino / databaseConnection.groovy
Created January 28, 2011 23:29
several database connectors and drivers
// PostgreSQL
@GrabConfig(systemClassLoader=true)
@Grab('postgresql:postgresql:9.0-801.jdbc4')
def sql = groovy.sql.Sql.newInstance(
"jdbc:postgresql://host.example.org/database",
"username", "password", "org.postgresql.Driver")
// MySQL
@GrabConfig(systemClassLoader=true)