Skip to content

Instantly share code, notes, and snippets.

// A Button Entity for Impact.js
ig.module( 'plugins.button' )
.requires(
'impact.entity'
)
.defines(function() {
Button = ig.Entity.extend({
size: { x: 80, y: 40 },
@begeeben
begeeben / touch-button.js
Last active December 11, 2015 04:28 — forked from phoboslab/touch-button.js
Made touch-button able to take different size buttons in one sprite sheet.
ig.module(
'plugins.touch-button'
)
.requires(
'impact.system',
'impact.input',
'impact.image'
)
.defines(function(){
@begeeben
begeeben / app.js
Created January 7, 2014 03:18
Angular UI Router url matching patterns
angular.module('app', ['ui.router'])
.config(['$locationProvider', '$stateProvider', '$urlRouterProvider',
function($locationProvider, $stateProvider, $urlRouterProvider) {
$locationProvider.html5Mode(true);
$urlRouterProvider
.when('/test?param1&param2', 'test/:param1/:param2')
.otherwise('/');
@begeeben
begeeben / apply-call-bind.js
Last active August 29, 2015 14:01
common javascript scoping problems
// TBC
// call
// apply
// bind
var user = {
firstName: 'Peter',
say: function (message) {
div {
border: 2px transparent solid;
}
.is-active {
border: 2px black solid;
background-color: white;
}
.light {
display: inline-block;
border: 2px solid #888;
border-radius: 50px;
width: 100px;
height: 100px;
margin: 3px;
opacity: 0.3;
}
@begeeben
begeeben / jsbin.gogaj.css
Last active August 29, 2015 14:02
finite state machine example
.light {
display: inline-block;
position: relative;
background-color: black;
border: 3px solid #888;
border-radius: 50px;
width: 100px;
height: 100px;
margin: 3px;
}
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Updated: 2010/12/05
// License: MIT
//
// Copyright (c) 2010-2013 Diego Perini (http://www.iport.it)
//
// Permission is hereby granted, free of charge, to any person
{
"card_list": [
{
"type": "Deck",
"deckClass": "application",
"manifestURL": "app://app-deck.gaiamobile.org/manifest.webapp",
"group": "app"
},
{
"type": "Deck",

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).