This file contains 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
// https://en.wikipedia.org/wiki/Alpha_scale | |
// http://www.microtonal-synthesis.com/scale_carlos_alpha.html | |
var notes = [ | |
// the Alpha scale is generated by dividing a perfect fifth into 9 steps | |
// with a root of A4 (440hz), a perfect fifth is E4 (659.25hz) | |
// to get a single step in the Alpha scale, we perform (659.25-440)/9 = 24.36hz | |
// a major third in the alpha scale is 5 steps: 24.36*5 = 121.8hz | |
// in this way, we can take any ROOT note in hertz and derive an Alpha scale from it |
This file contains 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
// repo here: https://github.com/caycefischer/sketch-copyeditor | |
var com = {}; | |
com.updatecopy = { | |
debugLog: function(msg) { | |
if(this.debug) log(msg); | |
}, |
This file contains 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
<!-- as per Mathias Bynens: http://mathiasbynens.be/notes/touch-icons#sizes --> | |
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144x144-precomposed.png"> | |
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="/apple-touch-icon-120x120-precomposed.png"> | |
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/apple-touch-icon-114x114-precomposed.png"> | |
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="/apple-touch-icon-72x72-precomposed.png"> | |
<link rel="apple-touch-icon-precomposed" href="/apple-touch-icon-precomposed.png"> <!-- this is 57x57 --> | |
<!-- as per Jonathan Neal: http://www.jonathantneal.com/blog/understand-the-favicon/ --> | |
<link rel="icon" href="/favicon.png"> | |
<!--[if IE]><link rel="shortcut icon" href="/favicon.ico"><![endif]--> |
This file contains 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
// '$' helper function | |
window.$ = function(selector) { | |
return document.querySelector(selector); | |
}; | |
// usage | |
$('#nic').src = 'http://placecage.com/c/400/300'; |
This file contains 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
<style> | |
@media (min-width: 45em) { | |
body:after { | |
content: 'widescreen'; | |
display: none; | |
} | |
} | |
</style> | |
<script> |
This file contains 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
# redirect www to no-www | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{HTTP_HOST} ^www.domain.com [NC] | |
RewriteRule ^(.*)$ http://domain.com/$1 [L,R=301] | |
# custom error pages | |
ErrorDocument 401 /error/401.php | |
ErrorDocument 403 /error/403.php | |
ErrorDocument 404 /error/404.php |
This file contains 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
{% capture md %} | |
# {{page.title}} | |
> blockquote | |
Hello! | |
{% endcapture %} | |
{{ md | markdownify }} |
This file contains 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
Single line, no attribution: | |
<figure class="quote"> | |
<blockquote>It is the unofficial force—the Baker Street irregulars.</blockquote> | |
</figure> | |
Single line, with attribution and optional cite: | |
<figure class="quote"> | |
<blockquote>It is the unofficial force—the Baker Street irregulars.</blockquote> |
This file contains 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
<h1> | |
A More Responsive Grid System | |
<em>based off of the Don't Overthink it Grid</em> | |
</h1> | |
<h2><a href="http://amperedesign.com/blog/more-responsive-grid-systems/">Read the full article here</a></h2> | |
<!-- let the show begin --> | |
<div class="grid grid-pad"> |
This file contains 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
!!! 5 | |
%html | |
%head | |
%title= "Your Website" | |
%meta{ :content => "", :name => "description" } | |
%meta{ :content => "", :name => "author" } | |
%meta{ :content => "3 days", :name => "revisit-after" } | |
%link{ :href => "http://creativecommons.org/licenses/by/3.0/", :rel => "license", :title => "Creative Commons Attribution 3.0 Unported License" } | |
%link{ :href => "/feed", :rel => "alternate", :title => "Atom", :type => "application/atom+xml" } | |
%link{ :href => "/css/screen.css", :media => "screen", :rel => "stylesheet" } |
NewerOlder