Skip to content

Instantly share code, notes, and snippets.

View lighth7015's full-sized avatar
Perpetually exhausted.

Robert Butler lighth7015

Perpetually exhausted.
View GitHub Profile
<?php
//require_once 'vendor/autoload.php';
class RxCredentials {
/**
* Test members
*
* @var string Hello
* @soap
*/
@lighth7015
lighth7015 / drugs-create-index.json
Created December 3, 2020 12:36
Drug File Mapping
{
"mappings": {
"properties": {
"NDC": {
"type": "keyword"
},
"DrugName": {
"type": "text"
},
"GenericName": {
@lighth7015
lighth7015 / README.md
Last active December 25, 2023 16:11
GDI inspired graphics wrapper for XCB

GDI-style XCB wrapper

A drawing library modeled after Windows GDI

Features

  • CreateDC/ReleaseDC
  • DrawText
  • DrawRect
@lighth7015
lighth7015 / signin.ec
Last active July 3, 2021 20:42
Signin dialog
import "ecere"
import "PasswordBox"
import "skinbtn"
class SignIn : Window
{
caption = $"Welcome";
background = { r = 253, g = 250, b = 240 };
borderStyle = fixed;
hasMinimize = true;
@lighth7015
lighth7015 / module.ec
Last active July 17, 2021 21:13
Potential module system
struct ModuleInfo {
String Name;
Array<Int16> Version;
String Author;
String Description;
};
class Module {
Bootstrapping eC compiling tools...
Building ecere...
Building ec...
Building ecp...
Building ecc...
Building ecs...
All done!
Building 2nd stage ecere...
/home/rudyv/github/ecere-sdk/ecere/src/sys/Archive.ec:1:14: error: unresolved identifier DRAW_BUFFER_COUNT
/home/rudyv/github/ecere-sdk/ecere/src/sys/Archive.ec:1:14: error: Array size not constant int (DRAW_BUFFER_COUNT)
@lighth7015
lighth7015 / Family.php
Created October 11, 2021 20:43
Blade Card component + two widgets that use the card component
<?php
namespace App\Widgets;
class Family extends Widget {
/**
* The configuration array.
*
* @var array
*/
protected $config = [];
@lighth7015
lighth7015 / angular.json
Last active October 20, 2021 11:45
Generating browser application bundles (phase: setup)...Error: ENOENT: no such file or directory, open '/home/robert_/TS/ng/rxmark/src/main.ts'
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"cli": {
"packageManager": "yarn"
},
"newProjectRoot": "projects",
"projects": {
"app": {
"projectType": "application",
@lighth7015
lighth7015 / efl-hello.log
Last active October 28, 2021 06:48
efl-hello.log
ERR<1295565>:eina_safety ../src/lib/efreet/efreet_ini.c:412 efreet_ini_localestring_get() safety check failed: ini->section == NULL
## Copy & Paste the below (until EOF) into a terminal, then hit Enter
eina_btlog << EOF
/usr/lib/libeina.so.1 0x7fd972d29b84 0x7fd972cff000
/usr/lib/libeina.so.1 0x7fd972d2adc1 0x7fd972cff000
/usr/lib/libeina.so.1 0x7fd972d2c469 0x7fd972cff000
/usr/lib/libeina.so.1 0x7fd972d44c04 0x7fd972cff000
/usr/lib/libefreet.so.1 0x7fd972da7c24 0x7fd972d9b000
/usr/lib/efreet/v-1.25/efreet_icon_cache_create 0x55f8ee6af785 0x55f8ee6ab000
@lighth7015
lighth7015 / campaign.php
Last active October 30, 2021 18:23
Expected output vs. Actual output
<?php
$format = 'Va*';
die(print_r(unpack($format, pack($format, time(), "test")), true ));
/**
* Expected output:
* Array
* (
* [V] => 1635617836