Skip to content

Instantly share code, notes, and snippets.

View luizhpcamargo's full-sized avatar

Luiz Henrique Pires de Camargo luizhpcamargo

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<VAST version="4.0"><Ad id="1" sequence="1"><InLine><AdSystem version="1.0">matrix</AdSystem><AdTitle><![CDATA[1]]></AdTitle><Impression id="2ac850fa-86c4-4b11-8853-fa419fe564e0"><![CDATA[https://a.kinkadservercdn.com/i?tid=2ac850fa-86c4-4b11-8853-fa419fe564e0&cf=ag0ah0bi0i]]></Impression><Creatives><Creative id="3151" sequence="1" AdID="3151"><UniversalAdId idRegistry="adn" idValue="3151"><![CDATA[3151]]></UniversalAdId><Linear><Duration>00:00:15</Duration><TrackingEvents></TrackingEvents><MediaFiles><MediaFile delivery="progressive" type="video/mp4" width="640" height="480"><![CDATA[https://cdn.kinkadservercdn.com/31/fe/187/3150_enc.mp4?expires=1701803409&token=d3ddb6880fc3916e3335b3582666eb04]]></MediaFile></MediaFiles><VideoClicks><ClickThrough id="2ac850fa-86c4-4b11-8853-fa419fe564e0"><![CDATA[https://a.kinkadservercdn.com/c?tid=2ac850fa-86c4-4b11-8853-fa419fe564e0&t=13]]></ClickThrough></VideoClicks></Linear></Creative></Creatives></InLine></Ad></VAST>
@luizhpcamargo
luizhpcamargo / event.rb
Last active February 21, 2018 17:28
Event test
class Event < ApplicationRecord
TIME_STEP = 30.minutes
scope :openings, -> {where(kind: :opening)}
scope :appointments, -> {where(kind: :appointment)}
scope :filter_by_date, ->(beginning_date, end_date){where(starts_at: beginning_date..end_date)}
scope :weekly_events, -> {where(weekly_recurring: true)}
class << self
def availabilities(date = Date.today)
@luizhpcamargo
luizhpcamargo / .vimrc
Created February 15, 2018 20:16
Vim configuration
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
### Keybase proof
I hereby claim:
* I am luizhpcamargo on github.
* I am knuya (https://keybase.io/knuya) on keybase.
* I have a public key ASCPap1AAbbGmGupSbHJKf_250pxzw8IQuYaeca_xxHe4Ao
To claim this, I am signing this object: