This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hello, | |
As mentioned on Twitter we're looking to give http://mustache.github.io a brand new coat of paint. There are some ideas but nothing too concrete, so everything is up to discussion. | |
First of all, here are the current websites for some related projects: | |
- http://handlebarsjs.com/ | |
- http://twitter.github.io/hogan.js/ | |
- http://icanhazjs.com/ | |
- http://pvande.net/Milk/playground.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Route.extend({ | |
actions: { | |
me(...params) { | |
alert(params); | |
} | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Route.extend({ | |
actions: { | |
saveClient: function(model) { | |
var model = model.save().then(()=> { | |
this.transitionTo('clients'); | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
total: 20.0, | |
current: 4.5, | |
log: [], | |
progress: Ember.computed('total', 'current', { | |
get() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Declaração de variáveis | |
var_long:: .long 12315 | |
var_word:: .word 342 | |
var_byte:: .byte 4 | |
var_string:: .byte "afbad",0 | |
.space.b <espaço> | |
var_vector:: .<long/word/byte> 2646,24,62476,246 | |
.space.<l/w/b> <espaço> | |
var_matriz:: .<long/word/byte> 23425,245624525,245,2 | |
.space.<l/w/b> <espaço> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; ESTÁ AINDA UM BOCADO INCOMPLETO, nomeadamente faltam preencher rotinas xD | |
.file "exame_1.s" | |
.include "lib/auxil.s" | |
.include "lib/Biblioteca1.s" | |
.org 0x1000 | |
br inicio | |
difHora:: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function runFlex { | |
echo $ficheiro | |
flex="$ficheiro.c" | |
gcc="$ficheiro.out" | |
flex -o $flex $ficheiro | |
gcc -o $gcc $flex -lfl | |
./$gcc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <unistd.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#include <sys/ipc.h> | |
#include <sys/shm.h> | |
#include "semaforos.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'sinatra' | |
require 'haml' | |
require 'sass' | |
set :port, 8080 | |
#set :views, File.expand_path(File.dirname(__FILE__) + '/') | |
set :public, File.dirname(__FILE__) | |
get '/' do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'savon' | |
require 'sinatra' | |
#Savon::SOAP.version = 2 | |
servico = "http://dot.dei.isep.ipp.pt/060516/dir3/srvARQSI45.asmx?wsdl" | |
get '/' do | |
client = Savon::Client.new servico |