UPDATE a fork of this gist has been used as a starting point for a community-maintained "awesome" list: machine-learning-with-ruby Please look here for the most up-to-date info!
- liblinear-ruby: Ruby interface to LIBLINEAR using SWIG
| DS.RESTSerializer.extend({ | |
| extractArray: function(store, type, payload) { | |
| var inflector = Ember.Inflector.inflector, | |
| data = payload || [], | |
| modifiedPayload = {}; | |
| modifiedPayload[inflector.pluralize(type.typeKey)] = data; | |
| return this._super(store, type, modifiedPayload); | |
| } |
| $ brew install geos proj gdal libxml2 json-c | |
| $ wget http://download.osgeo.org/postgis/source/postgis-2.1.4.tar.gz | |
| $ tar xvfz postgis-2.1.4.tar.gz | |
| $ cd postgis-2.1.4 | |
| $ ./configure --with-projdir=path-to-proj --with-jsondir=path-to-json-c (example: ./configure --with-projdir=/opt/boxen/homebrew/Cellar/proj/4.8.0 --with-jsondir=/opt/boxen/homebrew/Cellar/json-c/0.11) | |
| $ make | |
| $ sudo make install | |
| $ cd path-to-your-postgres-previously-installed/contrib/postgis-2-1 (example: cd /opt/boxen/homebrew/Cellar/postgresql/9.3.2-boxen/share/postgresql/contrib/postgis-2.1) | |
| $ createdb template_postgis | |
| $ createlang plpgsql template_postgis |
| <!doctype HTML> | |
| <meta charset = 'utf-8'> | |
| <html> | |
| <head> | |
| <script src='http://d3js.org/d3.v3.min.js' type='text/javascript'></script> | |
| <script src='http://dimplejs.org/dist/dimple.v1.1.1.min.js' type='text/javascript'></script> | |
| <style> | |
| .rChart { |
| # config/routes.rb | |
| resources :documents do | |
| scope module: 'documents' do | |
| resources :versions do | |
| post :restore, on: :member | |
| end | |
| resource :lock | |
| end | |
| end |
Command Line
pry -r ./config/app_init_file.rb - load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb - load your rails into a pry sessionDebugger
| diff --git a/Gruntfile.js b/Gruntfile.js | |
| index 53fe849..80ce14a 100644 | |
| --- a/Gruntfile.js | |
| +++ b/Gruntfile.js | |
| @@ -56,6 +56,16 @@ module.exports = function (grunt) { | |
| max_jshint_notifications: 5 | |
| } | |
| }, | |
| + uncss: { | |
| + gettingStarted: { |
| App.InputChosenComponent = Ember.Component.extend({ | |
| init: function () { | |
| this._super(); | |
| }, | |
| // settings | |
| labelClass: 'col-sm-2', | |
| label: 'Date', | |
| inputContainerClass: 'col-sm-2', | |
| inputClass: '', |