Skip to content

Instantly share code, notes, and snippets.

View johno's full-sized avatar
🖤
Computering

John Otander johno

🖤
Computering
View GitHub Profile
@johno
johno / tooltips.js
Created July 15, 2014 18:49
Tooltips with bootstrap.
$(document).ready(function() {
$('*[data-toggle="tooltip"]').tooltip({ container: "body"});
});

Keybase proof

I hereby claim:

  • I am johnotander on github.
  • I am johno (https://keybase.io/johno) on keybase.
  • I have a public key whose fingerprint is 55BF F709 0CB5 73D7 4EC8 4257 9514 B12F F542 F648

To claim this, I am signing this object:

.btn, .btn--link, .btn--blue, .btn--green, .btn--gray {
padding: 1rem;
border: 2px solid #ccc;
border-radius: 2px;
color: #333;
text-decoration: none;
text-align: center; }
.btn:hover, .btn:focus, .btn:active {
background-color: rgba(0, 0, 0, 0.05); }
@johno
johno / ubuntu-rails-deploy.md
Last active December 7, 2015 23:13
Steps necessary to deploy a standard Rails app to an Ubuntu 14 box with a Postgres database and DelayedJob.

Ubuntu Rails Deploy

This is a walkthrough for deploying a Rails app on an Ubuntu Server with Nginx, Passenger, Postgres, and DelayedJob.

Basic required packages

sudo apt-get update
sudo apt-get install curl git nodejs
@johno
johno / all.scss
Created November 6, 2014 17:55
Example SCSS preprocessing with autoprefixer and minification.
* {
box-sizing: border-box;
}
@johno
johno / index.html
Created November 11, 2014 20:04
Example using handlebars from https://github.com/johnotander/chattt
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Handlebars Template Example</title>
</head>
<body>
<script id="message" type="text/x-handlebars-template">
<li>
<span class="username">{{username}}</span>
@johno
johno / Brocfile.js
Created November 18, 2014 22:45
Concatentate and minify assets with the Ember CLI
/* global require, module */
var css = require('broccoli-clean-css');
var concatFiles = require('broccoli-concat');
var removeFile = require('broccoli-file-remover');
var mergeTrees = require('broccoli-merge-trees');
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var app = new EmberApp();
@johno
johno / index.js
Created December 2, 2014 00:48
CSS Linting addon
var csslintTree = require('broccoli-csslint');
var broccoli = require('broccoli');
'use strict';
module.exports = {
name: 'ember-cli-csslint',
included: function(app) {
this._super.included(app);
@johno
johno / gulpfile.js
Created December 17, 2014 07:39
Use the a11y npm package in a gulpfile.
var gulp = require('gulp');
var gutil = require('gulp-util');
var a11y = require('a11y');
gulp.task('a11y', function() {
a11y('http://furtive.co', function(err, reports) {
if (err) {
gutil.log(gutil.colors.red('gulp a11y error: ' + err));
return;
}