Skip to content

Instantly share code, notes, and snippets.

View RGkevin's full-sized avatar
🎯
Focusing

Kevin López RGkevin

🎯
Focusing
View GitHub Profile

Using Yeoman and Jade

Getting started

  • Make sure you have yo installed: npm install -g yo
  • Run: yo webapp
  • Install grunt-contrib-jade: npm install grunt-contrib-jade --save-dev

Customization

@RGkevin
RGkevin / wl-project.js
Last active August 29, 2015 13:56
WL Project definition
'use strict';
var routes = {
home: '/',
login: '/login',
logout: '/logout',
search: '/search',
vendor: {
all : '/vendor', // list
one: '/vendor/{id}', // profile
@RGkevin
RGkevin / auth.js
Last active August 29, 2015 13:57
Auth service
'use strict';
angular.module('whiteLabelApp')
.service('Auth', ['Restangular', function (Restangular) {
// AngularJS will instantiate a singleton by calling "new" on this function
var self = this;
self.login = function(data, success, fail, end) {
return Restangular
.all('auth')
@RGkevin
RGkevin / app.js
Created March 6, 2014 03:46
app config
'use strict';
angular.module('whiteLabelApp', [
'ngCookies',
'ngResource',
'ngSanitize',
'ngRoute',
'ui.bootstrap',
'pascalprecht.translate',
'restangular'
@RGkevin
RGkevin / gruntfile.js
Created March 27, 2014 22:27
livereload
// Generated on 2014-02-26 using generator-angular 0.6.0
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
@RGkevin
RGkevin / test-link.js
Created April 10, 2014 23:12
test-links.js
@RGkevin
RGkevin / auth.js
Created February 10, 2015 22:12
auth service
'use strict';
angular.module('kipoApp')
.service('Auth', [
'Restangular',
'$cookieStore',
'ReportsSession',
function (
Restangular,
$cookieStore,
@RGkevin
RGkevin / ng-elements-picker-with-bootstrap
Created February 24, 2015 23:36
ng elements picker with bootstrap
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/kevinlopez\/Development\/Kipo_Business_Web_Application\/app\/lib\/sass-bootstrap\/lib\/_normalize\.scss}line{font-family:\0000322}}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
@RGkevin
RGkevin / ng-elements-picker-single
Created February 24, 2015 23:38
ng-elements-picker-single
.ng-elements-picker .title-section {
border: 1px solid #ededed;
border-top-width: 0;
background-color: white;
text-align: left;
padding: 10px;
font-weight: bold;
color: #61cfb9;
}
@RGkevin
RGkevin / fixed-temo
Created May 8, 2015 20:49
Position fixed inside fixed
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Foo</title>
<style>
.wrapper {
position: fixed;
transform: translate(-50%, -50%);