Skip to content

Instantly share code, notes, and snippets.

View row-d's full-sized avatar
🎯
Focusing

David Gomez row-d

🎯
Focusing
  • Chile
  • 02:40 (UTC -03:00)
View GitHub Profile
@row-d
row-d / readme.md
Last active March 12, 2025 18:26
Remove Microsoft edge
  1. Ejecutar en powershell Set-ExecutionPolicy Unrestricted -Scope Process
  2. Descargar removeedge.ps1
  3. Ejecutar el script ./removeedge.ps1
  4. Ejecutar en powershell Set-ExecutionPolicy Restricted -Scope Process
@row-d
row-d / index.html
Created March 7, 2025 01:14
Ejemplo remark.js con fuente local
<!DOCTYPE html>
<html>
<head>
<title>Title</title>
<meta charset="utf-8">
<style>
@font-face {
font-family: 'IBM Plex Sans';
src: url('IBM_Plex_Sans/IBMPlexSans-VariableFont_wdth\,wght.ttf') format('truetype');
@row-d
row-d / script.js
Created January 4, 2025 05:35
Ramos con DataTables
// ==UserScript==
// @name Ramos con DataTables
// @namespace http://tampermonkey.net/
// @version 2024-12-09
// @description try to take over the world!
// @author You
// @match https://intranet7.ucsc.cl/aplicaciones/dyssae/dara/solicitud_inscripcion/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=ucsc.cl
// @require https://code.jquery.com/jquery-3.7.1.min.js
// @require https://cdn.datatables.net/2.1.8/js/dataTables.min.js
@row-d
row-d / README.md
Last active September 10, 2025 14:38
Import UCSC Calendar to .ics file

Importar calendario de la UCSC en un calendario moderno.

Hice este script porque el sistema de notificaciones de la aplicacion movil está mal hecha, y un calendario que hace bien esta tarea son Google Calendar, Outlook o cualquier otro calendario. La otra razon es porque puedes organizar mejor tu horario agregando otros eventos aparte de las clases, y asi teniendo una mejor vision de lo que vas hacer durante el dia.

Instrucciones

  1. Descargar Tampermonkey
  2. Ir a https://portal.ucsc.cl/alumno#/horario
  3. Hacer click en la extension y seleccionar la opcion 'Create a new script...'
  4. Pegar el contenido del archivo script.js y guardar (Ctrl + s)
  5. Recargar la pagina
@row-d
row-d / ListStack.hpp
Last active May 4, 2024 00:43
ListStack con templates
#ifndef LISTSTACK_HPP
#define LISTSTACK_HPP
#include "StackADT.hpp"
#include "Node.hpp"
template <typename T>
class ListStack : public StackADT<T>
{
public:
@row-d
row-d / OSExtension.ts
Created May 18, 2023 00:16
Compile and Run Code from Node.js
import os from "node:os";
export const OSExtension = os.platform() === "win32" ? ".exe" : "";
@row-d
row-d / linkedlist.js
Created March 31, 2023 00:30
LinkedList with function generators
class Node {
constructor(value) {
this.value = value
this.next = null
}
add(value) {
this.next = new Node(value)
return this.next
}
@row-d
row-d / functional.cpp
Created December 4, 2022 02:06
forEach and map functional behavior in c++
#include <iostream>
#include <vector>
#include <algorithm>
template <typename T>
void print(const T t)
{
std::cout << t << std::endl;
}
@row-d
row-d / client.js
Last active September 20, 2022 00:46
const axios = require("axios");
const got = require("got");
const port = 8080;
const url = `http://localhost:${port}`;
const randomNumber = (min, max) =>
Math.floor(Math.random() * (max - min)) + min;
setInterval(() => {
axios.post(url + "/ingreso", {
@row-d
row-d / sendemail.js
Last active August 23, 2022 00:17
send email with nodemailer & yargs
const { createTransport } = require("nodemailer");
const yargs = require("yargs");
function cli(argv = process.argv) {
return yargs(argv.slice(2))
.options({
mail: {
alias: "m",
demandOption: true,
type: "string",