Skip to content

Instantly share code, notes, and snippets.

View dbarria's full-sized avatar
🏠
Working from home

Daniel Barria dbarria

🏠
Working from home
View GitHub Profile
<!doctype html>
<html>
<head>
<title>Page title...</title>
</head>
<body>
<header>
<h1>Heading</h1>
<b><p>Header 1</p></b>
</header>

Keybase proof

I hereby claim:

  • I am dbarria on github.
  • I am danielbarria (https://keybase.io/danielbarria) on keybase.
  • I have a public key ASDBnG0Csi5Ev2no_W7tZzKniui1zh28VkKqgaRF2UDA5wo

To claim this, I am signing this object:

@dbarria
dbarria / index.html
Last active May 13, 2020 21:37 — forked from pdaire/index.html
bci demo salesforce
<html>
<head></head>
<body>
<h1>Widget Let's Talk</h1>
<script type='text/javascript' async defer>
(function(l,t){if(l.$LT)return;function ls(){a=!1;s=t.createElement('script');s.type='text/javascript';s.src='https://bcitransaccional.letsta.lk/widget.js';s.async=!0;s.defer=!0;k=document.getElementsByTagName('script')[0];k.parentNode.insertBefore(s,k)};var lt=l.$LT=function(callback){if(typeof callback==='function'){mock.initCallBack=callback}};lt.enqueue=function(){mock.stack.push(arguments);mock.times.push(+new Date)};lt.settings=function(settings){lt.enqueue('userSettings',settings)};lt.chatMetadata=function(getMetadata){if(typeof getMetadata==='function'){lt.enqueue('metadata',getMetadata())}};lt.setByName=function(name){mock.name=name};var mock=lt._={name:!1,initCallBack:!1,stack:[],times:[+new Date],};if(t.body){ls()}else{if(l.attachEvent){l.attachEvent('onload',ls)}else{l.addEventListener('load',ls,!1)}}})(window,document);window.$LT(function(messenger){messenger.setByName('salesforce');});
</
@dbarria
dbarria / pre-commit
Last active November 14, 2018 16:25
Precommit hook to run reek
#!/bin/bash -l
source "$HOME/.rvm/scripts/rvm"
cd $HOME/arboles/camperfarm-web
find . -type f -name "*.rb" ! -path './vendor/*' ! -path './spec/*' | sort > current_rb_files
diff_command=`diff --new-line-format="" --unchanged-line-format="" current_rb_files .reek_legacy_file_list`
rm current_rb_files
if [ -z "$diff_command" ]; then
echo "There is no ruby files to analyze"
else
echo $diff_command | tr "\r\n" " " | xargs bundle exec reek
@dbarria
dbarria / pubnub_checker.html
Last active November 12, 2018 15:34
pubnub checker
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Begin of LetsTalk script -->
<script src="https://cdn.pubnub.com/sdk/javascript/pubnub.4.21.5.js"></script>
<!-- End of LetsTalk script -->
</head>
<body>
<h1>Pubnub</h1>
<script>
@dbarria
dbarria / index.html
Created December 19, 2017 19:14
BCI demo mobile
<html>
<head>
<script type="application/javascript" src=https://bancoamericano.letsta.lk/widget.js></script>
</head>
<object data="https://www.bci.cl/mbci" width="100%" height="800px">
<embed src="https://www.bci.cl/mbci" width="100%″" height="800px" />
@dbarria
dbarria / index.html
Last active December 6, 2017 19:29
bcitransaccional-qa.letsta.lk with widget widget-av
<html>
<head>
<!-- Carga del widget de Let's Talk -->
<script type="application/javascript" src="https://bcitransaccional-qa.letsta.lk/widget.js"></script>
<style>
body, html {
height: 100%;
margin: 0;
overflow-y: visible;
@dbarria
dbarria / index.html
Created November 28, 2017 17:52
bcitransaccional-qa inicialización con apertura
<html>
<head>
<!-- Carga del widget de Let's Talk -->
<script type="application/javascript" src="https://bcitransaccional-qa.letsta.lk/widget.js"></script>
<style>
body, html {
height: 100%;
margin: 0;
overflow-y: visible;
@dbarria
dbarria / index.html
Created November 22, 2017 21:14
Levantar la ventana de chat despues de 20 segundos para bcictacorriente
<html>
<head>
<!-- Carga del widget de Let's Talk -->
<script type="application/javascript" src="https://bcictacorriente.letsta.lk/widget.js"></script>
<!-- Carga de la versión de jQuery es usada en https://www.bci.cl/webPublico/planes.html#/contratoplanes/landing -->
<script type="application/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<!-- Carga de una librería de jQUery que permite detectar cuándo un usuario está inactivo, cumpliendo todas las siguientes condiciones durante un tiempo dado:
- No ha movido el mouse
@dbarria
dbarria / index.html
Last active November 22, 2017 21:13
Levantar la ventana del widget después de 10 segundos de inactividad
<html>
<head>
<!-- Carga del widget de Let's Talk -->
<script type="application/javascript" src="https://we.letsta.lk/widget.js"></script>
<!-- Carga de la versión de jQuery es usada en https://www.bci.cl/webPublico/planes.html#/contratoplanes/landing -->
<script type="application/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<!-- Carga de una librería de jQUery que permite detectar cuándo un usuario está inactivo, cumpliendo todas las siguientes condiciones durante un tiempo dado:
- No ha movido el mouse