Skip to content

Instantly share code, notes, and snippets.

View limptwiglet's full-sized avatar
🎯
Focusing

Mark Gerrard limptwiglet

🎯
Focusing
View GitHub Profile
var validateUnique = function(model, field){
return function(form, field, callback){
var model = db.model(model);
var q = {};
q[field] = form.data[field];
model.findOne(q, 'name', function(err, doc){
});
};
{
"name": "hole",
"version": "0.0.1",
"description": "My Test",
"main": "index.js",
"scripts": {
"start": "server.js"
},
"dependancies": {
},
@limptwiglet
limptwiglet / gist:7978304
Created December 15, 2013 21:19
Tmux conf
set -g default-command "reattach-to-user-namespace -l zsh"
set -g default-terminal "xterm-256color"
set -g base-index 1
set -g status-left-length 32
set -g status-right-length 150
set -g status-fg white
set -g default-terminal "xterm-256color"
set -g base-index 1
set -g status-left-length 32
set -g status-right-length 150
set -g status-fg white
set -g status-bg colour234
set -g window-status-activity-attr bold
$cols-count = 12
$cols-max-width = 960px
$ratio = 100 / 960
$cols-gutter = ($ratio * 28px)%
$cols-margin = ($ratio * 5px)%
$col-width = $ratio * (960 / 12)%
$cols-padding = 3%
.l-cols
content ""
import { describe, it } from 'mocha';
import { expect } from 'chai';
import Nav from '../../src/components/Nav.html';
import { getByText } from 'dom-testing-library';
describe('first test', () => {
it('should be testable', () => {
let nav = new Nav({
target: document.body
});