Skip to content

Instantly share code, notes, and snippets.

View jameslutley's full-sized avatar
🎯
Focusing

James Lutley jameslutley

🎯
Focusing
View GitHub Profile
@jameslutley
jameslutley / samplerest.js
Created August 20, 2017 23:13 — forked from joshbirk/samplerest.js
Sample of using passport w/ mult strategies
var fs = require("fs")
var ssl_options = {
key: fs.readFileSync('privatekey.pem'),
cert: fs.readFileSync('certificate.pem')
};
var port = process.env.PORT || 3000;
var express = require('express');
var ejs = require('ejs');
var passport = require('passport')
@jameslutley
jameslutley / dribble_example.html
Created October 17, 2016 07:21 — forked from jim/dribble_example.html
Rough example for calling Dribbble API with JavaScript
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>untitled</title>
<meta name="generator" content="TextMate http://macromates.com/">
<meta name="author" content="Jim Benton">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.js" type="text/javascript" charset="utf-8"></script>
@jameslutley
jameslutley / Contract Killer 3.md
Created June 11, 2016 03:36
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

@jameslutley
jameslutley / package.json
Created May 26, 2016 16:16 — forked from addyosmani/package.json
npm run-scripts boilerplate
{
"name": "my-app",
"version": "1.0.0",
"description": "My test app",
"main": "src/js/index.js",
"scripts": {
"jshint:dist": "jshint src/js/*.js'",
"jshint": "npm run jshint:dist",
"jscs": "jscs src/*.js",
"browserify": "browserify -s Validating -o ./dist/js/build.js ./lib/index.js",
@jameslutley
jameslutley / _bootstrap-em.scss
Created May 25, 2016 02:25 — forked from neil-h/_bootstrap-em.scss
A Sass port of jasny/bootstrap-em.less
@function strip-units($number) {// From : http://stackoverflow.com/a/12335841/1339426
@return $number / ($number * 0 + 1);
}
/**
* Use em or rem font-size in Bootstrap 3
* Ported from Less version here: https://gist.github.com/jasny/9731895
*/
$font-size-root: 18px;
$font-unit: 1rem; // Pick em or rem here
@jameslutley
jameslutley / dribbble.html
Created April 27, 2016 13:45 — forked from haydenbleasel/dribbble.html
Dribbble feed for portfolio
#dribbble
.row.clearfix.hidden-xs
noscript Sorry, you need Javascript enabled to view these Dribbble shots.
.column-3
p Simplicity, functionality and accessibility will always remain at the core of my philosphy. I like to combine aspects of print and graphic such as dynamic layouts and typographic flourishes with the principles of modern, minimalism.
@jameslutley
jameslutley / typekit.editor.php
Created January 20, 2016 05:17 — forked from tomjn/typekit.editor.php
Typekit fonts for TinyMCE editor plugin
add_filter("mce_external_plugins", "tomjn_mce_external_plugins");
function tomjn_mce_external_plugins($plugin_array){
$plugin_array['typekit'] = get_template_directory_uri().'/typekit.tinymce.js';
return $plugin_array;
}
@jameslutley
jameslutley / sir-trevor-active-admin.css
Created January 18, 2016 14:34 — forked from andflett/sir-trevor-active-admin.css
Make Sir Trevor more presentable in ActiveAdmin
body {
margin: 0;
line-height: 150%;
font-size: 72%;
}
form .sir-trevor {
width: 860px;
margin: 30px auto;
background: #ffffff;
@jameslutley
jameslutley / unitconversion.scss
Created January 2, 2016 10:32 — forked from jakob-e/unitconversion.scss
SCSS unit conversion functions
// ==========================================================
// Unit Conversion
// ==========================================================
//
// Functions:
// ----------------------------------------------------------
//
// NUMBER:
//
// isNaN($value) - returns true or false if type-of($value)==number
@jameslutley
jameslutley / digital_ocean_setup.md
Created December 18, 2015 08:05 — forked from ChuckJHardy/digital_ocean_setup.md
DigitalOcean Ubuntu 14.04 x64 + Rails 4 + Nginx + Unicorn + PostgreSQL + Capistrano 3 Setup Instructions