Skip to content

Instantly share code, notes, and snippets.

View stringtheory's full-sized avatar

Diane Kopperl stringtheory

View GitHub Profile
@stringtheory
stringtheory / font.scss
Created August 12, 2015 18:08
Chinese font stack
body {
font-family: Georgia, "Times New Roman", "FangSong", "仿宋", STFangSong, "华文仿宋", serif;
}
@stringtheory
stringtheory / gist:0423b90fd475e936a42b
Created July 15, 2015 23:54
/Users/[name]/[project]/.git/hooks/post-commit
#!/bin/sh
#
echo "pushing..."
cd /Users/[name]/[project]
/opt/local/bin/git push origin
/usr/bin/ssh dev -f 'cd /home/[name]/[project] && git reset --hard HEAD'
exit 0
@stringtheory
stringtheory / bower.txt
Last active August 29, 2015 14:24
What does this thing do?
Bower offers a generic, unopinionated solution to the problem of
front-end package management, while exposing the package dependency
model via an API that can be consumed by a more opinionated build
stack. There are no system wide dependencies, no dependencies are
shared between different apps, and the dependency tree is flat.
Bower runs over Git, and is package-agnostic. A packaged component
can be made up of any type of asset, and use any type of
transport (e.g., AMD, CommonJS, etc.).
@stringtheory
stringtheory / FAVORITE UNICODES
Created May 28, 2015 21:48
FAVORITE UNICODES
<!DOCTYPE html>
<html dir="ltr" lang="en-US" class="no-js">
<head>
<%block name="header()"/>
</head>
<body>${self.body()}</body>
</html>
@stringtheory
stringtheory / azul_theme.css
Created January 22, 2015 19:53
Custom Theme Examples from Olark - non-minified.
#habla_window_div, #habla_window_div a, #habla_window_div abbr, #habla_window_div acronym, #habla_window_div address, #habla_window_div applet, #habla_window_div article, #habla_window_div aside, #habla_window_div audio, #habla_window_div b, #habla_window_div big, #habla_window_div blockquote, #habla_window_div caption, #habla_window_div cite, #habla_window_div code, #habla_window_div dd, #habla_window_div del, #habla_window_div dfn, #habla_window_div dialog, #habla_window_div div, #habla_window_div dl, #habla_window_div dt, #habla_window_div em, #habla_window_div fieldset, #habla_window_div figure, #habla_window_div font, #habla_window_div footer, #habla_window_div form, #habla_window_div h1, #habla_window_div h2, #habla_window_div h3, #habla_window_div h4, #habla_window_div h5, #habla_window_div h6, #habla_window_div header, #habla_window_div hgroup, #habla_window_div hr, #habla_window_div i, #habla_window_div iframe, #habla_window_div img, #habla_window_div input, #habla_window_div ins, #habla_window_div k
@stringtheory
stringtheory / imagemagick_reference.php
Last active October 21, 2015 16:19
For each image magick command line reference, the comparable command using in php iMagick wrapper is listed below.
<?php
// colorspace
$cmd_line[] = '-colorspace sRGB';
$image->setImageColorspace(imagick::COLORSPACE_SRGB);
// flatten
$cmd_line[] = '-flatten';
$image->flattenImages();
<section class="row">
<article class="grid_8 ">
<h1>Is This Award-Winning Cleanse Missing from Your Routine?</h1>
<figure>
<img src="..." />
<figcaption>...</figcaption>
</figure>
<p><strong>EVE LOM</strong>...</p>
<ul class="small_tile_1 medium_tile_2 large_tile_4 xl_tile_4">
<li><img src="..." /></li>
<li><img src="..." /></li>
<li><img src="..." /></li>
<li><img src="..." /></li>
<li><img src="..." /></li>
<li><img src="..." /></li>
</ul>
<ul class="small_tile_3">
<li><img src="..." /></li>
<li><img src="..." /></li>
<li><img src="..." /></li>
<li><img src="..." /></li>
<li><img src="..." /></li>
<li><img src="..." /></li>
</ul>