Skip to content

Instantly share code, notes, and snippets.

@amereservant
amereservant / I2C_LCD_Display_Demo.ino
Last active January 16, 2019 03:00
Demo code for IIC/I2C Serial Interface Adapter Module For 1602 LCD Display - mklec
/**
* I2C/IIC LCD Serial Adapter Module Example
* Tutorial by http://mklec.com
*
* Instructions at http://blog.mklec.com/how-to-use-iici2c-serial-interface-module-for-1602-lcd-display
*
* This uses the Liquid Crystal library from https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads GNU General Public License, version 3 (GPL-3.0)
* Pin Connections:
* SCL = A5
* SDA = A4
@amereservant
amereservant / convert_urls.php
Created July 7, 2015 23:18
Convert URLs To Links Without RegEx - PHP
<?php
/**
* Convert URLs To Links Without RegEx
*
* @author David Miles
* @link https://gist.github.com/amereservant
*
* After trying several RegEx patterns to try and match URLs and all of them failing to
* accurately match them, I decided to take a simplier approach. Since URLs are continuous
* strings and begin with a given string (http in this case), All I had to do was use simple