Skip to content

Instantly share code, notes, and snippets.

View stefanoverna's full-sized avatar

Stefano Verna stefanoverna

View GitHub Profile
require 'rest-client'
require 'logger'
require 'json'
require 'map'
class CrimsonMonitor
include ValueObject
attribute :monitor_id
attribute :email
class @Behaviour
constructor: (@dom, @options = {}) ->
@$dom = $(@dom)
className = @getClassName()
unless @$dom.data(className)
@$dom.data(className, true)
@init()
data: (attr, def=null) ->
@options[attr] || @$dom.data(attr) || def
@stefanoverna
stefanoverna / An-Anonymous-Pen.markdown
Created September 8, 2013 06:02
A Pen by A Non Ymous.
2013-11-26T16:42:35.695984+00:00 app[web.2]: Started GET "/profile/projects/23/project_collaborations" for 95.238.123.1 at 2013-11-26 16:42:35 +0000
2013-11-26T16:42:36.760505+00:00 heroku[router]: at=error code=H13 desc="Connection closed without response" method=GET path=/profile/projects/23/project_collaborations host=www.limoney.it fwd="95.238.123.1" dyno=web.2 connect=1ms service=1070ms status=503 bytes=0
2013-11-26T16:42:36.714994+00:00 app[web.2]: /app/app/commands/change_advisor_collaboration_state_command.rb:43: [BUG] Segmentation fault
2013-11-26T16:42:36.715000+00:00 app[web.2]: ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-linux]
2013-11-26T16:42:36.715002+00:00 app[web.2]:
2013-11-26T16:42:36.715003+00:00 app[web.2]: -- Control frame information -----------------------------------------------
2013-11-26T16:42:36.715963+00:00 app[web.2]: c:0179 p:0013 s:0886 e:000884 METHOD /app/app/commands/change_advisor_collaboration_state_command.rb:43
2013-11-26T16:42:36.715966+00:00 app[web.2]: c:0178 p
@stefanoverna
stefanoverna / NOTE
Last active December 30, 2015 06:09
Problematiche rilevate:
* E' obbligatorio dare i seguenti dati per ogni transazione:
- Email
- Nome
- Cognome
- Paese di nascita
- Paese di residenza
- Data di nascita
@mixin block($name)
@at-root .#{$name}
@content
@mixin element($names...)
$selector: ()
@each $name in $names
$selector: append($selector, unquote('#{&}__#{$name}'), comma)
@at-root #{$selector}
@content
# Business entity
# Business Name
# Email
# FirstName of the legal representative
# LastName of the legal representative
# Birthday of the legal representative
# Nationality of the legal representative
# Country of residence of the legal representative
# Adress of the legal representative
ActiveAdmin.register Post do
index do
column :title
column :published_at
default_actions
end
form do |f|
f.inputs "Dettagli" do
f.input :title
#!/usr/bin/env bash
# Usage: cached-bundle install --deployment
#
# After running `bundle`, caches the `vendor/bundle` directory to S3.
# On the next run, restores the cached directory before running `bundle`.
# When `Gemfile.lock` changes, the cache gets rebuilt.
#
# Requirements:
# - Gemfile.lock
# - REPO_SLUG
module I18n
def self.missing_keys
@missing_keys
end
def self.t(*args, &block)
opts = args.dup.extract_options!
opts[:default] = Array(opts[:default]).delete_if do |d|
d.is_a? String
end