Skip to content

Instantly share code, notes, and snippets.

View stagfoo's full-sized avatar
🎨
Do I Dream of Electric Bugs

Alex King stagfoo

🎨
Do I Dream of Electric Bugs
View GitHub Profile
@stagfoo
stagfoo / pinky.scss
Last active March 5, 2017 09:04
Really small and Simple Sass Grid system
[class*='col-'] {
//Aligns the columns next to each other
width: 100%;
float:left;
min-height: 1px;
}
// an extend only class for clearfixing
%clearfix {
*zoom: 1;
&:before,
@stagfoo
stagfoo / function-get_components.php
Last active May 16, 2016 22:28
A simple template inclusion function to help make consistent reusable code, to use not with wordpress just remove `locate_template` on line 36. expired by http://bradfrost.com/blog/post/atomic-web-design/
<?php
/**
* Get Component for wordpress
* @link https://gist.github.com/109e43bb5987a177ecbb20819f3f1870
*
* @author Alex King (@stagfoo) & Hector Nuvarro
* @version 0.2
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
/*=====================================
@stagfoo
stagfoo / example-comp.php
Last active April 16, 2016 21:26
function-get_component.php
<!-- Example component to get -->
<?php
$vars['title'] = $vars[0];
$vars['description'] = $vars[1];
$vars['class'] = $vars[2];
?>
<div class="<?php echo $vars['class']; ?>">
<h1><?php echo $vars['title']; ?></h1>
<p><?php echo $vars['description']; ?></p>
</div>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!-- Generated by: TmTheme-Editor -->
<!-- ============================================ -->
<!-- app: http://tmtheme-editor.herokuapp.com -->
<!-- code: https://github.com/aziz/tmTheme-Editor -->
<plist version="1.0">
<dict>
<key>name</key>
<string>Meteor</string>