Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Daniel Barria dbarria

🏠
Working from home
View GitHub Profile
@dbarria
dbarria / index.html
Last active May 13, 2020 — forked from pdaire/index.html
bci demo salesforce
View index.html
<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 Nov 14, 2018
Precommit hook to run reek
View pre-commit
#!/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
View pubnub_checker.html
<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 Dec 19, 2017
BCI demo mobile
View index.html
<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 Dec 6, 2017
bcitransaccional-qa.letsta.lk with widget widget-av
View index.html
<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 Nov 28, 2017
bcitransaccional-qa inicialización con apertura
View index.html
<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 Nov 22, 2017
Levantar la ventana de chat despues de 20 segundos para bcictacorriente
View index.html
<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 Nov 22, 2017
Levantar la ventana del widget después de 10 segundos de inactividad
View index.html
<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
View index.html
<html>
<head>
<script type="application/javascript" src=https://bci.staging.letsta.lk/widget.js></script>
</head>
<object data="https://google.cl/" width="100%" height="800px">
<embed src="https://google.cl/" width="100%″" height="800px" />
View index.html
<html>
<head>
<script type="application/javascript" src=https://bancoestado.staging.letsta.lk/widget.js></script>
</head>
<object data="https://google.cl/" width="100%" height="800px">
<embed src="https://google.cl/" width="100%″" height="800px" />
You can’t perform that action at this time.