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
X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H* |
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
Apellido1 Apellido2 Nombre1 | |
Apellido1 Apellido3 Nombre2 | |
Apellido1 Apellido4 Nombre1 | |
Peter González Parker | |
Peter González Parker |
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
descripcion | tags | |
---|---|---|
prueba uno | tag1,tag2 |
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
sudo su postgres | |
psql | |
update pg_database set datistemplate=false where datname='template1'; | |
drop database Template1; | |
create database template1 with owner=postgres encoding='UTF-8' | |
lc_collate='en_US.utf8' lc_ctype='en_US.utf8' template template0; | |
update pg_database set datistemplate=true where datname='template1'; |
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
var _gauges = _gauges || []; | |
$(document).on("ready", function() { | |
var SITE_ID = '****'; | |
var t = document.createElement('script'); | |
t.type = 'text/javascript'; | |
t.async = true; | |
t.id = 'gauges-tracker'; | |
t.setAttribute('data-site-id', SITE_ID); | |
t.setAttribute('data-track-path', 'https://track.gaug.es/track.gif'); |
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
appId = ******* | |
$ -> | |
loadFacebookSDK() | |
bindFacebookEvents() unless window.fbEventsBound | |
bindFacebookEvents = -> | |
$(document) | |
.on('page:fetch', saveFacebookRoot) | |
.on('page:change', restoreFacebookRoot) |
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
/* Original query */ | |
SELECT CONCAT(clientFirstName, clientLastName) AS fullName, count(*) AS ocurrences | |
FROM vouchers | |
WHERE vouchers.date BETWEEN "2011-01-01" AND "2011-12-31" | |
GROUP BY fullName | |
HAVING count(*) >= 2 AND count(*) <= 20 | |
/* taking ~457ms */ | |
/* for 2012: ~1.79s */ | |
/* for 2013: ~5.24s */ | |
/* for 2014: ~2.63s */ |
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
travis@debug-hs-12736-matthewford-ruby-1423060806:~/bitzesty/sxt$ bundle install --without development deployment --jobs=3 --retry=3 | |
Fetching source index from https://rubygems.org/ | |
Fetching git://github.com/joshk/bitly.git | |
Fetching git://github.com/bitzesty/clickatell.git | |
Fetching https://github.com/dmgarland/jcarousel-rails.git | |
Fetching https://github.com/getsentry/raven-ruby.git | |
Installing Platform 0.4.0 | |
Installing rake 10.3.2 | |
Installing i18n 0.7.0 | |
Installing multi_json 1.10.1 |
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
def material_pictograms_for_region(region) | |
return "" unless material.pictograms_of(region).present? | |
hazard_pictograms = [] | |
pictograms_path = Rails.root.join("app/assets/images/hazard-pictograms/") | |
image_names = Dir[pictograms_path + "*.png"].map { |f| f.split("/").last } | |
image_names.map! {|n| File.basename(n,File.extname(n)) } # remove png extension | |
image_names = image_names.sort.reverse # so that we select latest coincidence | |
material.pictograms_of(region).map { |pic| | |
pic.image_name if pic.image_name.present? | |
}.compact.map { |pictogram_name| |
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
describe 'If a geographical area has a parent geographical area group then the | |
validity period of the parent geographical area group must span the validity | |
period of the geographical area' do | |
describe "GA5" do | |
let(:geographical_area) { | |
build(:geographical_area, | |
validity_end_date: Date.today, | |
parent_geographical_area_group_sid: parent_id) | |
} |
NewerOlder