Techsylvania - Hackathons on Rails

Techsylvania - Hackathons on Rails

E0ee803f10db4d5fb85f8288a421850b?s=128

Cristiano Betta

June 08, 2015
Tweet

Transcript

  1. 17.
  2. 18.
  3. 52.

    @braintree_dev @cbetta How I failed to let go of the

    2nd love of my life Cristiano Betta Developer Advocate
  4. 54.
  5. 58.

    @braintree_dev @cbetta Braintree fs.readdir(source, function(err, files) { if (err) {

    console.log('Error finding files: ' + err) } else { } })
  6. 59.

    @braintree_dev @cbetta Braintree fs.readdir(source, function(err, files) { if (err) {

    console.log('Error finding files: ' + err) } else { files.forEach(function(filename, fileIndex) { console.log(filename) gm(source + filename).size(function(err, values) { } }) }) } })
  7. 60.

    @braintree_dev @cbetta Braintree fs.readdir(source, function(err, files) { if (err) {

    console.log('Error finding files: ' + err) } else { files.forEach(function(filename, fileIndex) { console.log(filename) gm(source + filename).size(function(err, values) { if (err) { console.log('Error identifying file size: ' + err) } else { console.log(filename + ' : ' + values) aspect = (values.width / values.height) widths.forEach(function(width, widthIndex) { height = Math.round(width / aspect) console.log('resizing ' + filename + 'to ' + height + 'x' + height) this.resize(width, height).write(destination + 'w' + width + '_' + filename, function(err) { if (err) console.log('Error writing file: ' + err) }) }.bind(this)) } }) }) } })
  8. 67.
  9. 72.
  10. 77.
  11. 79.
  12. 80.
  13. 81.
  14. 82.
  15. 83.
  16. 84.
  17. 85.
  18. 86.
  19. 129.
  20. 131.

    ç

  21. 137.

    @braintree_dev @cbetta Braintree SparkCore, wemo, ifttt, Sendgrid, Python, Pusher, Twilio,

    AWS, NodeJS, Bootstrap, Backbone.js, SIP, handlebars, Braintree, webrtc, Swift, Geofencing
  22. 142.