Skip to content

Instantly share code, notes, and snippets.

View nbuechler's full-sized avatar

Nathaniel Buechler nbuechler

View GitHub Profile
@nbuechler
nbuechler / centered_hexagonal_primes.py
Created February 5, 2019 02:18
Find Centered Hexagonal Primes
# Python program for practical application of sqrt() function
# https://en.wikipedia.org/wiki/Centered_hexagonal_number
# Finding Centered hexagonal primes
import sys
# import math module
import math
# function to check if prime or not
@nbuechler
nbuechler / jQueryGridTargeting.html
Created March 5, 2020 01:43
jQuery Boilerplate for Building Interactive Grid with configurable rows and columns
<html>
<head>
<title>jQueryGridTargeting</title>
</head>
<style>
#rows {
display: flex;
flex-direction: column;
}

Keybase proof

I hereby claim:

  • I am nbuechler on github.
  • I am socialmancer (https://keybase.io/socialmancer) on keybase.
  • I have a public key ASD9CKBH0Cef4k0CJ3tmJmzZ8Hil1zyIRS7oJjEYB9bxCgo

To claim this, I am signing this object:

@nbuechler
nbuechler / video_loop.py
Created February 26, 2025 00:42
Create a looped mp4, from an AI generated (Runway) clip, with concatenation of the original and reversed clip
from moviepy.editor import VideoFileClip, concatenate_videoclips, vfx
def concatenate_original_and_reversed(input_path, output_path):
# Load the video file
clip = VideoFileClip(input_path)
# Reverse the clip
reversed_clip = clip.fx(vfx.time_mirror)
# Concatenate the original clip with the reversed clip
final_clip = concatenate_videoclips([clip, reversed_clip])
# Write the final clip to a new file