Skip to content

Instantly share code, notes, and snippets.

@alexshive
alexshive / gist:7538478
Created November 19, 2013 01:13
package.json boilerplate
{
"name": "PackageName",
"version": "0.1.0",
"devDependencies": {
"grunt": "latest",
"grunt-compass-multiple": "~0.2.1",
"grunt-contrib-watch": "~0.5.3",
"grunt-contrib-uglify": "latest",
"grunt-contrib-compass": "latest"
}
@alexshive
alexshive / gist:7538348
Created November 19, 2013 01:00
Grunt boilerplate
/*jslint node: true*/
'use strict';
module.exports = function(grunt){
grunt.initConfig({
compass: {
global: {
options: {
@alexshive
alexshive / gist:7538288
Last active December 28, 2015 17:49
Change ownership of path
sudo chown -R $USER /path/to/node_modules/folder
sudo chmod -R 777 /path/to/write
@alexshive
alexshive / _font-awesome.scss
Created October 1, 2013 23:58
Font Awesome condensed
// Variables
// --------------------------
$FontAwesomePath: "../fonts/font-awesome" !default;
$FontAwesomeVersion: "3.2.1" !default;
/* FONT PATH
* -------------------------- */
@font-face {
@alexshive
alexshive / _rem.scss
Last active December 24, 2015 10:49
REM Font mixin
// credit to: https://coderwall.com/p/_7wmcg
$base-font-size: 16;
@mixin rem-font($pixels) {
font-size: $pixels + px;
font-size: ( $pixels / $base-font-size ) + rem;
}
@alexshive
alexshive / _grid.scss
Last active December 23, 2015 20:19
Simplified grid structure. Originally from ZURB Foundation.
@mixin clearfix {
zoom: 1;
&:before, &:after { content: ""; display: table; }
&:after { clear: both; }
}
$row-width: 1140px;
$column-gutter: 10px;
$total-columns: 12;
<snippet>
<content><![CDATA[
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
]]></content>
<tabTrigger>jquery</tabTrigger>
</snippet>
@alexshive
alexshive / httpd-vhosts.conf
Created August 23, 2013 16:44
Virtual host configuration for a local domain
<VirtualHost *:80>
DocumentRoot "/Users/alexshive/Sites/wordpress/"
ServerName wordpress
ServerAlias wordpress
<Directory "/Users/alexshive/Sites/wordpress/">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
@alexshive
alexshive / gist:6263700
Last active December 21, 2015 06:19
Apache terminal commands

Edit hosts

$ sudo nano /etc/hosts

Edit virtual hosts

$ sudo nano /etc/apache2/extra/httpd-vhosts.conf

Restart Apache

@alexshive
alexshive / gist:6252508
Created August 16, 2013 18:52
Sublime Text wordwrap default setting
{
"word_wrap": "true"
}