Skip to content

Instantly share code, notes, and snippets.

View ralfting's full-sized avatar
🏠
Working from home

Ralph Effting ralfting

🏠
Working from home
  • Finbits
  • Palhoça - SC
View GitHub Profile
(function() {
'use_strict';
angular.module('AllPetApp.Users.Services')
.factory('AuthReponseInterceptor', AuthReponseInterceptor);
AuthReponseInterceptor.$inject = ['$q','$location', '$injector'];
function AuthReponseInterceptor($q, $location, $injector){
return {
response: function(response){

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
<!doctype html>
<html ng-app>
<head>
<title>My Angular App</title>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
</head>
<body>
<!-- Code here -->
</body>
</html>
@ralfting
ralfting / gist:c427e277a50c7a4d570f
Last active August 29, 2015 14:17
AngularJS - Form
<!doctype html>
<html>
<head>
<title>My Angular App</title>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet">
<style type="text/css">
body{padding-top:25px;}
</style>
</head>
<body>
@ralfting
ralfting / gist:d767dc4feba8fff4a967
Last active August 29, 2015 14:17
index ng-model
<!doctype html>
<!-- inserido ng-app -->
<html ng-app>
<head>
<title>My Angular App</title>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet">
<style type="text/css">
body{padding-top:25px;}
.name{color:#F00;text-decoration:underline}
</style>
<!doctype html>
<!-- inserido ng-app -->
<html ng-app>
<head>
<title>My Angular App</title>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet">
<style type="text/css">
body{padding-top:25px;}
.name{color:#F00;text-decoration:underline}
</style>
<input type="text" class="form-control" ng-model="name" />
<!-- [ ... ] -->
<form class="form-horizontal">
<div class="form-group">
<label class="col-sm-2 control-label">Nome</label>
<div class="col-sm-10">
<!-- inserido ng-model -->
<input type="text" class="form-control" placeholder="Digite um nome" ng-model="name">
</div>
</div>
</form>
/*
* Author: Ralph Effting <ralfting@gmail.com>
* Description: When changing dollar value, update the value
* Data: 24/03/2015
*
* */
(function(){
$.ajax({