Skip to content

Instantly share code, notes, and snippets.

<filter id="dropshadow" height="130%">
<feGaussianBlur in="SourceAlpha" stdDeviation="3"/> <!-- stdDeviation is how much to blur -->
<feOffset dx="2" dy="2" result="offsetblur"/> <!-- how much to offset -->
<feComponentTransfer>
<feFuncA type="linear" slope="0.5"/> <!-- slope is the opacity of the shadow -->
</feComponentTransfer>
<feMerge>
<feMergeNode/> <!-- this contains the offset blurred image -->
<feMergeNode in="SourceGraphic"/> <!-- this contains the element that the filter is applied to -->
</feMerge>
@minsu
minsu / shell.hs
Last active January 1, 2019 01:42
Haskell Shell Script
#! /usr/bin/env stack
-- stack --resolver lts-7.24 --install-ghc runghc
main = do
putStrLn "Please enter your birth year"
year <- getLine
putStrLn $ "In 2020, you will be: " ++ show (2020 - read year)
import unittest
import functools
def check(sub, sup):
try:
if len(sub) == 1 and sup.index(sub[0]) >= 0:
return True
return check(sub[1:], sup[sup.index(sub[0]) + 1:])
except:
return False
@minsu
minsu / sass_converter.rb
Created January 30, 2012 14:26 — forked from wolfeidau/sass_converter.rb
Sass plugin for Jekyll
module Jekyll
# Sass plugin to convert .scss to .css
#
# Note: This is configured to use the new css like syntax available in sass.
require 'sass'
class SassConverter < Converter
safe true
priority :low
def matches(ext)