Skip to content

Instantly share code, notes, and snippets.

View dudleystorey's full-sized avatar

Dudley Storey dudleystorey

View GitHub Profile
@kevinSuttle
kevinSuttle / meta-tags.md
Last active November 7, 2024 10:05 — forked from lancejpollard/meta-tags.md
List of Usable HTML Meta and Link Tags
@WhatIsHeDoing
WhatIsHeDoing / gist:3179370
Created July 25, 2012 23:38
Embedding and Using Custom Fonts with SASS
/*
* _mixins.scss
*/
$font_dir: '../fonts/';
/* _simple-font-url('Chunkfive', 'eot'); */
@function _simple-font-url($name, $extension)
{
@return url($font_dir + $name + '-webfont.' + $extension);
@zabbarob
zabbarob / anki.css
Created May 7, 2013 22:45
Anki cards, CSS and HTML templates.
@font-face {
font-family: junicode;
src: url('_junicode.ttf');
}
.card, table {
font-family: Helvetica, sans-serif, junicode;
font-size: 20px;
text-align: center;
color: #d03030;
background-color: #fafaf5;
@roblevintennis
roblevintennis / gist:865de775fb988bfad9a1
Last active May 7, 2017 20:20
Responsive Inline SVGs Sass Mixin
$svg-container-namespace: '.svg-container';
//Give 'em' 1:1 responsive container by default
#{$svg-container-namespace} {
display: inline-block;
position: relative;
height: 0;
width: 100%;
padding: 0;
//Default for 1:1 aspect ratio
@davidhund
davidhund / pragmatic-touch-icons.md
Last active November 6, 2024 14:26
Pragmatic Touch Icons

NOTE I'm trying to find the most optimal fav/touch icon setup for my use-cases. Nothing new here. Read Mathias Bynens' articles on re-shortcut-icon and touch icons, a FAQ or a Cheat Sheet for all the details.

I'd like to hear how you approach this: @valuedstandards or comment on this gist.

The issue

You have to include a boatload of link elements pointing to many different images to provide (mobile) devices with a 'favicon' or 'touch icon':

![Touch Icon Links](https://o.twimg.com/2/proxy.jpg?t=HBj6AWh0dHBzOi8vcGhvdG9zLTYuZHJvcGJveC5jb20vdC8yL0FBRGFGY1VRN1dfSExnT3cwR1VhUmtaUWRFcWhxSDVGRjNMdXFfbHRJWG1GNFEvMTIvMjI3OTE2L3BuZy8xMDI0eDc2OC8yL18vMC80L1NjcmVlbnNob3QlMjAyMDE1LTA0LTE0JTIwMTYuNTYuMjYucG5nL0NNejBEU0FCSUFJZ0F5Z0JLQUkvNGR1eDZnMzZmYnlzYWI3

@AmeliaBR
AmeliaBR / veggies.md
Last active April 26, 2017 05:02
Vegetable Gardening for Beginners

Vegetable Gardening for Beginners

A friend who has lived in apartment buildings almost all her life has finally secured herself a community garden plot. She asked for advice. I wrote out a long list, and figured others might find it useful, too.

The specific dates are aimed at Toronto, Ontario. ("Now" is late April.) But the general advice and plant recommendations apply for anyone in temperate climates. I've gardened in Ottawa, Vancouver, and Edmonton. That's Canadian zones 5a, 8a, and 3b.

@5agado
5agado / boolean_slicing.py
Created June 6, 2021 23:46
Blender boolean slicing
import numpy as np
import bpy
from mathutils import Vector
from math import sin, cos, pi, copysign
def randomize_pos(obj, min, max):
axis = np.random.randint(0, 3)
new_axis_pos = np.random.uniform(min, max)
# x axis
if axis == 0: