Skip to content

Instantly share code, notes, and snippets.

View jonatasfreitasv's full-sized avatar
🎯
Focusing

Jonatas Vargas jonatasfreitasv

🎯
Focusing
  • Brasil
View GitHub Profile
@jonatasfreitasv
jonatasfreitasv / readme.md
Last active September 4, 2015 00:02 — forked from coolaj86/how-to-publish-to-npm.md
How to publish packages to NPM

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"

npm adduser

@jonatasfreitasv
jonatasfreitasv / gource.sh
Last active January 28, 2021 06:39 — forked from XueshiQiao/gource.sh
Generate a MP4 Video for your Git project commits using Gource!
# 1.install gource using HomeBrew
$ brew install gource
# 2.install avconv
git clone git://git.libav.org/libav.git
cd libav
# it will take 3-5 minutes to complie, be patient.
./configure --disable-yasm
make && make install
{
"bitwise": true,
"camelcase": true,
"curly": true,
"eqeqeq": true,
"es3": false,
"forin": true,
"freeze": true,
"immed": true,
"indent": 2,
/**
* Login controller
*
*/
(function() {
'use strict';
angular
.module('controlaCarApp.login', [])
(function() {
'use strict';
angular
.module('controlaCarApp.route', [])
.config(['$stateProvider', '$urlRouterProvider', config]);
function config($stateProvider, $urlRouterProvider) {
$urlRouterProvider.otherwise('/');
{
"bitwise": true,
"camelcase": true,
"curly": true,
"eqeqeq": true,
"es3": false,
"forin": true,
"freeze": true,
"immed": true,
"indent": 2,
/**
* States dropdown directive
*
*/
app.directive('stateDropdown', function(){
return {
controller: function($scope, stateService) {
stateService.list()
var app = angular.module('controlacar', ['ngRoute'], ['shared']);
app.config(['$routeProvider', '$locationProvider', function($routeProvider,$locationProvider) {
$locationProvider.hashPrefix('!');
$routeProvider
.when('/', {
templateUrl: 'components/login/form.html'
})
var app = angular.module('controlacar', ['ngRoute'], ['shared']);
app.config(['$routeProvider', '$locationProvider', function($routeProvider,$locationProvider) {
$locationProvider.hashPrefix('!');
$routeProvider
.when('/', {
templateUrl: 'components/login/form.html'
})
<?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(