Skip to content

Instantly share code, notes, and snippets.

View johnnybridges's full-sized avatar

Johnny Bridges johnnybridges

View GitHub Profile

Keybase proof

I hereby claim:

  • I am johnnybridges on github.
  • I am johnnybridges (https://keybase.io/johnnybridges) on keybase.
  • I have a public key ASCK5hu8j2N_5HG0ZbAVgVvpSa315yFykI1IojqkK2c_Cwo

To claim this, I am signing this object:

{
"name": "App name",
"description": "App description",
"version": "0.0.1",
"author": {
"name": "your name",
"role": "Dev"
},
"main": "main.js",
"devDependencies": {
@johnnybridges
johnnybridges / main.js
Last active August 29, 2015 14:25
Electron app basic setup
var app = require('app'); // Module to control application life.
var BrowserWindow = require('browser-window'); // Module to create native browser window.
// Report crashes to our server.
require('crash-reporter').start();
// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is GCed.
var mainWindow = null;
@johnnybridges
johnnybridges / siteup
Created September 12, 2013 11:35
Create apache2 virtualhosts automagically. Still need to run a2ensite ___ afterwards to enable virtualhost.
#! /bin/bash
#
# =======================
# Siteup Script 0.2
# Written by Command Line Idiot
# Edited last by Johnny Bridges
# =======================
# set functions
# =======================
@johnnybridges
johnnybridges / dabblet.css
Created February 1, 2013 02:28
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
html {
background: #f06;
background: linear-gradient(180deg, #f06, black);
min-height: 100%;
}
p {
@johnnybridges
johnnybridges / gist:3360878
Created August 15, 2012 15:04 — forked from aalaap/gist:3066704
Sample HTML page with Twitter's Bootstrap, Ryan Fait's Sticky Footer, and a full-width footer, fixed for responsive layouts by Aalaap Ghag
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="author" content="Aalaap Ghag" />
<title>Twitter&rsquo;s Bootstrap with Ryan Fait&rsquo;s Sticky Footer and Aalaap Ghag&rsquo;s Responsive Padding Fix</title>
<link rel="stylesheet" href="css/bootstrap.min.css" />
<link href="css/bootstrap-responsive.css" rel="stylesheet">
<style>
html, body {
// Released under MIT license: http://www.opensource.org/licenses/mit-license.php
$('[placeholder]').focus(function() {
var input = $(this);
if (input.val() == input.attr('placeholder')) {
input.val('');
input.removeClass('placeholder');
}
}).blur(function() {
var input = $(this);