Christiano Milfont cmilfont

View gist:6832004
1 2 3 4 5 6 7 8 9 10
08:30:00 08:55:00 Credenciamento
09:00:00 09:25:00 Rafael Sales - Creating real-time apps with Meteor http://about.me/rafasales
09:30:00 09:55:00 Filipe Costa - Aprenda más práticas com JQuery http://about.me/filipebarcos
10:00:00 10:25:00 Coffee Break
10:30:00 10:55:00 Demetrius Nunes - Por que Angular.js é o novo Ruby on Rails http://www.demetriusnunes.com
11:00:00 11:25:00 Alexandre Magno Teles Zimerer - Mobile First e Javascript - melhorando a experiência de uma webapp http://www.alexandremagno.net
11:30:00 11:55:00 Luiz Tiago Oliveira - Something about the future of JS http://github.com/luiztiago
12:00:00 14:00:00 Almoço [externo]
14:00:00 14:25:00 Mozart Diniz
14:30:00 14:55:00 Lukas Alexandre - Construindo uma biblioteca de testes https://github.com/lukelex
View tire.rb
1 2 3 4 5 6 7 8 9 10
Tire.index('techniques') do
delete
create \
settings: {
index: {
:analysis => {
:analyzer=> {
:index_analyzer=> {
:tokenizer=> "standard",
:filter=> ["standard", "my_delimiter", "lowercase", "stop", "asciifolding", "porter_stem"]
View gist:6818154
1 2 3 4 5 6 7 8 9 10
# Index
---------------------------------------------------------------------
 
curl -XPUT http://localhost:9200/pictures/ -d '
{
"settings": {
"analysis": {
"analyzer": {
"index_analyzer": {
"tokenizer": "standard",
View gist:6352191
1 2 3
sencha -sdk extjs generate theme --extend ext-theme-neptune wrestling
//alterar o arquivo .sencha/package/sencha.cfg na raiz do seu tema
sencha package build
View gist:6261456
1 2 3 4 5 6 7 8 9 10
//install heroku toolbelt https://toolbelt.heroku.com/
heroku login
 
heroku create
//or
git remote add heroku git@heroku.com:wrestling.git
 
//add "gem 'rails_12factor', group: :production" to Gemfile
 
git push heroku master
View Chamado.js
1 2 3 4 5 6 7 8 9 10
Ext.define('Atlas.model.Chamado', {
extend: 'Ext.data.Model',
fields: [
'id',
'titulo',
{ name: "status", persist: false, mapping: 'status.nome'},
 
],
belongsTo: [
{model: 'Atlas.model.Contrato', associationKey: 'contrato', getterName: 'contrato'}
View Model.js
1 2 3 4 5 6 7 8 9 10
Ext.override(Ext.data.Model, {
constructor: function() {
this.callParent(arguments);
this.mappingFields();
this.readAssociated();
},
mappingFields: function() {
this.fields.each(function(field){
View model.js
1 2 3 4 5 6 7 8 9 10
Ext.override(Ext.data.Model, {
constructor: function() {
 
this.callParent(arguments);
 
this.fields.each(function(field){
if( field.mapping && this.get( field.name ) == "") {
this.set( field.name,
View gist:6096119
1 2 3 4 5 6 7 8 9 10
//clicar no botao gerar um form
// mapear o submit do form
// enviar o json para o servidor
// exibir uma mensagem de volta
 
(function($){
 
var tpl = Mustache.compile("{{name}} created at {{created_at}}");
 
$.fn.extend({
View engine.js
1 2 3 4 5 6 7 8 9 10
function Eljs(template){
 
var chaves = {};
 
var pattern = /\#\{([^}]+)\}/g;
var pattern_compiled = /\$\{([^}]+)\}/g;
var compiled = "";
 
(function(engine){
Something went wrong with that request. Please try again.