Skip to content

Instantly share code, notes, and snippets.

View arbalest's full-sized avatar

Ethan Horger arbalest

View GitHub Profile

EndeavourOS Atlantis Dell XPS 13 Setup Notes

The following notes were compiled while setting up and customizing EndeavourOS Neo Atlantis on Dell XPS 15 9310.

Initially written on February 5th, 2022.

Contents

  1. Trackpad
@arbalest
arbalest / simple_binary_tree.html
Created December 26, 2020 20:38
A very basic layout of a binary tree in HTML and Javascript.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>DOM Binary Tree Demo</title>
<style>
* {
box-sizing: border-box;
}
@arbalest
arbalest / tslint.json
Created August 19, 2019 23:46
TSLint Preferred Config
{
"defaultSeverity": "warning",
"extends": [
"tslint:recommended"
],
"linterOptions": {
"exclude": [
"node_modules/**"
]
},
@arbalest
arbalest / sciter_windows_app_build_instructions.md
Created February 8, 2018 22:36
Instructions for building a Sciter app in Windows using the command prompt

Sciter Windows Build Instructions

Description

The following is command-line based build instructions around building a minimal example of Sciter (such as the "ulayered" example app in the SDK).

Requirements

@arbalest
arbalest / windows_gtk3_vala_instructions.md
Last active February 22, 2021 04:13
Notes and instructions for installing and packaging a GTK+ 3 / Vala app on Windows

GTK+ 3 / Vala Windows Instructions

Description

This will primarily focus on building a somewhat portable dev environment for developing GTK+ 3 apps using Vala, targeting Windows.

Requirements

  1. Download the .tar.xz archive of MSYS2 from MSYS2 Installation
@arbalest
arbalest / homestead_env_var_replacement.rb
Created November 22, 2017 17:22
Access Ruby variables in the Homestead.yaml file by means of string formatting in homestead.rb (Laravel Vagrant template)
# ...
# Register All Of The Configured Shared Folders
if settings.include? 'folders'
settings["folders"].each do |folder|
# folder["map"].sub!('{{USERPROFILE}}', ENV['USERPROFILE'])
folder["map"] = folder["map"] % { :USERPROFILE => ENV['USERPROFILE'] }
if File.exists? File.expand_path(folder["map"])
# ...
from urllib import request
def downloadList():
req_url = "http://www.armitunes.com/lib-request_transition.php?sEcho=19&iColumns=5&sColumns=&iDisplayStart=" + str(display_start) + "&iDisplayLength=" + str(display_length) + "&mDataProp_0=0&mDataProp_1=1&mDataProp_2=2&mDataProp_3=3&mDataProp_4=4&sSearch=&bRegex=false&sSearch_0=&bRegex_0=false&bSearchable_0=false&sSearch_1=&bRegex_1=false&bSearchable_1=true&sSearch_2=&bRegex_2=false&bSearchable_2=true&sSearch_3=&bRegex_3=false&bSearchable_3=true&sSearch_4=&bRegex_4=false&bSearchable_4=false&iSortCol_0=1&sSortDir_0=asc&iSortingCols=1&bSortable_0=true&bSortable_1=true&bSortable_2=true&bSortable_3=true&bSortable_4=true&_=1461438259980"
response = request.urlopen(req_url);
res_output = response.read()
f = open("log_" + str(entry_start) + "_to_" + str(entry_end) + ".json", "ab")
f.write(res_output)
@arbalest
arbalest / gcc_compile.py
Created April 20, 2016 21:55
Quick python script for compiling all .cpp files in a folder and subfolders with G++ (A simple, lazy makefile in Python)
# Recursively finds all .cpp files within the current directory,
# and compiles them, printing any messages generated by g++ and writing the
# output to the bin folder.
from pathlib import Path
import os
import subprocess
bin_path = 'bin/output'
file_list = [] # The list of .cpp files to be compiled
@arbalest
arbalest / dynamic_function_assignment.c
Created December 1, 2015 16:43
Simple example demonstrating function pointers and how different functions could be assigned to instances of the same struct
#include <stdio.h>
/**
* Example demonstrating function pointers in a struct that can be
* assigned on a per-type basis (inspired by Quake 3 source's g_local.h's gentity_s type)
*/
typedef struct gscreen_s gscreen_t;
typedef struct ggame_s ggame_t;
@arbalest
arbalest / index_addresses.c
Created September 18, 2015 20:28
Quick and simple demonstration about multiple ways of accessing arrays within a struct
#include <stdio.h>
typedef struct _vertexStruct {
float vertex[2];
float color[3];
} vertexStruct;
int main(void) {
vertexStruct vertices[] = {