Skip to content

Instantly share code, notes, and snippets.

@gdiaz
gdiaz / vast.xml
Created September 12, 2014 18:02
VAST example
<?xml version="1.0" encoding="UTF-8"?>
<VAST version="2.0">
<Ad id="5897725" dc="true">
<Wrapper>
<AdSystem>ADTECH</AdSystem>
<VASTAdTagURI><![CDATA[http://search.spotxchange.com/vast/2.00/84123?VPAID=1&content_page_url=http://localhost:3000/test.html&cb=544736692]]></VASTAdTagURI>
<Impression id="ADTECH"><![CDATA[http://ads.intergi.com/adcount/3.0/5205/1398358/3020026/1013/AdId=5897725;BnId=7;ct=168023989;st=3200;adcid=1;itime=544736692;reqtype=25;]]></Impression>
<Impression><![CDATA[http://event.adxpose.com/event.flow?uid=PJ0UgyfpLZmaI677_58977257&amp;eventcode=000_000_12&amp;location=http://localhost:3000/test.html&amp;wh=&amp;xy=&amp;vchannel=1398358&amp;cid=5897725&amp;duration=0&amp;iframed=0&amp;p=1]]></Impression>
@gdiaz
gdiaz / products.json
Created July 15, 2014 09:38
products
[{"id":"CO.fiscal","title":"vLex Colombia Tributario y Contable","implements":["FISCAL_CO"],"search_params":{},"search_scope":"*"},
{"id":"CO.laboral","title":"vLex Colombia Laboral y Seguridad Social","implements":["LABORAL_CO"],"search_params":{},"search_scope":"*"},
{"id":"CO","title":"vLex Colombia","implements":["FULL_CO","BASIC_CO"],"search_params":{},"search_scope":"jurisdiction:CO"},
{"id":"CO_in_WW","title":"vLex Colombia","implements":[],"search_params":{},"search_scope":"jurisdiction:CO"},
{"id":"ES.administrativo","title":"vLex Administrativo","implements":["PREMIUM_PUBLICO"],"search_params":{},"search_scope":"jurisdiction:ES+categorias:07"},
{"id":"ES.civil_mercantil","title":"vLex Civil-Mercantil","implements":["PREMIUM_CIVIL"],"search_params":{},"search_scope":"jurisdiction:ES+categorias:01,03,14.07"},
{"id":"ES.fiscal","title":"vLex Fiscal","implements":["PREMIUM_FISCAL"],"search_params":{},"search_scope":"jurisdiction:ES+categorias:06"},
{"id":"ES.laboral","title":"vLex Laboral","implements":
@gdiaz
gdiaz / errors.log
Created December 30, 2012 14:13
textos4.g.vlex.com down
** [out :: tintin.vlex.com] Can't connect to MySQL server on 'textos4.g.vlex.com' (4)
** [out :: tintin.vlex.com]
** [out :: tintin.vlex.com] Mysql::Error (Can't connect to MySQL server on 'textos4.g.vlex.com' (4)):
** [out :: tintin.vlex.com] app/models/texto.rb:187:in `update'
** [out :: tintin.vlex.com] app/models/texto.rb:175:in `create_or_update_text_types'
** [out :: tintin.vlex.com] app/models/texto.rb:172:in `each'
** [out :: tintin.vlex.com] app/models/texto.rb:172:in `create_or_update_text_types'
** [out :: tintin.vlex.com] app/models/texto.rb:171:in `create_or_update_text_types'
** [out :: tintin.vlex.com] app/controllers/vid_controller.rb:803:in `update_document_associations'
** [out :: tintin.vlex.com] app/controllers/vid_controller.rb:802:in `update_document_associations'
@gdiaz
gdiaz / trace.log
Created December 16, 2012 15:58
awaken error
/home/geronimo/vlex/vendor/bundle/ruby/1.8/bundler/gems/awaken-2a5ff5e9e8d0/lib/languide/node.rb:79:in `new'
/home/geronimo/vlex/vendor/bundle/ruby/1.8/bundler/gems/awaken-2a5ff5e9e8d0/lib/languide/node.rb:79:in `add_text'
/home/geronimo/vlex/vendor/bundle/ruby/1.8/bundler/gems/awaken-2a5ff5e9e8d0/lib/languide/node.rb:107:in `add_text_with_footnotes'
/home/geronimo/vlex/vendor/bundle/ruby/1.8/bundler/gems/awaken-2a5ff5e9e8d0/lib/languide/node.rb:304:in `parse'
/home/geronimo/vlex/vendor/bundle/ruby/1.8/bundler/gems/awaken-2a5ff5e9e8d0/lib/languide/node.rb:24:in `parse'
/home/geronimo/vlex/vendor/bundle/ruby/1.8/bundler/gems/awaken-2a5ff5e9e8d0/lib/languide/node.rb:266:in `parse'
/home/geronimo/vlex/vendor/bundle/ruby/1.8/bundler/gems/awaken-2a5ff5e9e8d0/lib/languide/node.rb:24:in `parse'
/home/geronimo/vlex/vendor/bundle/ruby/1.8/bundler/gems/awaken-2a5ff5e9e8d0/lib/languide/node.rb:40:in `parse'
/home/geronimo/vlex/vendor/bundle/ruby/1.8/bundler/gems/awaken-2a5ff5e9e8d0/lib/languide/node.rb:350:in `parse'
/h
@gdiaz
gdiaz / chunk.json
Created December 4, 2012 17:57
Concursal sin children
{{#if_has categories "03"}}
{
"title":"Mercantil",
"children":[
{
"title":"Sociedades",
"meta":{
"children":"/v1/sources/215/children.json"
}
},
@gdiaz
gdiaz / log.txt
Created November 8, 2012 13:59
lucene test
/servicios/busquedas?colecciones=6,2,4,5,8,1&orden=score&recursos=rango-1-20&query=(texto:(propiedad)+AND+(coleccion_tipo_id:4))
<resultado vid="238024" score="142.53593" posicion="1"/>
<resultado vid="226002" score="122.45996" posicion="2"/>
<resultado vid="334809" score="121.5951" posicion="3"/>
<resultado vid="278960" score="103.70273" posicion="4"/>
<resultado vid="227052" score="103.53634" posicion="5"/>
<resultado vid="279426" score="102.12738" posicion="6"/>
<resultado vid="226013" score="101.87889" posicion="7"/>
<resultado vid="279511" score="100.697266" posicion="8"/>
@gdiaz
gdiaz / requirejs_chunck
Created October 9, 2012 15:21
Requirejs problem
nameToUrl: function (moduleName, ext) {
var paths, pkgs, pkg, pkgPath, syms, i, parentModule, url,
parentPath;
//If a colon is in the URL, it indicates a protocol is used and it is just
//an URL to a file, or if it starts with a slash, contains a query arg (i.e. ?)
//or ends with .js, then assume the user meant to use an url and not a module id.
//The slash is important for protocol-less URLs as well as full paths.
@gdiaz
gdiaz / error.log
Created August 27, 2012 15:53
ActionView::TemplateError (Missing template ./_vid) desde http://devel.vpublishing.vlex.com/i/Plantilla:Citation
** [out :: kan.vlex.com] ActionView::TemplateError (Missing template ./_vid in view path app/views) on line #22 of app/views/vid/index.rhtml:
** [out :: kan.vlex.com] 19: ###pendiente de hacerlo con el permit -> action 'opciones_edicion' en el vid_controller
** [out :: kan.vlex.com] 20: ###st_opciones_edicion = controller.send(:render, :controller => "vid", :action => "opciones_edicion")
** [out :: kan.vlex.com] 21:
** [out :: kan.vlex.com] 22: st_cuerpo_texto = controller.send(:render_to_string, :partial => "vid/#{@action}", :params => params)
** [out :: kan.vlex.com] 23: @b_solo_descargar = strip_tags(st_cuerpo_texto).to_s.gsub(/\s+/,'').empty? && @documento.fn_adjunto("in1")
** [out :: kan.vlex.com] 24:
** [out :: kan.vlex.com] 25: html_cabecera = controller.send(:render_to_string, :partial => '/partials/x-tipo-fuente/' + @documento.fuente.tipo.st_partial_cabecera_documento) %>
** [out :: kan.vlex.com]
@gdiaz
gdiaz / documento.xml
Created August 24, 2012 19:38
Simple XML example
<documento>
<id>testing id</id>
<title>testing xpath</title>
</documento>
@gdiaz
gdiaz / app.build.js
Created July 18, 2012 12:18
Build configuration
// version que minimifica todo dentro de setup - error en modulo anonimo ...
({
appDir: "public",
baseUrl: "js",
dir: "public.build",
modules: [
{ name: "setup" }
],
mainConfigFile: "public/js/setup.js"
})