A mixin for writing @font-face rules in SASS.
Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.
@include font-face(Samplino, fonts/Samplino);
<!doctype html> | |
<meta charset=utf-8> | |
<meta name=viewport content=width=device-width,initial-scale=1> | |
<style> | |
* { | |
line-height: 1.1; | |
word-wrap: break-word; | |
} | |
body { | |
font: 16px Georgia, serif; |
#!/bin/bash | |
# dontforget | |
# | |
# A stupid script for short term reminders in bash | |
# | |
# Arguments just need to contain a number and a bunch of words. | |
# | |
# The number can be anywhere in the arguments, but there shouldn't | |
# be any other numeric digits. | |
# |
function random_text( $type = 'alnum', $length = 8 ) | |
{ | |
switch ( $type ) { | |
case 'alnum': | |
$pool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; | |
break; | |
case 'alpha': | |
$pool = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; | |
break; | |
case 'hexdec': |
-- To load this library, see section titled "-- Using a handler in a .scpt library" at the top of One_Liners.scpt. | |
on testJerryLib() | |
return 0 | |
end testJerryLib | |
(* The bad thing about this handler is that it always asks the user for admin credentials whether or not they are actually needed to answer the question on the given path. | |
Obviously, you can remove the 'with adminstrator privileges'. Unfortunately, this will cause the method to return 'false' if an existing path cannot be probed because of bad permissions. I can't see any way to differentiate between inadequate permissions and nonexisting file because they both set errNumber = 54. | |
The -e checks for directories or files. To require that the given path be a directory, use -d. For file, use -f. For more variations, see: | |
http://www.cyberciti.biz/tips/find-out-if-file-exists-with-conditional-expressions.html *) |
A Pen by Ian Kirkland on CodePen.
A Pen by Ian Kirkland on CodePen.
A Pen by Ian Kirkland on CodePen.
A Pen by Ian Kirkland on CodePen.
A Pen by Ian Kirkland on CodePen.