Skip to content

Instantly share code, notes, and snippets.

View juliofruta's full-sized avatar
💭
🧠

Julio Guzman juliofruta

💭
🧠
View GitHub Profile
@juliofruta
juliofruta / lilbit.swift
Last active April 25, 2018 22:37
bitso challenge on facebook
let currentCollation = UILocalizedIndexedCollation.current().sectionTitles
for i in currentCollation.enumerated() {
if i.element == "G" {
print(i.offset + 1, i.element)
}
if i.element == "N" {
print(i.offset + 1, i.element)
}
if i.element == "T" {
print(i.offset + 1, i.element)
@juliofruta
juliofruta / Risk management macro.vs
Created May 5, 2018 18:01
A macro that helps you build repeated lists of fields
Sub Macro()
'
' Macro Macro
' Para usar: 1. Cambia el nombre de la página a Input. 2. Selecciona las filas que quieres transformar. 3. Selecciona los campos que quieres mostrar
'
' Acceso directo: CTRL+m
Dim filasATransformar As Range
Set filasATransformar = Application.InputBox("Selecciona un rango de filas a transformar", Type:=8)
Dim columnasAUtilizar As Range
@juliofruta
juliofruta / test-web-scraping.txt
Created September 13, 2020 18:10
Gist to test a web scraping tool
Julio Fruta
juliofruta
@juliofruta
juliofruta / macro.vbs
Last active January 16, 2021 06:17
Macro
Dim PreviousValue
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
PreviousValue = Target.Value
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Value <> PreviousValue Then
{
"message": "🧍🏽‍♂️"
}
enum Parenthesis: String {
case open = "("
case closed = ")"
}
indirect enum Tree {
case character(value: Parenthesis, next: Tree?)
var description: String {
switch self {