Skip to content

Instantly share code, notes, and snippets.

View condef5's full-sized avatar
🏠
Working from home

Frank Condezo condef5

🏠
Working from home
View GitHub Profile
@condef5
condef5 / rules.md
Created May 31, 2024 02:32
Pdf de las reglas de los cojos de tingo maría
marp theme
true
uncover

bg opacity

Reglas de los cojos de Tingo María


// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+cmd+numpad1",
"command": "workbench.action.terminal.sendSequence",
"description": "run rspec in current file",
"args": {
"text": "rt ${relativeFile}\u000D"
}
},
code --install-extension adamwalzer.string-converter
code --install-extension akamud.vscode-theme-onelight
code --install-extension aliariff.vscode-erb-beautify
code --install-extension allergan-bt.auto-collapse-blocks
code --install-extension bradlc.vscode-tailwindcss
code --install-extension christian-kohler.path-intellisense
code --install-extension Cjay.ruby-and-rails-snippets
code --install-extension CoenraadS.bracket-pair-colorizer-2
code --install-extension dbaeumer.vscode-eslint
code --install-extension dracula-theme.theme-dracula
@condef5
condef5 / README.md
Last active July 4, 2022 16:23
Import and export all your custom emojis from slack

Export your emojis

Steps:

  1. Run saveEmojisToExcel.js in your browser to dowload a CSV containing filename, url for each custom emoji.
  2. Create a download.sh script file and give permissions chmod +x download.sh
  3. Run the script: ./download.sh
  4. See the emojis folder

Import your emojis

require 'roo'
require 'csv'
full_path = ->(f) { File.join('data', f) }
remove_options = %w[(TEST PRACTICE) (Form) (Responses) .xlsx]
format_form_name = ->(form) do
form.gsub(Regexp.union(remove_options), '')
end
paths = Dir.entries('data').select { |f| File.file? full_path.call(f) }
@condef5
condef5 / 1-800-code-war.rb
Last active May 19, 2021 07:16
super katas
PHONE_WORDS = [
%w[A B C],
%w[D E F],
%w[G H I],
%w[J K L],
%w[M N O],
%w[P Q R S],
%w[T U V],
%w[W X Y Z],
@condef5
condef5 / source.sh
Created February 6, 2021 22:29
Somos los piratas
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
source /usr/local/opt/chruby/share/chruby/chruby.sh
source /usr/local/opt/chruby/share/chruby/auto.sh
# Path to your oh-my-zsh installation.
export ZSH="/Users/condef5/.oh-my-zsh"
code --install-extension AbhijoyBasak.nestjs-files
code --install-extension adamwalzer.string-converter
code --install-extension akamud.vscode-theme-onelight
code --install-extension allergan-bt.auto-collapse-blocks
code --install-extension beastdestroyer.firefox-quantum-themes
code --install-extension bradlc.vscode-tailwindcss
code --install-extension castwide.solargraph
code --install-extension christian-kohler.path-intellisense
code --install-extension Cjay.ruby-and-rails-snippets
code --install-extension clinyong.vscode-css-modules
# Temary
# ------------------------
# Explain about how works:
# > class method self ✅
# > method_missing ✅
# > blocks as parameter ✅
# > instance_eval ✅
# What are we going to build?
require 'socket'
module MyServer
@@routes = {
"/" => "Hello World!\n"
}
def response(socket, content)
socket.print "HTTP/1.1 200 OK\r\n" +
"Content-Type: text/plain\r\n" +