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
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 / 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 {
@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 / 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 / drugs-create-index.json
Created December 3, 2020 12:36
Drug File Mapping
{
"mappings": {
"properties": {
"NDC": {
"type": "keyword"
},
"DrugName": {
"type": "text"
},
"GenericName": {
<?php
//require_once 'vendor/autoload.php';
class RxCredentials {
/**
* Test members
*
* @var string Hello
* @soap
*/
export interface TableInfo {
tableId: string;
columns: Array<string>;
}
export interface StorageInfo {
[key: string]: string | TableInfo;
}
interface PageInfo {
@lighth7015
lighth7015 / tsconfig.json
Created June 25, 2020 15:07
tsconfig.json
{
"compilerOptions": {
/* Basic Options */
"incremental": true, /* Enable incremental compilation */
"target": "es2019", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
"module": "esnext", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
"lib": [
"es2019",
"dom"
], /* Specify library files to be included in the compilation. */
@lighth7015
lighth7015 / build.log
Created June 25, 2020 10:23
node-gyp sqlite3 failure
warning Error running install script for optional dependency: "/usr/share/.config/yarn/global/node_modules/bufferutil: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: /usr/share/.config/yarn/global/node_modules/bufferutil
Output:
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp info find Python using Python version 3.8.3 found at \"/usr/bin/python3\"
@lighth7015
lighth7015 / tsconfig.json
Created June 20, 2020 06:54
tsconfig.json
{
"compilerOptions": {
"target": "es6",
"lib": [ "dom", "dom.iterable", "esnext" ],
"jsx": "react",
"jsxFactory": "React.h",
"module": "commonjs",
"moduleResolution": "node",