Skip to content

Instantly share code, notes, and snippets.

View karanatwal's full-sized avatar
😎
Working on something Big.

Karandeep Atwal karanatwal

😎
Working on something Big.
View GitHub Profile
package com.webs.itmexicali.colorized;
import java.io.DataOutputStream;
import java.io.IOException;
import com.webs.itmexicali.colorized.R;
import com.webs.itmexicali.colorized.util.Const;
import android.app.Activity;
import android.app.Service;
@tadija
tadija / FontNames-iOS-17.4.swift
Last active April 30, 2024 00:30
iOS - All Font Names
/*
*** Academy Engraved LET ***
AcademyEngravedLetPlain
---------------------
*** Al Nile ***
AlNile
AlNile-Bold
---------------------
*** American Typewriter ***
AmericanTypewriter
@cachapa
cachapa / gif_creator.sh
Last active April 1, 2022 12:07
Shell script to generate high-quality animated gifs from a video file
#!/bin/bash
# Based on http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html
# Requires ffmpeg
filename="${1%.*}"
palette="/tmp/palette.png"
filters="scale=320:-1:flags=lanczos"
ffmpeg -v warning -i "$1" -vf "$filters,palettegen" -y $palette
ffmpeg -v warning -i "$1" -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y "$filename.gif"