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

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({
Devise.setup do |config|
# The secret key used by Devise. Devise uses this key to generate
# random tokens. Changing this key will render invalid all existing
# confirmation, reset password and unlock tokens in the database.
# config.secret_key = '742cdc01b4108ab9bd9389fe941ac993241c9d02c37add6e9d3e37a853f045eeb51227ff669bbbff77001850714e6d681c0f4d7e25a9acadc9c104bff4c5ffec'
config.secret_key = '06aea70e1d7f803dad72170c5c48b29acea8499c9af6d4c3dcfee0de8777961f8ccef2d99be804e06f5ba10ef90e998f0069c7c36ed6fdd3522042ce59ea48a2'
# ==> Mailer Configuration
# Configure the e-mail address which will be shown in Devise::Mailer,
# note that it will be overwritten if you use your own mailer class