Skip to content

Instantly share code, notes, and snippets.

@zackpyle
zackpyle / fluid-typography.css
Last active May 1, 2024 20:04
Fluid Typography
:root {
--ff-heading: 'Playfair Display', serif;
--ff-text: 'Source Sans Pro', sans-serif;
--fs-h1: clamp(40px, 6.0vw + 10px, 85px);
--fs-h2: clamp(30px, 1.7vw + 23px, 45px);
--fs-h3: clamp(25px, 1.3vw + 18px, 35px);
--fs-h4: clamp(20px, 1vw + 15px, 28px);
--fs-h5: clamp(16px, 0.9vw + 12px, 22px);
@MartinEesmaa
MartinEesmaa / youtube_formats.md
Last active May 1, 2024 20:04 — forked from AgentOak/youtube_formats.md
Youtube Format IDs

Note: This is all almost full YouTube ID informations. Original owner goes to AgentOak, modified version by Martin Eesmaa.

See the credits and also special thanks in below.

Last updated: April 2024

Also known as itag or format codes and way back they could be specified with the fmt parameter (e.g. &fmt=22). Depending on the age and/or popularity of the video, not all formats will be available.

DASH video

@marciojg
marciojg / Guia rápido de instalação do WSL2 + Docker.md
Last active May 1, 2024 20:03 — forked from argentinaluiz/Guia rápido de instalação do WSL2 + Docker.md
Startup DEV WINDOWS/LINUX - Guia rápido de instalação do WSL2 + Docker

Startup DEV WINDOWS/LINUX - Guia rápido de instalação do WSL2 + Docker

INSTRUCÃO OFICIAL: https://docs.microsoft.com/pt-br/windows/wsl/install-win10

Em 2016, a Microsoft anunciou a possibilidade de rodar o Linux dentro do Windows 10 como um subsistema e o nome a isto foi dado de WSL ou Windows Subsystem for Linux.

O acesso ao sistema de arquivos no Windows 10 pelo Linux era simples e rápido, porém não tinhamos uma execução completa do kernel do Linux e outros artefatos nativos e isto impossibilitava a execução de várias tarefas no Linux, uma delas é o Docker.

Em 2019, a Microsoft anunciou o WSL2, com uma dinâmica aprimorada em relação a 1ª versão:

@Kris-CDA
Kris-CDA / moment-js-to-native.md
Last active May 1, 2024 20:03
You don't (may not) need Moment.js

You don't (may not) need Lodash/Underscore

Avoid use lodash functions if native ES6 alternative exists

Quick Links

Array

  1. _.chunk
  2. _.compact
  3. _.concat
@miiGit
miiGit / background.js
Created January 30, 2017 20:42
Chrome Web App Window State
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('window.html', {
id: "mainwin",
innerBounds: {
width: 700,
height: 600
}
});
});
@meganetaaan
meganetaaan / gist:d76d1dbf35ed5ca27a9f
Created March 4, 2016 07:57
20160304_PtlSampleTest.log
2016-03-04 15:19:46,530 [main] DEBUG com.htmlhifive.pitalium.core.config.PtlTestConfig - System startup arguments: {}
2016-03-04 15:19:46,596 [main] DEBUG com.htmlhifive.pitalium.core.config.PtlTestConfig - [Load config] (EnvironmentConfig):
{"execMode":"TAKE_SCREENSHOT","hubHost":"localhost","hubPort":4444,"maxThreadCount":16,"maxThreadExecuteTime":3600,"maxDriverWait":30,"capabilitiesFilePath":"201
50915_capabilities.json","persister":"com.htmlhifive.pitalium.core.io.FilePersister","webDriverSessionLevel":"TEST_CASE","debug":false}
2016-03-04 15:19:46,613 [main] DEBUG com.htmlhifive.pitalium.core.selenium.PtlCapabilities - Capabilities loaded. (size: 3)
2016-03-04 15:19:46,636 [main] INFO com.htmlhifive.pitalium.core.rules.ResultCollector - [TestClass start] (class: com.htmlhifive.pitalium.sample.PtlSampleTest)
2016-03-04 15:19:46,645 [main] DEBUG com.htmlhifive.pitalium.core.config.PtlTestConfig - [Load config] (PersisterConfig): {"file":
@Pulimet
Pulimet / AdbCommands
Last active May 1, 2024 20:00
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader