Skip to content

Instantly share code, notes, and snippets.

View jok3rcito0's full-sized avatar
:electron:
Let's learn a new trick!

Juan Herrera jok3rcito0

:electron:
Let's learn a new trick!
View GitHub Profile
@jok3rcito0
jok3rcito0 / no_duplicated.py
Created May 26, 2023 20:32
Remove duplicated Items
my_list = []
def remove_duplicates(lista):
no_repeat_list = list(set(lista))
return no_repeat_list
def save_to_file(lista, filename):
with open(filename, 'w') as file:
for element in lista:
file.write(str(element) + '\n')
@jok3rcito0
jok3rcito0 / getNamesGdrive.gs
Created December 1, 2021 19:51
Get file names from gdrive and save file names on gsheet
function myFunction() {
var foldername = 'fotosh';
var folderlisting = 'listing of folder ' + foldername;
var folders = DriveApp.getFoldersByName('fotosh');
while (folders.hasNext()) {
var folder = folders.next();
var contents = folder.getFiles();
var ss = SpreadsheetApp.create(folderlisting);
<form class="formJob" id="formRegistroBT" method="POST" autocomplete="off" data-type="form1">
<!-- Step I -->
<fieldset>
<ul class="form-list">
<li class="full foto">
<div class="borde"></div>
<div class="box-foto">
<div class="foto-user">
<img class="lazy" id="fotoPerfil" src="assets/images/bolsa-de-trabajo/avatar.png" data-src="assets/images/bolsa-de-trabajo/avatar.png" alt="[[+username]]">
</div>
@jok3rcito0
jok3rcito0 / draft.yaml
Created June 4, 2020 00:08
Blueprint Test
models:
Article:
title: string
slug: string unique
content: longtext
category_id: id
user_id: id
Category:
name: string
slug: string unique