Skip to content

Instantly share code, notes, and snippets.

View jnickg's full-sized avatar
🤖
https://youtu.be/0zJLltYWtNA

J Nicholas Giampietro jnickg

🤖
https://youtu.be/0zJLltYWtNA
View GitHub Profile
@jnickg
jnickg / Dockerfile.pip
Last active February 16, 2024 18:05
Python environment experiment: uv versus pip
FROM pip-test-base:latest
RUN pip install -r /app/requirements.txt
@jnickg
jnickg / boxes.html
Created September 10, 2013 17:15
A short JavaScript snippet to make long single-line text entries flow across multiple lines, for style purposes.
<div class="box green">
#1
<h1>Cras pretium urna id mauris rutrum, vitae volutpat lacus</h1>
</div>
<div class="box red">
#2
<h1>Cras pretium urna id mauris</h1>
</div>
@jnickg
jnickg / dirscan.php
Last active December 21, 2015 06:49
The following script scans a server directory and displays its contents in HTML, excluding folder names or relative paths, in an unsorted list. This script is good for pages which must link to a large number of files, which are all stored in the same directory.
<?php
// The following script scans a server directory and displays its contents
// in HTML, excluding folder names or relative paths, in an unsorted list.
// This script is good for pages which must link to a large number of files.
// which are all stored in the same directory.
//
// New feature: this script will now format duplicates (same filename,
// different extension) as part of the same line of links, like so:
// "LinkToFileName.doc -- (pdf) -- Last Updated Date"
//
@jnickg
jnickg / DarkSystemClock.ini
Created August 17, 2013 02:07
Customized Rainmeter script that toggles between itself and a dark version
[Rainmeter]
Author=bbrd83@gmail.com
Update=1000
MiddleMouseDownAction=!RainmeterActivateConfig #CURRENTCONFIG# SystemClock.ini
[Metadata]
Name=BBArcsD
Config=SystemClock
Description=An abstract, futuristic analog clock decorated with camouflaged system and song meters.
Instructions=
@jnickg
jnickg / FileArray.cpp
Last active March 25, 2023 08:00
A simple C++ class to demonstrate how to read and write to/from a physical file.
#include <iostream>
#include <iomanip>
#include "filearray.h"
using namespace std;
// flags for opening a file that already exists
static const ios::open_mode readWriteMode = ios::in | ios::out | ios::binary;
// flags for creating a file that does not yet exist