Skip to content

Instantly share code, notes, and snippets.

View ianthekirkland's full-sized avatar

Ian Kirkland ianthekirkland

View GitHub Profile
<!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;
@ianthekirkland
ianthekirkland / dontforget.bash
Created April 29, 2021 18:52 — forked from ttscoff/dontforget.bash
Quick reminders from Terminal (bash)
#!/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':
@ianthekirkland
ianthekirkland / JerryLib.scptd
Created January 22, 2020 19:03 — forked from jerrykrinock/JerryLib.scptd
My personal utility library of AppleScript handlers, and some one-liners
-- 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 *)

Font Face

A mixin for writing @font-face rules in SASS.

Usage

Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.

@include font-face(Samplino, fonts/Samplino);
@ianthekirkland
ianthekirkland / foundation-responsive-accordion-tabs-tabs-flex.markdown
Created September 5, 2017 03:49
Foundation/Responsive Accordion Tabs/Tabs (Flex)
@ianthekirkland
ianthekirkland / foundation-responsive-accordion-tabs-flex.markdown
Created September 5, 2017 03:47
Foundation/Responsive Accordion Tabs (Flex)
@ianthekirkland
ianthekirkland / foundation-collapsing-tabs-flex.markdown
Last active September 5, 2017 03:43
Foundation/Collapsing Tabs (Flex)
@ianthekirkland
ianthekirkland / foundation-vertical-tabs-flex.markdown
Created September 5, 2017 03:26
Foundation/Vertical Tabs (Flex)
@ianthekirkland
ianthekirkland / foundation-horizontal-tabs-flex.markdown
Created September 5, 2017 03:25
Foundation/Horizontal Tabs (Flex)