This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Lab setup | |
var Code = require('code'); | |
var Lab = require('lab'); | |
var lab = exports.lab = Lab.script(); | |
var describe = lab.describe; | |
var it = lab.it; | |
var before = lab.before; | |
var after = lab.after; | |
var expect = Code.expect; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
footer { | |
background: yellow; | |
section {background: pink; padding: 4px;} | |
@include grid-span(2, 1); | |
@include layout($gutter: .1) { | |
.section1 { @include float-span(1, 1);} | |
.section2 { @include float-span(1, 2);} | |
.section3 { @include float-span(1, 1);} | |
.section4 { @include float-span(1, 2);} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Import | |
@import "main"; | |
// Singularity 1.2 Syntax | |
@include sgs-change('debug', true); | |
@include sgs-change('mobile first', true); | |
@include sgs-change('output', 'isolation'); | |
@include sgs-change('include clearfix', true); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>My Front-end Demo Project</title> | |
<link rel="stylesheet" href="stylesheets/application.css"> | |
<script type="text/javascript" src="scripts/app.js"></script> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local Time12a="\$(date +%H:%M)" | |
local PathShort=":\w" | |
local Username="\u" | |
local Separator="@" | |
local Hostname="\H" | |
# These are the color definitions used by gitprompt.sh | |
GIT_PROMPT_PREFIX="[" # start of the git info string | |
GIT_PROMPT_SUFFIX="]" # the end of the git info string | |
GIT_PROMPT_SEPARATOR="|" # separates each item |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var _ = require('lodash'); | |
var Routes = require('./routes'); | |
var logger = { | |
maxLogSize: 1024 * 1024, //1MB | |
subscribers: { | |
'console': ['ops', 'log', 'request', 'error'], | |
'api/storage/v1/logs/api-access': ['request'], | |
'api/storage/v1/logs/api-log': { tags: ['api'], events: ['log'] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var Handlebars = require('handlebars'); | |
module.exports = function truncate(str, len, words) { | |
var safe = Handlebars.Utils.escapeExpression(str); | |
var tooLong = safe.length > len; | |
var s_ = tooLong ? safe.substr(0, len) : safe; | |
if (words && tooLong) { | |
var index = s_.lastIndexOf(' '); | |
if (index !== -1) { | |
s_ = s_.substr(0, index); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
// Load modules | |
var Hapi = require('hapi'); | |
var Glue = require('glue'); | |
var Config = require('./config'); | |
// Declare internals | |
var internals = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module B | |
@@catch | |
def self.included(base) | |
class << base | |
def catch=(hsh) | |
@@catch = hsh | |
end | |
def catch | |
@@catch |
OlderNewer