Skip to content

Instantly share code, notes, and snippets.

View Kumpon-Sotsukpiam's full-sized avatar

Kumpon Sotsukpiam Kumpon-Sotsukpiam

View GitHub Profile
@Kumpon-Sotsukpiam
Kumpon-Sotsukpiam / whiteboardCleaner.md
Created August 31, 2022 07:11 — forked from lelandbatey/whiteboardCleaner.md
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

@Kumpon-Sotsukpiam
Kumpon-Sotsukpiam / git-clearHistory
Created September 21, 2021 06:14 — forked from stephenhardy/git-clearHistory
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin [email protected]:<YOUR ACCOUNT>/<YOUR REPOS>.git
// main.js
const nodemailer = require('nodemailer');
// setup mail transporter service
const transporter = nodemailer.createTransport({
service: 'hotmail',
auth: {
user: '[email protected]', // your email
pass: 'password' // your password
}
@Kumpon-Sotsukpiam
Kumpon-Sotsukpiam / index.html
Created November 22, 2020 05:22
Split Slick Slideshow
<!--
Follow me on
Dribbble: https://dribbble.com/supahfunk
Twitter: https://twitter.com/supahfunk
Codepen: https://codepen.io/supah/
-->
<div class="split-slideshow">
<div class="slideshow">
@Kumpon-Sotsukpiam
Kumpon-Sotsukpiam / index.html
Created November 22, 2020 05:21
Slider transitions
<!-- Page Wrap -->
<div class="page-wrap">
<div id="home-slider">
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide swiper-slide-one">
<div class="swiper-image" data-swiper-parallax-y="-20%">
<div class="swiper-image-inner swiper-image-left swiper-image-one">
<h1>A <span class="emphasis">Breath</span>. <br><span>Of Fresh Air.</span></h1>
@Kumpon-Sotsukpiam
Kumpon-Sotsukpiam / index.pug
Created November 22, 2020 05:21
React Slider w/ Hover Effect
#app
@Kumpon-Sotsukpiam
Kumpon-Sotsukpiam / index.html
Created November 22, 2020 05:15
News Cards - CSS only
<div class="row">
<div class="example-1 card">
<div class="wrapper">
<div class="date">
<span class="day">12</span>
<span class="month">Aug</span>
<span class="year">2016</span>
</div>
<div class="data">
<div class="content">
@Kumpon-Sotsukpiam
Kumpon-Sotsukpiam / index.pug
Created November 22, 2020 05:15
UI Media Card
.container
.item-list
.item.item-1
.img
a(href="javascript:;")
.like
i(class="fa fa-heart" aria-hidden="true")
.img-content
.social
a(href="javascript:;")
@Kumpon-Sotsukpiam
Kumpon-Sotsukpiam / dr-mario-pill-cards-v2.markdown
Created November 22, 2020 05:15
Dr. Mario pill cards (v2)