Mostrando entradas con la etiqueta code. Mostrar todas las entradas
Mostrando entradas con la etiqueta code. Mostrar todas las entradas

sábado, 21 de diciembre de 2013

#HTML5DevConf oct/2013


Last October, the #HTML5DevConf took place in Moscone Center, SF. Below you can find a bunch of slides belongs to the different conference's talks. As a mobile web developer (you can realize it because the header of this post is  horribly scaled), the talks that I found more interesting are the ones related to continuous integration using Grunt JS. 

Enjoy it!!
@sdemians

Keynote Day One
http://lazure2.wordpress.com/2013/10/05/intels-new-era-of-integrated-computing-look-inside-looking-ahead-by-renee-james-president/

Keynote Day Two
adobe.github.com

Large Scale JavaScript Application Architecture
@danpatricklynch
http://www.slideshare.net/pyramation/built-tolast

Image Layout Algorithms
@vjeux

JavaScript Insights
@arobson y @ariyahidayat

Webapp to desktop-app with node-webkit
Dale Schouten
@OldGeeksGuide

Mastering the build process
@johnnyhalife

Continuous Delivery 
@jsoverson

Form Validation
@tjvantoll

New Rules For JS
@getify

Leveling Up in Angularjs
@aliciatweet
http://alicial.github.io/leveling-up-angular-talk/#/
http://alicial.github.io/leveling-up-angular-talk/examples/directive.html

Finally! Layout in CSS
@alanstearns
http://adobe-webplatform.github.io/html5devconf-2013/FinallyCSSLayoutTalk/#/
http://html.adobe.com/webplatform/enable/

Future of AngularJS
Miško Hevery
https://docs.google.com/presentation/d/1h3JCS5lwntUBddMv47lmpYQs3JUYy2LsUSfcy6YnlDg/edit#slide=id.p

Web Components
@rob_dodson
http://robdodson.me/webcomponents-revolution/#/

JS in iOS
@LostOracle

Building collaborative HTML5 apps
@jtparreira

Tips & Tricks for Tablet Optimization
@cyberneticlove

Designing in CSS & Programming CSS
@tpryan

High performance HTML5 apps
@demianborba

Top 10 Performance Techniques for PhoneGap Applications

Unmasking the GPU Using Hardware Acceleration Correctly with CSS@divya

Streaming SVG animations on the web
@cconcolato

Web based, mobile enterprise applications
@manishgarg

Firefox OS, the Open Web & WebAPIs
@robertnyman

From Developer To Entrepreneur
@tbiz

Optimizing Memory for Smooth Infinite Scrolling

Designing Coordinated Visualizations
@milr0c
http://bl.ocks.org/milroc/raw/7032589/#0

Web + Wow

HTML5 Mobile Apps don't have to suck
@DaveArel

Application building with D3
@jfire

W3Cs web content & creative constraints
@darcy

Intro to PhoneGap and PhoneGap Build
@ChrisGriffith

Browser Dance Party
@jsantell

Adventures in d3.js

Backbone.rocks
Jeremy Lu
https://speakerdeck.com/coodoo/backbone-rocks-large-scale-single-page-app-done-right

Bootstrap vs Foundation
@jen4web
http://www.slideshare.net/mobile/jen4web/comparing-bootstrap-and-foundation-version-2

MongoDB
@conradIrwin
https://speakerdeck.com/conradirwin/mongodb-confessions-of-a-postgresql-lover

Distributed Application Architecture
http://ryanjarvinen.com/presentations/federated_html5/#/

Secure RESTful API Automation With JavaScript
@jcleblanc
http://www.slideshare.net/jcleblanc/secure-restful-api-automation-with-javascript?utm_source=buffer&utm_campaign=Buffer&utm_content=buffer52672&utm_medium=twitter

Embedding complex SVGs
@lakenen
http://camupod.com/html5devconf2013/#/

Developing web graphics with WebGL
@auradeluxe
http://www.slideshare.net/auradeluxe/developing-web-graphics-with-web-gl

Augmented Reality Mobile Apps in JavaScript:
@georgemck
http://www.georgemckinney.com/armobile/index.html#/

viernes, 8 de noviembre de 2013

Deploying an airbnb rendr app in Heroku



Welcome to the second post about Rendr. In the following steps we are gonna see how to setup a Rendr app to upload it to Heroku. So less talking and more doing:

  1. In the root directory we have to create a file called Procfile. Inside this file we have to write the following line:
  2. 1:  web: node index.js  
  3. Then we modify Gruntfile.js, also in the root directory. Inside this file, at the bottom, we have to add the highlighted line:
  4. 0:    ... 
    1:   // Default task(s).  
    2:    grunt.registerTask('default', ['compile']);  
    3:    grunt.registerTask('heroku:', ['compile']);  
    4:   };  
    
  5.  Due to the fact that we can't compile assets, templates and styles in the Heroku server, we have to compile those files in our workstation (running sudo grunt ) and then add them to the Heroku commit.
  6. Upload all the files to Heroku and wait the start-up process.
  7. Listo ;)
PS: If the dyno didn't start run : heroku  ps:scale web=1

I hope you find it useful.
@sdemians

miércoles, 6 de noviembre de 2013

How to integrate a third party library with airbnb rendr library




Hi all, today we are gonna integrate a third party library (we are going to use swipe as an example) with airbnb's rendr.
  1. Download the last version of swipe.js from https://github.com/bradbirdsall/Swipe
  2. Locate the library inside /app/lib
  3. Inside the swipe.js file you have to replace the declaration line (line 8) adding "module.exports":
   Original file:
1:  /*  
2:   * Swipe 2.0  
3:   *  
4:   * Brad Birdsall  
5:   * Copyright 2013, MIT License  
6:   *  
7:  */  
8:  function Swipe(container, options) {  
9:   "use strict";  

With our small modification:
1:  /*  
2:   * Swipe 2.0  
3:   *  
4:   * Brad Birdsall  
5:   * Copyright 2013, MIT License  
6:   *  
7:  */  
8:  module.exports = function Swipe(container, options) {  
9:   "use strict";  

4. In the view file that you want to use swipe, you have to import it using the require function:

1:  ...  
2:     if (typeof window != 'undefined') {  
3:      var Swipe = require('../../lib/swipe');   
4:     };  
5:  ...  

5. Drop the swipe.css file inside assets/stylesheets/vendor folder. In addition modify assets/stylesheets/index.styl in order to import swipe.css stylesheet.

6. Listo ;)


@sdemians
thanks to: @spikebrehm and @ignavaldi