Skip to content

Instantly share code, notes, and snippets.

View aschmelyun's full-sized avatar
Building something fun!

Andrew Schmelyun aschmelyun

Building something fun!
View GitHub Profile
@aschmelyun
aschmelyun / index.html
Created August 14, 2025 23:37
lizard.click source code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="theme-color" content="#ffffff">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<meta name="apple-mobile-web-app-title" content="Lizard">
@aschmelyun
aschmelyun / run.sh
Last active June 15, 2025 21:42
Dashcam ffmpeg timelapse script
#!/bin/bash
# Extracts frames every 3 seconds from dash cam videos and creates a timelapse
# Save this file, chmod +x ./run.sh, and then run with ./run.sh
# Configuration
INPUT_DIR="./raw_video" # Change this to your video files directory
OUTPUT_DIR="./timelapse_frames"
FINAL_VIDEO="dashcam_timelapse.mp4"
FRAME_RATE=60
@aschmelyun
aschmelyun / settings.json
Created November 16, 2021 05:54
VS Code Settings
{
"editor.codeLens": false,
"workbench.colorTheme": "Atom One Dark",
"editor.quickSuggestions": {
"other": false,
"comments": false,
"strings": false
},
"editor.selectionHighlight": false,
"editor.highlightActiveIndentGuide": false,
@aschmelyun
aschmelyun / seed.js
Created July 23, 2021 03:25
Test remote seeding of json-server
const data = {
users: []
};
for (let i=0; i<100; i++) {
data.users.push({
id: i,
name: `User #${i}`
});
}
@aschmelyun
aschmelyun / settings.json
Created April 17, 2021 07:05
My current VS Code settings file
{
"editor.codeLens": false,
"workbench.activityBar.visible": false,
"window.zoomLevel": 1,
"workbench.colorTheme": "One Dark Pro",
"editor.quickSuggestions": {
"other": false,
"comments": false,
"strings": false
},
@aschmelyun
aschmelyun / cr2_to_jpg.sh
Created December 5, 2020 00:55
Bash script to convert CR2 images to JPG using dcraw
#!/usr/bin/bash
# usage ./cr2_to_jpg.sh /path/to/cr2/images/ /path/to/converted/jpgs/
i=1
total=$(find $1 -type f | wc -l)
for file in $1*.CR2
do
dcraw -c -w -b 1.5 $file | pnmtojpeg > $2$(basename $file .CR2).jpg
@aschmelyun
aschmelyun / windows-macos-keybindings.ahk
Last active November 10, 2023 22:19
AutoHotKey script for enabling alt-tab on a Windows system after switching the Alt and Ctrl keys
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
LCtrl & Tab:: AltTab
!Tab:: Send ^{Tab}
!+Tab:: Send ^+{Tab}
^Space:: Send ^{Esc}
@aschmelyun
aschmelyun / bash
Last active February 19, 2020 07:51
docker-compose run --rm npm run gulpwatch
@aschmelyun
aschmelyun / index.html
Last active February 9, 2024 01:49
In AR.js display a video which transitions into an image on completion
<!DOCTYPE html>
<html>
<head>
<title>AR Demo</title>
<script src="https://aframe.io/releases/0.6.1/aframe.min.js"></script>
<script src="https://jeromeetienne.github.io/AR.js/aframe/build/aframe-ar.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<meta name="apple-mobile-web-app-capable" content="yes">
<script>
// We're going to register a custom event listener through a-frame that will fire
@aschmelyun
aschmelyun / DetectScroll.vue
Created May 29, 2018 09:19
Detect scrolling to the bottom of a div in Vue.js
<template>
<div class="wrapper">
<div class="box" @scroll="handleScroll">
<p>Your content here...</p>
</div>
<a href="#" v-if="hasScrolledToBottom">Show After Scrolling</a>
</div>
</template>
<script>
export default {