Skip to content

Instantly share code, notes, and snippets.

View puentejose's full-sized avatar
💭
🌟👽🌟

José Luis puentejose

💭
🌟👽🌟
View GitHub Profile
@puentejose
puentejose / .gitignore
Created February 24, 2023 01:54
.gitignore + java + intellij
# Created by https://www.toptal.com/developers/gitignore/api/java,intellij+all
# Edit at https://www.toptal.com/developers/gitignore?templates=java,intellij+all
### Intellij+all ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
@puentejose
puentejose / images.js
Created October 9, 2020 20:40
Script for grabbing images and make them responsive, change dimensions accordingly.
const IMAGES = document.querySelectorAll("img");
const SIZES = {
showcase: "100vw",
reason: "(max-width: 799px) 100vw, 372px",
feature: "(max-width: 799px) 100vw, 558px",
story: "(max-width: 799px) 100vw, 670px"
};
function makeSrcset(imgSrc) {
let markup = [];
@puentejose
puentejose / centerit.css
Created August 27, 2020 17:45
Center Everything on Everything
body {
/* ignore this */
font-family: helvetica, arial, sans-serif;
margin: 0;
}
html, body {
height:100%;
}
@puentejose
puentejose / doubleclickfix.ahk
Created August 9, 2020 00:29
AutoHotKey - Double Click Fix
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
*LButton::
If (A_PriorHotkey=A_ThisHotkey && A_TimeSincePriorHotkey < 10) ;hyperclick
Return
sendinput {Blind}{LButton down}
KeyWait, LButton
@puentejose
puentejose / Quiz 2
Created August 14, 2017 15:45 — forked from jorandradefig/Quiz 2
quiz2.md
1. Declara un array de objetos `animal` que tenga 5 propiedades (nombre, especie, número de extremidades, edad y nacionalidad) cada uno.
2. Después de creado el array, haz una función que añada a cada objeto del array una propiedad `gènero`.
@puentejose
puentejose / quiz1.md
Created August 11, 2017 19:00 — forked from jorandradefig/quiz1.md
Quiz 1
var member = {
  name: 'Julia',
  age: 28,
  hobbies: ['swimming','music'],
  address: { name: 'Chapultepec', number: 275, city: 'Mexico City' },
  childs: false
}

var member = {
@puentejose
puentejose / index.html
Created February 13, 2017 22:37
Portfolio
<head>
</head>
<body>
<nav class="fixed-nav-bar">
<ul>
<li><a href="#top">Top</a></li>
<li><a href="#portfolio">Portfolio</a></li>
<li><a href="#aboutme">About me</a></li>
<li><a href="#contact">Contact</a></li>
<li>JLu</li>