- convert the signature image to PDF file
convert firma.png firma.pdf
# frozen_string_literal: true | |
# Use this setup block to configure all options available in SimpleForm. | |
SimpleForm.setup do |config| | |
# Default class for buttons | |
config.button_class = "button" | |
# Define the default class of the input wrapper of the boolean input. | |
config.boolean_label_class = "checkbox" |
I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)
Website:
http://prediction.io
Install Guide:
http://docs.prediction.io/installation/install-predictionio-on-linux.html
require 'stringio' | |
class RedisSubscribe < EM::Connection | |
def self.connect(host, port, pass = '') | |
Rails.logger.debug host | |
Rails.logger.debug port | |
client = EM.connect host, port, self | |
client.auth pass if pass.present? |
upstream backends { | |
ip_hash; | |
server 0.0.0.0:80; | |
server 0.0.0.0:80; | |
} | |
server { | |
server_name app.falconsocial.com; |
$(document).on "page:change", -> | |
window.prevPageYOffset = window.pageYOffset | |
window.prevPageXOffset = window.pageXOffset | |
$(document).on "page:load", -> | |
if $(".fix-scroll").length > 0 | |
$('.fix-scroll').hide().show() # force re-render -- having an issue with that on Chrome/OSX | |
window.scrollTo window.prevPageXOffset, window.prevPageYOffset |
var fs = require('fs'); | |
//this is the path that QTNetwork classes uses for caching files for it's http client | |
//the path should be the one that has 16 folders labeled 0,1,2,3,...,F | |
exports.cachePath = '/path/to/phantomjs/cache/data/folder'; | |
//this is the extension used for files in the cache path | |
exports.cacheExtension = "d"; | |
//the resources that are to be saved |