Skip to content

Instantly share code, notes, and snippets.

View tmray's full-sized avatar

Tom Ray tmray

View GitHub Profile
@tmray
tmray / cmd less linux
Created January 26, 2013 20:39
Just a reminder, what the less compile command is in Linux, cuz I'm always forgetting.
$ lessc styles.less > styles.css
@tmray
tmray / Contact page
Last active December 21, 2015 14:38 — forked from ghaida/gist:5054646
Design template for squeeze campaign.
<nav class="top-bar">
<ul class="title-area">
<!-- Title Area -->
<li class="name">
<h1>
<a href="#">
Top Bar Title
</a>
</h1>
</li>
@tmray
tmray / 0_reuse_code.js
Created November 4, 2013 22:27
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@tmray
tmray / basic-style-guide.md
Created December 10, 2013 17:23
Style guide notes for collaboration.

CSS Structure

  • Display
  • Positioning
  • Box model
  • Colors and Typography
  • Other
@tmray
tmray / synfig-render-avi
Created December 23, 2013 05:13
how to render a high quality video from a yuv file in synfig
ffmpeg -i animation.yuv -sameq animation.avi

Headline

We got an italic thing here and link.

And this here:

For a new "Linebreak"
Add 2 spaces after the word, then enter
Or add a tab then enter

.element { position: relative; top: 50%; transform: translateY(-50%); }
.article {
float: left;
width: calc(100% - 1em);
}
@tmray
tmray / text-shadow.css
Last active January 4, 2016 07:09
outline text-sahdow for fonts technique
h1 {
font-size: 80px;
letter-spacing: -2px;
line-height: 1;
/*This being the method below --Requires background to be the same color as the #1d9d74 */
text-shadow: 4px 3px 0 #1d9d74,9px 8px 0 rgba(0,0,0,0.15);
margin: 0 0 15px;
}