Skip to content

Instantly share code, notes, and snippets.

default: &default
adapter: postgresql
encoding: unicode
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
development:
<<: *default
database: <your db name>
test:
/*
* 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;
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) {
@harchs
harchs / Install ruby on Ubuntu
Last active August 29, 2015 13:56
Install ROR on Ubuntu
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