This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |