Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Daniel Barria dbarria

View GitHub Profile
@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" />
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" />
You can’t perform that action at this time.