Skip to content

Instantly share code, notes, and snippets.

@joseluisq
joseluisq / Debugging.md
Last active September 3, 2023 16:54
A simple NodeJS App debugging example in VS Code using Nodemon.

NodeJS debugging in VS Code with Nodemon

A simple NodeJS App debugging example in VS Code using Nodemon.

Note: Feel free to customize .vscode/launch.json and ./nodemon.json files.

Install

yarn add nodemon --dev
@gregoryvit
gregoryvit / WebViewBasedPlayground.swift
Last active September 28, 2023 18:03
WebView based Swift playground
//: Playground - noun: a place where people can play
import UIKit
import PlaygroundSupport
class ViewController:UIViewController{
lazy var webView: UIWebView = UIWebView(frame: self.view.bounds)
override func viewDidLoad() {
@Cshion
Cshion / reniec.js
Created September 25, 2016 21:51
Reniec scraper.
"use strict";
const request = require("request");
const dv = require("dv");
const async = require("async");
const fs = require("fs");
const cheerio = require("cheerio");
const CAPTCHA_URL = "https://cel.reniec.gob.pe/valreg/codigo.do";
const DATA_URL = "https://cel.reniec.gob.pe/valreg/valreg.do";
@alfchee
alfchee / NumeroALetras.js
Last active September 3, 2024 15:30
Código en JavaScript que convierte números a letras, bastante útil para formularios de documentos contables y similares
/*************************************************************/
// NumeroALetras
// The MIT License (MIT)
//
// Copyright (c) 2015 Luis Alfredo Chee
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights