Skip to content

Instantly share code, notes, and snippets.

@mikesusz
mikesusz / pre-commit.sh
Created February 1, 2011 16:52
a git pre-commit hook for compass compiling of sass to css
#!/bin/sh
#
# this pre-commit script uses compass to compile and compress stylesheet partials
compass compile wp-content/themes/mytheme/ -s compact --force --no-line-comments
wait $!
git add wp-content/themes/mytheme/style.css
@mikesusz
mikesusz / Squares.js
Created April 25, 2011 14:24
squaredesign squares draw
window.Squares = function(self)
{
/* TODOS:
- animate? collect squares or just overdraw on the same grid
*/
Sq = function()
{
this.timer;
this.sqD = 64;
@mikesusz
mikesusz / Sass.sublime-build
Created January 26, 2012 15:15
Sass.sublime-build
{
"cmd": ["sass", "--update", "$file_name", "-C", "--load-path=scss"],
"working_dir": "$file_path",
"selector": "source.sass"
}
@mikesusz
mikesusz / LERERM-ERPSERM
Created December 13, 2012 22:12
ERMAHGERD
LERERM ERPSERM DERLER SERT ERMAHT, CERNSERCTERTER ERDERPERSERCIN ERLERT, SERD DER ERSMAHD TERMPER ERNCERDERDERNT ERT LERBER ERT DERLER MAHGN ERLERQER. ERT ERNERM ERD MAHNERM VERNERM QERS NERSTRERD ERXERCERTERTERN ERLERMC LERBERERS NERS ERT ERLERQERP ERX ER CERMAHDER CERNSERQERT. DERS ERT ERER DERLER ERN RERPRERERNDERERT ERN VERLERPTERT VERLERT ERSER CERLERM DERLER ER FERGERT NERL PERERTER. ERXCERPTER SERNT ERCERCERT CERPEDERTERT NERN PRERDERNT, SERNT ERN CERLP QER ERFERCER DERSERERNT MAHLERT ERNERM ERD ERST LERBERERM.
@mikesusz
mikesusz / gist:5977998
Created July 11, 2013 18:39
quick & dirty hack to put a Tags dropdown on the "All Posts" page in WordPress admin.
add_action('restrict_manage_posts','my_restrict_manage_posts');
function my_restrict_manage_posts()
{
global $typenow, $wp_query;
if ($typenow=='post')
{
$current_tag = $wp_query->query_vars['tag'];
@mikesusz
mikesusz / SassMeister-input-HTML.html
Created November 15, 2013 22:29 — forked from sugarenia/SassMeister-input-HTML.html
Generated by SassMeister.com.
<button class="btn btn--primary">Primary button</button>
<button class="btn btn--secondary">Secondary button</button>
@mikesusz
mikesusz / team-meetings
Last active August 29, 2015 14:20
a proposal for how to structure team meetings
a proposal for how to structure team meetings.
goals: to make sure you have something to talk about, everyone is represented, and a topic does not get dropped.
rules:
i. have team meetings. always have team meetings.
ii. write topics on a whiteboard. this is important. make sure everyone knows that they can add
another topic at any time.
// these are breakpoints made with Neat grids.
$medium-screen: new-breakpoint(min-width 640px 12);
$bigger-screen: new-breakpoint(min-width 910px 12);
$hugest-screen: new-breakpoint(min-width 1200px 12);
// to use: put this div at the top of your page
// <div id="sizer"></div>
#sizer {
font-size: 0.5em;
doskey gfo=git fetch origin
doskey gs=git status $*
doskey ga=git add $*
doskey gp=git pull $*
doskey gd=git diff $*
doskey gb=git branch $*
doskey gco=git checkout $*
doskey gm=git merge $*
doskey fts=git reset --hard origin