This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| default: &default | |
| adapter: postgresql | |
| encoding: unicode | |
| pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> | |
| development: | |
| <<: *default | |
| database: <your db name> | |
| test: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Binary Ajax 0.1.10 | |
| * Copyright (c) 2008 Jacob Seidelin, [email protected], http://blog.nihilogic.dk/ | |
| * Licensed under the MPL License [http://www.nihilogic.dk/licenses/mpl-license.txt] | |
| */ | |
| var BinaryFile = function(strData, iDataOffset, iDataLength) { | |
| var data = strData; | |
| var dataOffset = iDataOffset || 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| window.$http = function (url){ | |
| // A small example of object | |
| var core = { | |
| // Method that performs the ajax request | |
| ajax : function (method, url, args) { | |
| // Creating a promise | |
| var promise = new Promise( function (resolve, reject) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. First we have to make sure that we have some dependencies installed, so run the following command to take care of them. | |
| sudo apt-get install build-essential git-core | |
| 2. Now we need to install RVM (Ruby Version Manager) using curl. If you do not have curl installed yet on your system, you can issue the following command | |
| sudo apt-get install curl | |
| 3. To start the RVM installation run the following command | |