The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
| // | |
| // Currency Middleware | |
| // ----------------------------------------------------------------------------- | |
| app.use((req, res, next) => { | |
| const cookie = { | |
| name: "currency", | |
| options: { | |
| path: "/", | |
| maxAge: 3650 * 24 * 3600 * 1000, // 10 years in miliseconds | |
| }, |
| // PHP | |
| $destinationPath = 'uploads/png/'; | |
| $filename = uniqid().'.png'; | |
| $svg = Input::get('canvas'); | |
| $path = $destinationPath.$filename; | |
| $im = new Imagick(); | |
| $im->setBackgroundColor(new ImagickPixel('transparent')); | |
| $im->readImageBlob($svg); // erro: "no decode delegate for this image format `' @ error/blob.c/BlobToImage/364" | |
| $im->setImageFormat("png32"); |
| partilhaPorEmail: function(e) { | |
| e.preventDefault(); | |
| e.stopPropagation(); | |
| if(this.model) { | |
| var model = this.model.toJSON(); | |
| page = App.CurrentView.split('/')[0]; | |
| switch(page) { | |
| case 'ferias': | |
| case 'escapadinhas': | |
| var body = _.first(_.last(model.detalhes)).coditions |
| /** | |
| * This is what you need to add to your applicationDidFinishLaunching | |
| */ | |
| - (void)applicationDidFinishLaunching:(UIApplication *)application | |
| { | |
| // Add registration for remote notifications | |
| [[UIApplication sharedApplication] | |
| registerForRemoteNotificationTypes:(UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound)]; | |
| // Clear application badge when app launches |
| // Filename: ignite.js | |
| define( | |
| [ | |
| 'jquery', | |
| 'underscore', | |
| 'backbone', | |
| 'collections/voos', | |
| 'collections/hoteis', | |
| 'collections/ferias', |
| escapadinhasPagamento: function(id) { | |
| var self = this; | |
| var model; | |
| this.before(function() { | |
| App.Views.Home.hide(); | |
| App.Views.Start.holdBackground(); | |
| if(localStorage) { | |
| detalhe = localStorage.getItem('escapadinhasLastDetalhe'); | |
| if(detalhe) { |
| getLast: function() { | |
| /* clone = this.clone().toJSON(); | |
| this.reset(clone, function(col, opt) { | |
| console.log(col, opt) | |
| });*/ | |
| this.trigger('ola', this); | |
| }, |
| initialize: function() { | |
| var self = this; | |
| this.$el.empty(); | |
| this.item = new Item({collection:this.collection}); | |
| page = App.CurrentView.split('/')[0]; | |
| if(page == 'voos') { | |
| this.$el.addClass('flight-items'); | |
| } |
Atualizado em: 11/07/2012
Entre nós [nome da empresa] e você [nome do cliente]
Nós faremos o melhor para satisfazer suas necessidades e atender suas expectativas, mas é importante registrar tudo por escrito para que todos conheçam suas responsabilidades (quem faz o quê) e saibam o que acontece quando algo dá errado. Neste contrato você não encontrará termos jurídicos complicados ou textos longos e incompreensíveis. Nós não temos interesse em fazê-lo assinar algo que poderá se arrepender depois. O que nós queremos é o melhor para os dois lados, agora e no futuro.