Skip to content

Instantly share code, notes, and snippets.

View adrianjguerrero's full-sized avatar
😎

Adrián Guerrero adrianjguerrero

😎
View GitHub Profile
@tkadlec
tkadlec / perf-diagnostics.css
Last active June 8, 2023 17:47
CSS used to highlight potential performance issues
:root {
--violation-color: red; /* used for clear issues */
--warning-color: orange; /* used for potential issues we should look into */
}
/* IMAGES */
/*
* Lazy-Loaded Images Check
* ====
@jlbousing
jlbousing / gist:ee87f51f79fb16d0edcfef99f8dcb33a
Created September 15, 2019 23:34
httaccess para vue-router
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>
@dagalti
dagalti / vue-material-swipe-tabs-with-animation.html
Last active June 11, 2024 14:37
Vuejs Material design tabs with swipe, transitions effects without using extra libraries.
<!---
1. Set Tabwidth in data
2. Tabs are swipeable
3. Scrollable tabs
4. No external libraries used expcept vuejs
5. Using vuejs transition for animation
Demo : https://dagalti.github.io/vue-tabs.html
Codepen : https://codepen.io/dagalti/pen/pYKXQW
-->
def multiply(*numbers):
total = 1
for number in numbers:
total *= number
return total
print("start")
print(multiply(1, 2, 3))
print("finish")
@majido
majido / scroll-snap-status.md
Last active November 19, 2019 01:03
Scroll Snap Status & History

A brief history of scroll snapping specification and releases by various browsers.

Summary

As of August 2018: Edge (IE) and Firefox ship the old deprecated spec, Safari and Chrome (starting from v69) ship the current CR spec.

Additional Details

|Date | Status | Specification | Model | Browsers | Features | Notes | Link|

@jaysn
jaysn / Udongein.html
Created April 9, 2017 11:37
Reisen Udongein html table
<html>
<body bgcolor=000000>
<table boder=0 cellpadding=0 cellspacing=0>
<tr height=3>
<td width=3 bgcolor=888888 rowspan=105></td>
<td bgcolor=888888 colspan=54></td>
<td width=3 bgcolor=888888 rowspan=105></td>
</tr>
@juanlopezdev
juanlopezdev / INSTAGRAM_get_token_user.md
Last active May 29, 2020 11:18
Obtener el token de un usuario de instagram

Para obtener el client ID primero debemos registrarnos como desarrollador(https://www.instagram.com/developer/) y crear una aplicación(Manage Clients)

Ejecutar en el navegador lo siguiente:

https://api.instagram.com/oauth/authorize/?client_id=CLIENT-ID&redirect_uri=REDIRECT-URI&response_type=code

Nos redigira a una dirección con el código, abrimo el terminal y ejecutamos el CURL:

@rveitch
rveitch / sass-7-1-pattern.scss
Last active June 24, 2024 12:21
Sass 7-1 Pattern
sass/
|
|– base/
| |– _reset.scss # Reset/normalize
| |– _typography.scss # Typography rules
| ... # Etc…
|
|– components/
| |– _buttons.scss # Buttons
| |– _carousel.scss # Carousel
@nicovanzyl
nicovanzyl / NaN-batman.js
Last active December 3, 2019 13:43
na na na na na na na na na na na na na na na na Batman! https://www.youtube.com/watch?v=EtoMN_xi-AM
Array(16).join('wat' - 1) + ' Batman!';