Skip to content

Instantly share code, notes, and snippets.

Avatar

Eric Howey erichowey

  • Talkroute Inc.
  • Los Angeles
View GitHub Profile
View TextMessage.php
<?php
namespace App;
class TextMessage
{
/**
* @var string
*/
public string $from;
View LuaORMTest.lua
require "globals"
local settings = require "lib.Settings"
--local DB = require "lib.Database"
local API = require "LuaORM.API"
local Model = API.Model
local fieldTypes = API.fieldTypes
API.ORM:initialize({
View amalg.cache.lua
return {
[ "LuaORM.LuaORM.Model" ] = "L",
[ "LuaORM.LuaORM.Query.Clause.OrderBy.OrderByRule" ] = "L",
[ "LuaORM.LuaORM.Query.Clause.Where" ] = "L",
[ "LuaORM.LuaORM.Query.Clause.Join.JoinRule" ] = "L",
[ "LuaORM.LuaORM.Util.Type.TypeRestriction" ] = "L",
[ "LuaORM.LuaORM.Util.Type.Type" ] = "L",
[ "LuaORM.LuaORM.FieldValueRowList.FieldValueRowList" ] = "L",
[ "LuaORM.LuaORM.Query.Condition.Condition" ] = "L",
[ "LuaORM.LuaORM.Util.Logger" ] = "L",
View gist:346924361b96522e4e3b9f45dbcac932
## ULAW/ALAW
ffmpeg -i <any_file> -ar 8000 -ac 1 -acodec pcm_s16le -f s16le Output.sln
## OPUS
ffmpeg -i <any_file> -map_metadata -1 -ar 48000 -b:a 64k -ac 1 -acodec libopus -f opus Output.opus
## G722
ffmpeg -i <any_file> -ar 16000 -acodec g722 -b:a 64k Output.g722
## m4a
View config.ini
; version=9
; This is INI file : https://en.wikipedia.org/wiki/INI_file#Format
; Semicolons (;) at the beginning of the line indicate a comment. Comment lines are ignored.
[path]
read-data=__PATH__executable__/../../data
write-data=__PATH__executable__/../..
[general]
locale=
View server-settings.json
"name": "MegaSmelter69",
"description": "",
"tags": ["game", "tags"],
"_comment_max_players": "Maximum number of players allowed, admins can join even a full server. 0 means unlimited.",
"max_players": 0,
"_comment_visibility": ["public: Game will be published on the official Factorio matching server",
"lan: Game will be broadcast on LAN"],
View map-settings.example.json
{
"difficulty_settings":
{
"recipe_difficulty": 0,
"technology_difficulty": 0,
"technology_price_multiplier": 1,
"research_queue_setting": "after-victory"
},
"pollution":
{
@erichowey
erichowey / TestFire2012.ino
Created Jul 3, 2020
Multiple CRGB Instances
View TestFire2012.ino
#include <FastLED.h>
#define LEFT_LED_PIN 22
#define RIGHT_LED_PIN 23
#define LEFT_NUM_LEDS 72
#define RIGHT_NUM_LEDS 72
CRGB leftLEDS[NUM_LEDS];
CRGB rightLEDS[NUM_LEDS];
@erichowey
erichowey / gist:07d9bc2220f2327d940b6976bf0c4d28
Last active Jun 26, 2020
Proposed Number Search API King Cobra
View gist:07d9bc2220f2327d940b6976bf0c4d28
GET /api/king-cobra/v2/nanp/search/local
AT LEAST ONE OF THE FOLLOWING PARAMTERS ARE REQUIRED:
area_code
state_province
zip_postal
country
rate_center
View leddimmer.ino
int leds = 9;
int increase = 12;
int decrease = 13;
int level = 20;
void setup()
{
pinMode(leds, OUTPUT);
pinMode(increase, INPUT_PULLUP);
pinMode(decrease, INPUT);