Google Spreadsheet scripts for Coinbase and USD/BTC and USD/other currencies.
If you found this useful, donate XMR!: 44WvZj9zRXqgq3jHpemt8dLt29aDRQqdiK6ivxoCf3e65cdXbzBnHJyc2CdGWeGr36f5MBkqQBb61hus34nUVae4ND2PKx4
Made with love from Chile
unless File.exist?('Gemfile') | |
File.write('Gemfile', <<-GEMFILE) | |
source 'https://rubygems.org' | |
gem 'rails', github: 'rails/rails' | |
gem 'arel', github: 'rails/arel' | |
gem 'sqlite3' | |
GEMFILE | |
system 'bundle install' | |
end |
class Fixnum | |
def to_rut | |
digits = self.to_s.to_rut | |
end | |
end | |
class String | |
def to_rut | |
count = -1 | |
sum = self.each_char.to_a.map(&:to_i).reverse. |
#Postgresql 9.2.1 Compilation instructions for Ubuntu 12.04 | |
#This will install Postgresql 9.2.1 into /usr/local/postgresql-9.2.1 | |
#This assumes that you have sudo provileges on the machine installing postgresql | |
#It should work by copying and pasting into the shell, I haven't tested it, I just summarized | |
#what I just did and it worked | |
#Get requirements | |
sudo apt-get install build-essential libreadline6-dev zlib1g-dev |
by Jonathan Rochkind, http://bibwild.wordpress.com
Capistrano automates pushing out a new version of your application to a deployment location.
I've been writing and deploying Rails apps for a while, but I avoided using Capistrano until recently. I've got a pretty simple one-host deployment, and even though everyone said Capistrano was great, every time I tried to get started I just got snowed under not being able to figure out exactly what I wanted to do, and figured I wasn't having that much trouble doing it "manually".
(function( $ ){ | |
$.fn.mstch_tmpl = function(template, object) { | |
var that = this; | |
var template_string; | |
//Check if template is a string or a jQuert object | |
if (typeof(template)=='string' && isNaN(template)) { | |
template_string = template; | |
} else if (template instanceof jQuery){ | |
template_string = template.html(); |
//Sergio Campamá 11-3-2012 | |
//[email protected] | |
//Numerical functions taken from the book 'Recipes in C' | |
#include <math.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <time.h> | |
#include <string.h> |
require 'socket' | |
server = TCPServer.open(3010) # Socket to listen on port | |
loop do # Servers run forever | |
Thread.start(server.accept) do |client| | |
puts "client connected" | |
#do stuff | |
end | |
end |
<!-- Mobile meta & links --> | |
<!-- Reference | |
Custom Icon and Image Creation Guidelines: | |
http://developer.apple.com/library/safari/#documentation/UserExperience/Conceptual/MobileHIG/IconsImages/IconsImages.html | |
Configuring Web Applications: | |
http://developer.apple.com/library/safari/#documentation/appleapplications/reference/safariwebcontent/configuringwebapplications/configuringwebapplications.html |