Skip to content

Instantly share code, notes, and snippets.

View captbrogers's full-sized avatar

Brian captbrogers

View GitHub Profile
@captbrogers
captbrogers / HTML: Boilerplate
Last active October 11, 2015 18:37
Basics needed for a good HTLM5 page
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<!-- force older versions of IE (<= IE 9) to use JavaScript shiv for HTML5 tags -->
<!--[if lte IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<!-- helps with tablets or phones viewing the site -->
<meta name="viewport" content="width=device-width">
@captbrogers
captbrogers / sublime.desktop
Last active October 11, 2015 23:08
Sublime Text 2 desktop file for Fedora 17
[Desktop Entry]
Version=1.1
Name=Sublime Text 2
GenericName=Text Editor
Comment=Edit text files
Exec=sublime
Terminal=false
Type=Application
StartupNotify=true
@captbrogers
captbrogers / ST2 User Settings
Created October 22, 2012 21:11
My user specific settings for Sublime Text 2
// Settings in here override those in "Default/Preferences.sublime-settings", and
// are overridden in turn by file type specific settings.
{
// must have Droid font family installed
"font_face": "Droid Sans Mono",
// always use spaces, will provide better readability if opening in another IDE
// e.g. one "tab" may be 8 spaces in another IDE, but only 4 in Sublime
"translate_tabs_to_spaces": true,
@captbrogers
captbrogers / JS: SIAF
Created December 6, 2012 02:50
JavaScript
(function( window, document ) {
${1}
}( this, document));
@captbrogers
captbrogers / fetch
Created December 12, 2012 20:55
My packages/libraries to call using Nettuts+ Fetch in ST2
{
"files":
{
"jquery" : "http://code.jquery.com/jquery-latest.min.js",
"jquery-dev" : "http://code.jquery.com/jquery-latest.js",
"json2" : "https://raw.github.com/douglascrockford/JSON-js/master/json2.js",
"backbone" : "http://backbonejs.org/backbone-min.js",
"backbone-dev" : "http://backbonejs.org/backbone.js",
"underscore" : "http://documentcloud.github.com/underscore/underscore-min.js",
"underscore-dev" : "http://documentcloud.github.com/underscore/underscore.js",
@captbrogers
captbrogers / Laravel: RESTful API
Created December 20, 2012 18:50
Laravel snippet for a restful API controller
<?php
class Api_${1}_Controller extends Base_Controller {
public $restful = true;
public function get_index() {
@captbrogers
captbrogers / comment header
Created January 15, 2013 23:01
ST2 snippet for basic comment header
<snippet>
<content><![CDATA[
/**
* ${1}
* ----------------------------------------------------------------
* ${2}
*/
${3}
]]></content>
@captbrogers
captbrogers / BASH: YUI
Created January 16, 2013 17:26
Use a bash script to call YUI Compressor
#!/bin/bash
yui='/usr/bin/yui-compressor/build/yuicompressor-2.4.8pre.jar'
j='/usr/bin/java'
for i in $@
do
filename=${i%.*}
ext=${i##*.}
@captbrogers
captbrogers / BASH: sassconvert
Last active December 11, 2015 05:18
Bash script to convert SCSS to SASS
#!/bin/bash
for i in $@
do
echo "Converting $i -> ${i%.*}.sass"
# not sure any of the flags are neccessary but I put them in anyway
sass-convert --from scss --to sass --indent 4 $i ${i%.*}.sass
done

#Techniques for Anti-Aliasing @font-face on Windows

It all started with an email from a client: Do these fonts look funky to you? The title is prickly.

The font in question was Port Lligat Sans from Google Web Fonts.

The "prickly" is aliasing caused by lack of hinting