Upgrade to Pro — share decks privately, control downloads, hide ads and more …

JS Meetup Chișinău #1

Ivan Zarea
October 01, 2015

JS Meetup Chișinău #1

Ivan Zarea

October 01, 2015
Tweet

More Decks by Ivan Zarea

Other Decks in Programming

Transcript

  1. Not easy to maintain //-- // This file is part

    of Sonic Pi: http://sonic-pi.net // Full project source: https://github.com/samaaron/sonic-pi // License: https://github.com/samaaron/sonic-pi/blob/master/LICENSE.md // // Copyright 2013, 2014, 2015 by Sam Aaron (http://sam.aaron.name). // All rights reserved. // // Permission is granted for use, copying, modification, and // distribution of modified versions of this work as long as this // notice is included. //++ // Standard stuff #include <iostream> #include <math.h> #include <sstream> #include <fstream> // Qt stuff #include <QDate> #include <QDesktopServices> #include <QDir> #include <QAction> #include <QApplication> #include <QCloseEvent> #include <QFile> #include <QFileInfo> #include <QFileDialog> #include <QIcon> #include <QMenu> #include <QMenuBar> #include <QMessageBox> #include <QDockWidget> #include <QPoint> #include <QSettings> #include <QSize> #include <QStatusBar> #include <QTextEdit>
  2. In search for a solution • Extend existing editors
 (textmate,

    limetext, emacs) • Switch from QScintilla to something else
 (what exactly?) • Do something new
  3. Code // Global App skeleton for backbone var App =

    new Backbone.Marionette.Application(); _.extend(App, { Controller: {}, View: {}, Model: {}, Page: {}, Scrapers: {}, Providers: {}, Localization: {} });
  4. Styling .loading position: absolute background-color: $BgColor1 -webkit-user-select: none width 100%

    height 100% opacity 1 overflow hidden margin auto left 0 right 0 padding-top $TitleHeight -webkit-backface-visibility hidden
  5. Layout <ul class="nav nav-hor left"> <li class=“source showMovies” title="YTS"> <%=

    i18n.__("Movies") %> </li> <li class="source showShows” title=“TVApi"> <%= i18n.__("TV Series") %> </li> <li class="source showAnime” title=“Haruhichan"> <%= i18n.__("Anime") %> </li> </ul>
  6. :( on a raspberry Pi it maxes out the cpu

    freezes the app basically and you get
 an application not responding dialog
  7. Examples • Chat app • Movie player • Mac +

    Windows app that searches for GIFs