This file contains 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
strlen('stringa'); | |
ini_set('display_errors', 'On'); | |
filter_var('stringa',FILTER_VALIDATE_EMAIL); |
This file contains 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
######## | |
class ActivationCode | |
include ActiveModel::Validations | |
attr_accessor :activation_code | |
validates :activation_code, :presence => true | |
def initialize(activation_code) | |
@activation_code = activation_code |
This file contains 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
document.styleSheets[0].disabled = true |
This file contains 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
/packages/user/Default (OSX).sublime-keymap | |
[ | |
{ | |
"keys": ["shift+ctrl+super+f"], | |
"command": "open_dir", | |
"args": {"dir": "$file_path", "file": "$file_name"} | |
}, | |
{ | |
"keys": ["command+shift+."], |
This file contains 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
//remove annoying hint about semicolon in sublime linter | |
"jshint_options": | |
{ | |
"evil": true, | |
"regexdash": true, | |
"browser": true, | |
"wsh": true, | |
"trailing": true, | |
"sub": true, |
This file contains 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
.ciccione { | |
width: 257px; | |
border-radius: 6px; | |
font-size: 18px; | |
padding: 18px; | |
padding-left: 10px; | |
padding-top: 10px; | |
padding-bottom: 10px; | |
color: #555; | |
border: 1px solid #CCC; |
This file contains 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
.replace { | |
font: 0/0 a; | |
text-shadow: none; | |
color: transparent; | |
} |
This file contains 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
# launch event | |
$('body').trigger 'event_custom' | |
# capture the event | |
$('body').bind 'event_custom', -> | |
alert "event fired!" |
This file contains 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
$.ajax 'http://localhost:3000/risorsa/index', | |
type: 'GET', | |
data: "uniquekey=#{codice_commessa}", | |
dataType: 'json', | |
processData: true, | |
success: (data)-> | |
customer = data.customer | |
for key, value of data.productInstance | |
if value.productName == "SCHEDA_AZIENDA_GIALLO" | |
productReferenceUrl = value.productReference.replace("ITA|","") |
This file contains 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
# Le query ora dialogano non più su utc ma sono impostato sulla time zone Italiana. | |
module Registration | |
class Application < Rails::Application | |
config.time_zone = 'Rome' | |
config.active_record.default_timezone = :local |
OlderNewer