This file contains hidden or 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
| 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){ | |
| }); | |
| }; |
This file contains hidden or 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
| { | |
| "name": "hole", | |
| "version": "0.0.1", | |
| "description": "My Test", | |
| "main": "index.js", | |
| "scripts": { | |
| "start": "server.js" | |
| }, | |
| "dependancies": { | |
| }, |
This file contains hidden or 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
| 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 |
This file contains hidden or 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
| 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 |
This file contains hidden or 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
| $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 "" |
This file contains hidden or 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 { 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 | |
| }); |
OlderNewer