Skip to content

Instantly share code, notes, and snippets.

View nessthehero's full-sized avatar
💭
🍕

Ian Moffitt nessthehero

💭
🍕
View GitHub Profile
@nessthehero
nessthehero / gh-pages-deploy.md
Created March 18, 2018 15:43 — forked from cobyism/gh-pages-deploy.md
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

@nessthehero
nessthehero / mixins.scss
Last active December 23, 2015 04:59 — forked from eightdotthree/mixins.scss
Forked again, but with additions to the EM translation functions to include default font size. I found out if you change the font size in an element, then do anything else with EMs in that same element, it changes what an EM actually is. With these additions, you can include the new font size and the widths will end up being the same as they wou…
@mixin bp($point) {
@if $point == print {
@media only print { @content; }
}
}
@mixin em_width($px, $default: 16) { width: #{$px / $default}em; }
@mixin em_height($px, $default: 16) { height: #{$px / $default}em; }
# Accordions
Self contained, repeatable, and unpack when there is no JavaScript.
@nessthehero
nessthehero / Gruntfile.js
Created November 5, 2012 18:55
grunt 0.4 dummy task
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
test: {
options: {
taskSetting: true
},