I hereby claim:
- I am lucasreta on github.
- I am lucasreta (https://keybase.io/lucasreta) on keybase.
- I have a public key ASB2z5Fqm4RTUFrKQ-8WCBtqDGPQ5QM9Nqu0cRGToMX-cQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// #AwsomEntrepriseCouding version 1.0 | |
// mi clase de tiempo | |
bisi = (ano) => ano%400 == 0 || (ano%4 == 0 && ano%100 != 0) | |
messi = [null,31,28,31,30,31,30,31,31,30,31,30,31] | |
validate = (ano, mes, dia) => dia > 0 && ((mes == 2 && bisi(ano) && messi[mes]+1 >= dia) || ((!bisi(ano) || mes != 2) && messi[mes] >= dia)) | |
class fecha {#ano;#mes;#dia; constructor(ano, mes, dia) { if (validate(ano,mes,dia)) {this.#ano=ano; this.#mes=mes; this.#dia=dia;} else {throw new Error('fecha invalida mostro')}} getdia(){return this.#dia} getmes(){return this.#mes} getano(){return this.#ano}} |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta content="width=device-width, initial-scale=1.0" name="viewport"> | |
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.css" rel="stylesheet" /> | |
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.css" rel="stylesheet" /> | |
<link href="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.css" rel="stylesheet" type="text/css"> | |
<title>Portfolio Review Overview</title> |
Small gist to try and help answer a question in Stack Overflow.
Download the contents of the gist into a folder, open the terminal and navigate to said folder. Once inside the directory, run:
npx serve
This should start a local server in which the small Hello World application can be viewed.
Small gist for a Stack Overflow question about simple PHP login flow.
users.sql
mysqli()
for your own (both in signup.php
and login.php
)php -S 0.0.0.0:8888
#include "headers/config.h" | |
#include "headers/custom_string.h" | |
void compute (int neighbors[BOARD_HEIGHT][BOARD_WIDTH], int board[BOARD_HEIGHT][BOARD_WIDTH]); | |
void randomize (int board[BOARD_HEIGHT][BOARD_WIDTH]); | |
void clear () { printf ("\033[H\033[J"); } | |
void show (int board[BOARD_HEIGHT][BOARD_WIDTH]); |
#!/bin/bash | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | |
cd $DIR | |
./cligol/cligol | |
weekday=`date +"%w"` | |
today=`date +%Y-%m-%d` |
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
# Don't add passphrase | |
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
cat jwtRS256.key | |
cat jwtRS256.key.pub |
const useHash = true; | |
const apiUrl = 'https://lucasreta.com/stack-overflow/spa-vanilla-js/api'; | |
const routes = ['section-1', 'section-2']; | |
const content_box = document.getElementById("content_box"); | |
function get(page) { | |
const xhr = new XMLHttpRequest(); | |
xhr.onreadystatechange = function() { | |
if (this.readyState == 4 && this.status == 200) { | |
data = JSON.parse(xhr.responseText); |
* { | |
font-family: sans-serif; | |
} | |
body { | |
background-color: #eee; | |
} | |
header, main { | |
background-color: #fff; | |
border: 1px solid #ababab; | |
box-shadow: 1px 1px 0 rgba(0,0,0,.2); |