Skip to content

Instantly share code, notes, and snippets.

View JuanVqz's full-sized avatar
🦖
Doing Ruby and JavaScript

Juan Vásquez JuanVqz

🦖
Doing Ruby and JavaScript
View GitHub Profile
@JuanVqz
JuanVqz / release-please-workflow.yml
Last active February 1, 2023 17:11
Release Please Workflow Template for a Ruby Gem
name: release
on:
workflow_dispatch:
push:
branches: [ main ]
jobs:
release-please:
runs-on: ubuntu-latest
### SAP Individual Contributor License Agreement
Thank you for your interest in contributing to open source software projects (“Projects”) made available by SAP SE or its affiliates (“SAP”). This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to SAP in respect of any of the Projects (collectively “Contributions”). If you have any questions respecting this Agreement, please contact opensource@sap.com.
You agree that the following terms apply to all of your past, present and future Contributions. Except for the licenses granted in this Agreement, you retain all of your right, title and interest in and to your Contributions.
**Copyright License.** You hereby grant, and agree to grant, to SAP a non-exclusive, perpetual, irrevocable, worldwi
@JuanVqz
JuanVqz / simple_form_bulma.rb
Last active December 24, 2023 17:52
Support for simple form with bulma css, copy and paste on config/initializers/simple_form_bulma.rb
# frozen_string_literal: true
# Use this setup block to configure all options available in SimpleForm.
SimpleForm.setup do |config|
# Default class for buttons
config.button_class = "button"
# Define the default class of the input wrapper of the boolean input.
config.boolean_label_class = "checkbox"
/*! debug.css | MIT License | zaydek.github.com/debug.css */
*:not(path):not(g) {
color: hsla(210, 100%, 100%, 0.9) !important;
background: hsla(210, 100%, 50%, 0.5) !important;
outline: solid 0.25rem hsla(210, 100%, 100%, 0.5) !important;
box-shadow: none !important;
}
@JuanVqz
JuanVqz / config.js
Last active June 26, 2018 16:02
configuración de vuepress
module.exports = {
title: 'JuanVqz.github.io',
themeConfig: {
nav: [
{ text: 'Bienvenido', link: '/'}
],
sidebar: [
'/',
@JuanVqz
JuanVqz / functions.php
Last active May 6, 2018 21:45
functions utilities phpunit, factory make
<?php
// composer.json
// "autoload-dev": {
// ...
// "files": ["tests/utilities/functions.php"]
// ...
// }
function create($class, $attributes = [])
@JuanVqz
JuanVqz / TestCase.php
Last active May 6, 2018 21:42
TestCase.php with signIn method 2
<?php
namespace Tests;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
{
use CreatesApplication;
@JuanVqz
JuanVqz / passport.md
Created May 5, 2018 04:18
Passport configuration

Install passport step by step

  1. Install passport
composer require laravel/passport
  1. Run migrations
@JuanVqz
JuanVqz / vim-blade-snippets
Created October 1, 2017 14:57
vim-blade-snippets
extends html
snippet foreach "@foreach"
@foreach ($${1:array} as $${2:item})
{{ $$2->${3} }}
@endforeach
snippet if "@if"
@if (${1:true})
${2:tag}
@JuanVqz
JuanVqz / folding vim
Last active September 28, 2017 05:02
folding vim
" Folding, not need for plugin
"" fold enable
set fen
"" no fold enable
set nofen
"" fold column
set fdc=0