Skip to content

Instantly share code, notes, and snippets.

View russiann's full-sized avatar
🎧
Focusing

Russian Rebouças russiann

🎧
Focusing
  • Digibee
  • Fortaleza, CE
View GitHub Profile
@russiann
russiann / patient.controler.js
Created March 20, 2016 16:10
Controller de Pacientes
'use strict';
var _ = require('lodash');
var Patient = require('./patient.model');
var jwt = require('../../auth/jwt');
var Hash = require('hashids');
var hashids = new Hash('666');
function handleError (res, err) {
return res.status(500).send(err);
@russiann
russiann / config.cson
Created February 19, 2016 20:50
Atom Plugins
"*":
Zen: {}
"atom-spotify2":
showEqualizer: true
showPlayIconAsText: true
"atom-terminal": {}
"atom-ternjs": {}
"browser-plus": {}
core:
disabledPackages: [
@russiann
russiann / framework7-angular.js
Created February 4, 2016 14:12
Framework7 Angular
(function() {
'use strict';
angular
.module('framework7', [])
.provider('$Framework7', Framework7)
.service('$AppBootloader', AppBootloader)
.factory('$View', View)
.factory('$Components', Components)
.factory('$Router', Router)
@russiann
russiann / examplo.jade
Created January 22, 2016 22:33
Filtered
div(ng:repeat="item in vm.filtered = (vm.items | filter:whatever)")
h1 Filtered Result
p {{vm.filtered}}
@russiann
russiann / alias.html
Created January 22, 2016 22:28
alias ng repeat
<div ng-repeat="model in collection | orderBy: 'id' as filtered_result track by model.id">
{{model.name}}
</div>
@russiann
russiann / afterRepeat.jade
Created January 22, 2016 22:22
after:repeat
div(ng:repeat="item in vm.items" after:repeat="vm.doSomething()")
<!DOCTYPE html>
<html ng-app="calendar">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<style>
/*
Some stylesheets for this pen, ignore..
*/
var dddGeo = [];
dddGeo[11] = {
latitude: -23.547778,
longitude: -46.635833
}; // | São Paulo | Região Metropolitana de São Paulo.
dddGeo[12] = {
latitude: -23.203416,
longitude: -45.890627
}; // | São Paulo | São José dos Campos e Região.
@russiann
russiann / gulpfile.js
Created May 19, 2015 00:46
Simple Server with BrowserSync
var gulp = require('gulp'),
jade = require('gulp-jade'),
browserSync = require('browser-sync').create(),
reload = browserSync.reload;
gulp.task('jade', function() {
gulp.src('./index.jade')
.pipe(jade())
.pipe(gulp.dest('./'))
.pipe(reload({stream:true}));
@russiann
russiann / README.md
Last active August 29, 2015 14:21 — forked from zenorocha/README.md

Project Name

TODO: Write a project description

Installation

TODO: Describe the installation process

Usage