Skip to content

Instantly share code, notes, and snippets.

View branquito's full-sized avatar
🌴
On vacation

Branchito de Munze branquito

🌴
On vacation
View GitHub Profile
@branquito
branquito / HelloWorld.vue
Created February 11, 2022 11:48 — forked from mrichman/HelloWorld.vue
Cognito Hosted UI + Vue.js example
<template>
<div>
<b-container>
<b-row align-h="center">
<div v-if="!signedIn">
<b-button variant="success" @click="signIn">Sign in with Cognito</b-button>
</div>
<div v-if="signedIn">
<h4>Welcome, {{ username }}!</h4>
<b-button variant="danger" @click="signOut">Sign out</b-button>
<template>
<div>
<div
v-if="loadedFilters && Object.keys(loadedFilters).length > 0 && filtersType"
class="active-filters">
<h4 class="applied-filters-text">{{ $tc('filters.applied_filters') }}:</h4>
<div
v-for="(loadedFilter, key) in loadedFilters"
:key="key"
class="filter-btn-group btn-group mr-2"
@branquito
branquito / pet-snippet.toml
Created December 6, 2018 16:40
description
[[snippets]]
description = "ping"
command = "ping 8.8.8.8"
tag = ["network", "google"]
output = ""
[[snippets]]
description = "Connect to mysql via mycli"
command = "mycli mysql://root@localhost:3306/ -p root"
tag = ["mycli", "mysql", "tool"]
@branquito
branquito / VCellDetails.vue
Created September 25, 2018 15:07
error during evaluation
orderedStatuses() {
return this.statuses.all.reduce((status, acc) => {
acc.push("...")
return acc
}, [])
},
@branquito
branquito / files
Created September 25, 2018 10:49
nav filenames
agency-structure-active.svg
biling-finance-active.svg
candidates-active.svg
clients-locations-active.svg
dashboard-active.svg
documents-compliance-active.svg
files
internal-users-active.svg
job-schedule-active.svg
rate-edit.svg
@branquito
branquito / index.js
Created September 23, 2018 10:43
example routes
import Navigo from "navigo"
const router = new Navigo(null, true, "#!")
import Page1 from "./pages/page-one"
import Page2 from "./pages/page-two"
router
.on("/mixins", function() {
Page1.run()
})
@branquito
branquito / foo.sh
Last active May 27, 2018 12:08
http prompt example, combined with `jq` to show only fields of type string
get sub-agencies | jq '[.data[] | paths(strings) | add] | unique[]'
get sub-agencies | jq '.data | group_by(.parent_id)[] | {(.[0].parent_id|tostring): [.[] | .id]}'
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>
// This is the webpack config used for unit tests.
var utils = require('./utils')
var webpack = require('webpack')
var merge = require('webpack-merge')
var baseWebpackConfig = require('./webpack.base.conf')
var webpackConfig = merge(baseWebpackConfig, {
// use inline sourcemap for karma-sourcemap-loader
module: {