Skip to content

Instantly share code, notes, and snippets.

🌴
On vacation

Branchito de Munze branquito

🌴
On vacation
Block or report user

Report or block branquito

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Datatables.vue
<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"
View pet-snippet.toml
[[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 Sep 25, 2018
error during evaluation
View VCellDetails.vue
orderedStatuses() {
return this.statuses.all.reduce((status, acc) => {
acc.push("...")
return acc
}, [])
},
@branquito
branquito / files
Created Sep 25, 2018
nav filenames
View files
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 Sep 23, 2018
example routes
View index.js
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
http prompt example, combined with `jq` to show only fields of type string
View foo.sh
get sub-agencies | jq '[.data[] | paths(strings) | add] | unique[]'
View -
get sub-agencies | jq '.data | group_by(.parent_id)[] | {(.[0].parent_id|tostring): [.[] | .id]}'
View VueJS Apache Config (single page app)
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>
View webpack.test.conf.js
// 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: {
View -
git archive --format zip --remote=bitbucket:chord_agency/cpl-api.git master >| t.zip
You can’t perform that action at this time.