Skip to content

Instantly share code, notes, and snippets.

View FilipChalupa's full-sized avatar
💭
I'm walking here

Filip Chalupa FilipChalupa

💭
I'm walking here
View GitHub Profile
@FilipChalupa
FilipChalupa / resize.sh
Last active January 30, 2021 19:06
SVG to webmanifest PNGs
#!/bin/bash
directory="$PWD/public/manifest-icon/"
icon="icon.svg"
iconMaskable="icon-maskable.svg"
sizes=(32 36 48 72 96 128 144 192 256 384 512 1024 2048)
for i in "${sizes[@]}"; do
echo Resizing $i
@paulozoom
paulozoom / _gradient-color-at.scss
Created April 9, 2015 15:43
Sass function to calculate the color of a linear gradient at a specific point
///
/// Calculates the color of a linear gradient at a specific point.
///
/// @param {Color} $start - gradient’s start color
/// @param {Color} $end - gradient’s end color
/// @param {Number} $point - point of the gradient (between 0 and 1, or 0% and 100%) at which we want the color
/// @return {Color}
///
/// @example scss
/// background-color: gradient-color-at(#BBE087, #DCDE85, 0.4);
@Majkl578
Majkl578 / gist:947036
Created April 28, 2011 18:57
webalizing string in JS
<head>
<script type="text/javascript">
var webalize = function (str) {
var charlist;
charlist = [
['Á','A'], ['Ä','A'], ['Č','C'], ['Ç','C'], ['Ď','D'], ['É','E'], ['Ě','E'],
['Ë','E'], ['Í','I'], ['Ň','N'], ['Ó','O'], ['Ö','O'], ['Ř','R'], ['Š','S'],
['Ť','T'], ['Ú','U'], ['Ů','U'], ['Ü','U'], ['Ý','Y'], ['Ž','Z'], ['á','a'],
['ä','a'], ['č','c'], ['ç','c'], ['ď','d'], ['é','e'], ['ě','e'], ['ë','e'],
['í','i'], ['ň','n'], ['ó','o'], ['ö','o'], ['ř','r'], ['š','s'], ['ť','t'],