Skip to content

Instantly share code, notes, and snippets.

View vdel26's full-sized avatar

Victor Delgado vdel26

View GitHub Profile
@vdel26
vdel26 / banks.js
Created June 12, 2019 20:04
Online banking login URLs
var onlineBanks = {
be: [{ name: "ING Belgium", link: "https://www.ing.be/en/expats/day-to-day-banking/self-banking/Pages/homebank.aspx?WT.ac=AD_HP_expats_OnlineBanking_howtouseHB" }],
hr: [{ name: "Zagrebačka banka", link: "http://www.zaba.hr/home/wps/wcm/connect/zaba_hr/zabautils/naslovnica/" }],
cy: [{ name: "Bank of Cyprus", link: "http://www.bankofcyprus.com.cy/en-GB/Internet-Banking/" }],
fr: [{ name: "BNP Paribas", link: "https://mabanque.bnpparibas/fr/connexion" }],
gr: [{ name: "Alpha Bank", link: "http://www.alpha.gr/page/" }],
hu: [{ name: "Budapest bank", link: "http://www.budapestbank.hu/" }],
ie: [{ name: "AIB", link: "http://personal.aib.ie/" }],
it: [{ name: "Unicredit", link: "https://www.unicredit.it/it/privatebanking/soluzionibancarie/internet-banking.html" }],
lv: [{ name: "Swedbank", link: "https://ib.swedbank.lv/private" }, { name: "Nordea", link: "https://netbank.nordea.com/pnb/login.do?ts=LV&language=lv" }, { name: "SEB", link: "https://ibanka.seb.lv/ipc/index.jsp" }, { name:
window.sr = ScrollReveal({ reset: true });
sr.reveal('.js-reveal', {
duration: 500,
delay: 75,
easing: 'ease-out',
scale: 1,
distance: '2rem'
});
@vdel26
vdel26 / heartbeat-loader.markdown
Last active September 8, 2017 08:01
Heartbeat loader
@vdel26
vdel26 / app.coffee
Created September 1, 2017 15:45
Framer / particles background
sketch = Framer.Importer.load("imported/medox-framer@2x", scale: 1)
stars = sketch.moving_stars.children
second_batch = sketch.moving_stars.copy()
second_batch.name = 'moving_stars2'
second_batch.parent = sketch.BG
stars2 = second_batch.children
stars.map (s) ->
s.y = Screen.height + Utils.randomNumber(0, 200)
@vdel26
vdel26 / spa.js
Last active July 23, 2016 07:44
Simple SPA navigation
(function () {
/* Adapted from https://github.com/substack/single-page/ */
if (settings.isSpa && window.history && window.history.pushState) {
document.body.addEventListener('click', function (e) {
var isSpaLink = e.target.matches('[data-spa-link]')
var spaLink = isSpaLink ? e.target : e.target.closest('[data-spa-link]')
if (!isSpaLink || e.metaKey || e.ctrlKey || e.shiftKey) {
return
@vdel26
vdel26 / export-keys.rb
Last active May 31, 2016 15:43
CSV export of all applications (including keys)
#!/usr/bin/env ruby
require 'HTTParty'
require 'optparse'
require 'csv'
class ApplicationsExport
def initialize(base_url, provider_key, outfile)
@applications = []
@vdel26
vdel26 / proxy.js
Last active May 11, 2016 14:34 — forked from briangreenery/gist:e2f03c0058e3589a9acf
Proxy adding a client certificate
var http = require('http');
var httpProxy = require('http-proxy');
var caCert =
'-----BEGIN CERTIFICATE-----\n' +
'MIIDajCCAlICCQDgeRZY85PN7TANBgkqhkiG9w0BAQUFADB2MQswCQYDVQQGEwJV\n' +
'UzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEh\n' +
'MB8GA1UEChMYSW50ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMRcwFQYDVQQDEw5EZW1v\n' +
'IEF1dGhvcml0eTAgFw0xNTA3MDQyMTQxNDlaGA8yMTE1MDYxMDIxNDE0OVowdjEL\n' +
'MAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBG\n' +
@vdel26
vdel26 / capture_tests.lua
Created April 4, 2016 13:25
Test matching, capturing values in input URL and using them in rewrites
package.path = package.path .. ';../?.lua;test/?.lua'
require 'test_helper'
local services = require 'fixtures'
local matcher = require 'matcher'
local metric_builder = require 'metric_builder'
local rules = {
['GET api.domain.com/fronts/{source_id}/news'] = {
service_id = '16', source_scheme = 'http', target_scheme = 'http',
@vdel26
vdel26 / animations.js
Created March 14, 2016 20:51
Custom Scene transition
import { Navigator } from 'react-native';
import PixelRatio from 'PixelRatio';
import Dimensions from 'Dimensions';
import buildStyleInterpolator from 'buildStyleInterpolator';
// use FloatFromRight as starting template
const BaseConfig = Navigator.SceneConfigs.FloatFromRight;
// create custom navigator transition