Skip to content

Instantly share code, notes, and snippets.

@wildestpixel
wildestpixel / code.py
Created February 6, 2021 18:30
Pimoroni Pico Display Pack Circuitpython 6.2 b1 running code
"""
adapted from http://helloraspberrypi.blogspot.com/2021/01/raspberry-pi-picocircuitpython-st7789.html
"""
import os
import board
import time
import terminalio
import displayio
import busio
@HelainSchoonjans
HelainSchoonjans / greach2019-awesome-list.asciidoc
Last active April 13, 2019 19:40
greach2019-awesome-list

Greach 2019 awesome list

What is this?

A compilation of all the links to slides and repositories used in workshops or shown by the speakers.

Why

It can be difficult to retrieve all that material on twitter after the conference.

Contents

import com.sun.net.httpserver.HttpExchange
import com.sun.net.httpserver.HttpHandler
import com.sun.net.httpserver.HttpServer
import groovy.transform.CompileStatic
import groovy.transform.TypeChecked
@CompileStatic
@TypeChecked
class GroovyHttpServer {

Greach 2018 awesome list

What is this?

A compilation of all the links to slides and repositories used in workshops or shown by the speakers.

Why

It can be difficult to retrieve all that material on twitter after the conference.

Contents

@ishults
ishults / Grails_Groovy_Versions.txt
Last active June 14, 2024 08:39
List of Groovy versions for Grails
// Compiled by Igor Shults
// Last Updated: July 23, 2020
GRAILS GROOVY SOURCE
4.1.0 2.5.14 https://github.com/grails/grails-core/blob/v4.1.0/gradle.properties
4.0.4 2.5.6
4.0.3 2.5.6
4.0.2 2.5.6
4.0.1 2.5.6
4.0.0 2.5.6 https://github.com/grails/grails-core/blob/v4.0.0/build.gradle
@jresendiz27
jresendiz27 / GmailAndGroovy.groovy
Created November 7, 2014 20:56
Using Groovy to read mails from GMail. Just for development purposes, GMail will not allow login in first time, so I enabled the option to log from non secure apps SSL it's necessary Another good tutorial coudl be find here using SSL: http://agileice.blogspot.mx/2008/10/using-groovy-to-connect-to-gmail.html
/*
Using Groovy to read email form GMail.
Just for development purposes, GMail will not allow in first time the login, so I enabled the option to log from non secure apps
SSL it's necessary
Another good tutorial coudl be find here using SSL:
http://agileice.blogspot.mx/2008/10/using-groovy-to-connect-to-gmail.html
@ysb33r
ysb33r / RelativePath.groovy
Last active November 4, 2022 14:18
The Groovy way to obtain a relative path given two paths.
def root= new File('/usr/share')
def full= new File('/usr/share/docs/rpm-4.4')
// Print the relative path of 'full' in relation to 'root'
// Notice that the full path is passed as a parameter to the root.
def relPath= new File( root.toURI().relativize( full.toURI() ).toString() )
@yincrash
yincrash / Google2APi.java
Created April 22, 2012 17:22
Google OAuth2.0 for scribe-java
package org.scribe.builder.api;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.scribe.exceptions.OAuthException;
import org.scribe.extractors.AccessTokenExtractor;
import org.scribe.model.OAuthConfig;
import org.scribe.model.OAuthConstants;
import org.scribe.model.OAuthRequest;