Skip to content

Instantly share code, notes, and snippets.

View gnuwilliam's full-sized avatar

William Oliveira gnuwilliam

View GitHub Profile
{
"caret_extra_width": 2,
"color_scheme": "Packages/Colorsublime - Themes/IR_Black.tmTheme",
"draw_white_space": "all",
"enable_tab_scrolling": false,
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
@gnuwilliam
gnuwilliam / .bashrc
Created May 4, 2016 16:21
bash config for OS X
# OS X .bashrc
# requires brew install bash-completion
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
GIT_PS1_SHOWDIRTYSTATE=true
export PS1='\[\e[1;91m\]\W\[\033[38;5;93m\]$(__git_ps1) \[\e[97m\]\$\[\e[0m\] '
var mongoose = require('mongoose')
, Schema = mongoose.Schema;
// models
var Category = require('./category')
, Colors = require('./color')
, Print = require('./print')
, BaseTissue = require('./base_tissue');
var productSchema = new Schema({
var mongoose = require('mongoose')
, Schema = mongoose.Schema;
var categorySchema = new Schema({
name: String
});
module.exports = mongoose.model('Category', categorySchema);
@gnuwilliam
gnuwilliam / forms-radius.html
Created August 12, 2013 23:03
gist for sudotrap
<form>
<fieldset>
<legend>Legend</legend>
<div class="form-group radius">
<label for="exampleInputEmail">Email</label>
<input type="text" class="form-control" id="exampleInputEmail" placeholder="Enter email">
</div>
<div class="form-group radius">
<div class="example">
<div class="form-group has-warning">
<label class="control-label" for="inputWarning">Input with warning</label>
<input type="text" class="form-control radius" id="inputWarning">
</div>
<div class="form-group has-error">
<label class="control-label" for="inputError">Input with error</label>
<input type="text" class="form-control radius" id="inputError">
</div>
@gnuwilliam
gnuwilliam / forms-inline-radius.html
Created August 12, 2013 23:05
gist for sudotrap
<form class="form-inline">
<input type="text" class="form-control radius" placeholder="Email">
<input type="password" class="form-control radius" placeholder="Password">
<div class="checkbox">
<label>
<input type="checkbox"> Remember me
</label>
</div>
@gnuwilliam
gnuwilliam / tables-bordered.html
Created August 11, 2013 22:10
gist for sudotrap
<!-- Bordered -->
<table class="table table-bordered">
<thead>
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Github user</th>
</tr>
</thead>
@gnuwilliam
gnuwilliam / forms-normal.html
Created August 11, 2013 22:18
gist for sudotrap
<form>
<fieldset>
<legend>Legend</legend>
<div class="form-group">
<label for="exampleInputEmail">Email</label>
<input type="text" class="form-control" id="exampleInputEmail" placeholder="Enter email">
</div>
<div class="form-group">
@gnuwilliam
gnuwilliam / tables-colored-cells.html
Created August 11, 2013 22:11
gist for sudotrap
<!-- Colored cells -->
<table class="table">
<thead>
<tr>
<th>#</th>
<th>Column heading</th>
<th>Column heading</th>
<th>Column heading</th>
</tr>
</thead>