Skip to content

Instantly share code, notes, and snippets.

View Angelmmiguel's full-sized avatar

Ángel M Angelmmiguel

View GitHub Profile
[
{
"backcolor": "#ffe6e6",
"name": "Angel Keyboard",
"author": "https://github.com/Angelmmiguel",
"notes": "forked from sam96",
"switchMount": "cherry",
"switchBrand": "gateron",
"switchType": "KS-3-Yellow",
"plate": false,
@Angelmmiguel
Angelmmiguel / package.json
Created April 21, 2023 20:31
Ejemplo de package.json que lanza jest
{
"name": "practica-final",
"version": "1.0.0",
"description": "Plantilla para la practica final del curso de React de TrainingIT",
"main": "index.js",
"scripts": {
"start": "concurrently npm:client npm:server",
"client": "webpack serve --mode development --config ./client/webpack.config.js",
"server": "nodemon -w server server/index.js",
"test": "jest"
@Angelmmiguel
Angelmmiguel / ConnectionData.js
Created April 21, 2023 20:09
Ejemplo de uso de selectores en Redux
import Modal from "./Modal";
import { useState } from "react";
import { useSelector } from "react-redux";
import { getUser, getTime } from "../selectors/connection"
import store from "../store";
const ConnectionData = () => {
const [showModal, setShowModal] = useState(false);
// Es necesario utilizar el hook useSelector para acceder al
@Angelmmiguel
Angelmmiguel / Registry.js
Created April 4, 2023 17:09
Practica Curso React
import { useState, useContext, useEffect } from "react"
import { DEFAULT_STATE } from "../constants/form";
import "../styles/Form.css";
import useApi from "../hooks/useApi";
import Token from "../contexts/token";
const Register = () => {
const token = useContext(Token);
console.log("en Register");
const [formState, setFormState] = useState(DEFAULT_STATE);
@Angelmmiguel
Angelmmiguel / index.toml
Created March 15, 2023 16:12
New python and ruby polyfills
version = 1
[[runtimes]]
name = "ruby"
version = "3.2.0+20230215-1"
tags = [ "latest", "3.2", "3.2.0" ]
status = "active"
args = [ "--", "/src/index.rb" ]
binary = { url = "https://github.com/vmware-labs/webassembly-language-runtimes/releases/download/ruby%2F3.2.0%2B20230215-1349da9/ruby-3.2.0.wasm", filename = "ruby.wasm", checksum = { type = "sha256", value = "abe348fba157a756f86194be445c77c99e8ed64ca76495ea07ed984f09eb66ae" } }
extensions = [ "rb" ]
@Angelmmiguel
Angelmmiguel / index.toml
Last active February 20, 2023 10:20
Index test for wws
version = 1
[[runtimes]]
name = "ruby"
version = "3.2.0+20230215"
tags = [ "latest", "3.2", "3.2.0" ]
status = "active"
args = [ "--", "/src/index.rb" ]
binary = { url = "https://github.com/vmware-labs/webassembly-language-runtimes/releases/download/ruby%2F3.2.0%2B20230215-1349da9/ruby-3.2.0.wasm", filename = "ruby.wasm", checksum = { type = "sha256", value = "abe348fba157a756f86194be445c77c99e8ed64ca76495ea07ed984f09eb66ae" } }
extensions = [ "rb" ]
google-chrome \
--headless \
--disable-gpu \
--no-sandbox \
--enable-features=NetworkService,NetworkServiceInProcess \
--window-size=1200,860 \
--blink-settings=imagesEnabled=false \
--screenshot \
https://google.com
@Angelmmiguel
Angelmmiguel / keybase.md
Created January 29, 2018 13:46
keybase.md

Keybase proof

I hereby claim:

  • I am angelmmiguel on github.
  • I am angelmm (https://keybase.io/angelmm) on keybase.
  • I have a public key ASBDRTwpGRe0QmZVqHN_1gV4nI0xMhhPNTMBhG2DX0kgYQo

To claim this, I am signing this object:

@Angelmmiguel
Angelmmiguel / nginx-site.conf
Last active August 29, 2015 14:19
Stop SPAM Referrers on NGINX and Google Analytics
server {
# ...
location / {
# ...
# Stop SPAM Referrers
if ($http_referer ~* (Free-Traffic|babes|click|diamond|forsale|girl|jewelry|love|nudit|poker|porn|poweroversoftware|sex|teen|video|webcam|zippo|social-buttons|simple-share-buttons|free-share-buttons)){
return 403;
}