Skip to content

Instantly share code, notes, and snippets.

View vasmani's full-sized avatar

Jihong Lee vasmani

View GitHub Profile
@dbdness
dbdness / digispark-attiny85-mac-setup.md
Last active August 11, 2025 07:50
DigiSpark Kickstarter ATTINY85 Setup on macOS + Hello World

Digispark ATTINY85 Initial Setup on macOS + Hello World

Originally written in January 2021.

Originally written for macOS Big Sur 11.1

Step 1: Acquire a DigiSpark ATTINY85 Board

Board used for this guide is the Kickstarter version.

Step 2: Download the Arduino IDE

Version at the time of writing is 1.8.13

@hfreire
hfreire / qemu_osx_rpi_raspbian_jessie.sh
Last active December 4, 2025 03:23
How to emulate a Raspberry Pi (Raspbian Jessie) on Mac OSX (El Capitan)
# Install QEMU OSX port with ARM support
sudo port install qemu +target_arm
export QEMU=$(which qemu-system-arm)
# Dowload kernel and export location
curl -OL \
https://github.com/dhruvvyas90/qemu-rpi-kernel/blob/master/kernel-qemu-4.1.7-jessie
export RPI_KERNEL=./kernel-qemu-4.1.7-jessie
# Download filesystem and export location
@lelandbatey
lelandbatey / whiteboardCleaner.md
Last active December 30, 2025 11:27
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results

@vasmani
vasmani / gist:8144151
Last active January 1, 2016 12:19
jarduino -- 과연 잘 되어야 하는데.. 방법 : jarduino의 HC-05옆에 점퍼선을 연결한후에 아래 코드를 usb모드로 입력, 실 사용시에는 BT모드로 변환하면 된다.
#include <Event.h>
#include <Timer.h>
#include <SPI.h>
#include <LiquidCrystal.h>
#include <dht.h>
#define ledpin_red 13 //Arduino output pin for Shift Light Red led
#define BT_CMD_RETRIES 5 //Number of retries for each Bluetooth AT command in case of not responde with OK
#define OBD_CMD_RETRIES 20 //Number of retries for each OBD command in case of not receive prompt '>' char
@gre
gre / easing.js
Last active January 24, 2026 10:24
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
/*
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See the COPYING file for more details.
*/
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {