Skip to content

Instantly share code, notes, and snippets.

View samt's full-sized avatar
✈️
Learning to plane

Sam Thompson samt

✈️
Learning to plane
  • Sacramento, CA
View GitHub Profile
@samt
samt / keybase.md
Created January 30, 2021 04:47
keybase.md

Keybase proof

I hereby claim:

  • I am samt on github.
  • I am samtho (https://keybase.io/samtho) on keybase.
  • I have a public key ASDuLA1qWWTdFPxLbin-_CU1Hp7DNct6jplUOiSrGU-pgQo

To claim this, I am signing this object:

(module M.2-TEMPLATE (layer F.Cu) (tedit 5DC8ECDB)
(descr {{datasheet}})
(tags {{tags}})
(attr smd)
(fp_text reference REF** (at 0.05 -5.75) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.12)))
)
(fp_text value {{name}} (at 0 6) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
{
"event": "hckrpt",
"responseTopic": "hook-response/hckrpt/{{{PARTICLE_DEVICE_ID}}}",
"errorResponseTopic": "hook-error/hckrpt/{{{PARTICLE_DEVICE_ID}}}",
"url": "https://api.hackerpet.com/v1/webhook?sheet_id=<ADD_YOUR_SHEET_ID_HERE>",
"requestType": "POST",
"noDefaults": true,
"rejectUnauthorized": true,
"responseTemplate": "",
"json": {

Keybase proof

I hereby claim:

  • I am samt on github.
  • I am samparticle (https://keybase.io/samparticle) on keybase.
  • I have a public key ASCk1UZEjqMOrqSvTO3nBeJhmclolP1f1nCy2Aiv6VNBeQo

To claim this, I am signing this object:

<?php
require __DIR__.'/includes/BarcodeBase.php';
require __DIR__.'/includes/QRCode.php';
require __DIR__.'/includes/DataMatrix.php';
require __DIR__.'/includes/PDF417.php';
require __DIR__.'/includes/Code39.php';
require __DIR__.'/includes/Code128.php';
$bcode = array();
<?php
/*
* Markdown Parser
* Version 0.1.0
* By Sam Thompson <http://openflame-project.org/>
*
* This code has hereby been released into the public domain
* There's absolutely no warranty.
*
* This class works as a parser for Markdown, placing the data in an array to
@samt
samt / bootstrap.php
Created May 11, 2011 21:54
OpenFlame Framework Session example
<?php
use \OpenFlame\Framework\Core;
use OpenFlame\Framework\Event\Instance as Event;
use OpenFlame\Framework\Utility\JSON;
$dispatcher = Core::setObject('dispatcher', new \OpenFlame\Framework\Event\Dispatcher());
$session = Core::setObject('session', new \OpenFlame\Framework\Session\Driver());
$header = Core::setObject('header', new \OpenFlame\Framework\Header\Manager());
$input = Core::setObject('input', new \OpenFlame\Framework\Input\Handler());
@samt
samt / .htaccess
Created April 6, 2011 20:22
CSS Generator
#
# CSS Generator
#
# Scans a directory for all the CSS and compiles them into a single, compressed
# document for easy and quick access from the client side. Also sends headers
# to ensure that the document will not be loaded more than every 2 days.
#
<Files .htaccess>
Order Allow,Deny
<?php
/**
*
* @package Spammer Prunner for phpBB3
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
* @copyright Copyright (c) 2011 Sam Thompson <sam@ichimonai.com>
*/
set_time_limit(0);
define('IN_PHPBB', true);
public class HelloWorld
{
String output = "";
static HelloWorld helloObj;
public HelloWorld()
{
output = "Hello World";
}