Skip to content

Instantly share code, notes, and snippets.

View lcjury's full-sized avatar
馃彔
Working from home

Jury lcjury

馃彔
Working from home
View GitHub Profile
@lcjury
lcjury / TechschoolConcepcion2024.md
Last active May 27, 2025 13:39
TechSchool Concepci贸n 2024, requisitos talleres

En este documento encontraras los requisitos para los talleres del TechSchool Concepci贸n del 6 de Abril 2024 (https://lu.ma/techschool-v12024-conce). Si est谩s buscando los del 2025, porfavor revisa en https://lu.ma/b90s611e

  • Te aconsejamos llegar con los requisitos preinstalados para los talleres a los que te interese asistir, si puedes, prepara los requisitos de un taller extra, "por si las moscas", ya que las inscripciones se realizaran ese mismo d铆a.
  • Si tienes preguntas sobre cualquier requisitos puedes contactarnos en necesito ayuda

Requisitos Talleres

Homenaje a Akira Toriyama en HTMX y Golang

Para este taller necesitas un editor de c贸digo, una terminal unix, golang en su versi贸n 1.20

@lcjury
lcjury / .bash_profile
Created June 10, 2021 03:43
lazy load nvm and ruby
if [ -s "$HOME/.nvm/nvm.sh" ] && [ ! "$(type -t __init_nvm)" = function ]; then
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion"
declare -a __node_commands=('nvm' 'node' 'npm' 'yarn' 'gulp' 'grunt' 'webpack')
function __init_nvm() {
for i in "${__node_commands[@]}"; do unalias $i; done
. "$NVM_DIR"/nvm.sh
unset __node_commands
unset -f __init_nvm
}
@lcjury
lcjury / Gemfile
Created June 6, 2021 20:34
Get yahoo finance data using async gem
# frozen_string_literal: true
source "https://rubygems.org"
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
gem "async", "~> 1.29"
gem "async-http", "~> 0.56.3"
gem "nokogiri", "~> 1.11"
@lcjury
lcjury / createForeign.php
Created April 22, 2019 03:17
[Laravel] Macro to create a column and foreign key in migration with just one command
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Str;
Blueprint::macro('createForeign', function($model) {
$column = "{$model}_id";
$table = Str::snake(Str::pluralStudly($model));
$this->unsignedBigInteger($column);
return $this->foreign($column)->references('id')->on($table);
});
@lcjury
lcjury / .vimrc
Created October 1, 2018 14:35
Vim airline skipping parts with dynamic content
call pathogen#infect()
call pathogen#helptags()
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
call airline#parts#define_condition('ffenc', "&ff != 'unix' || &fenc != 'utf-8'")
"let g:airline_skip_empty_sections = 1
Plugin 'vim-airline/vim-airline'
@lcjury
lcjury / cancanWithSti.rb
Created September 14, 2018 17:33
cancan with STI
begin
require 'bundler/inline'
rescue LoadError => e
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler'
raise e
end
gemfile(true) do
source 'https://rubygems.org'
gem 'rails', '5.0.7' # use correct rails version