Skip to content

Instantly share code, notes, and snippets.

@luislobo14rap
luislobo14rap / atualizado.txt
Last active August 28, 2022 23:27
filegator-como-ftp-tutorial.txt
filegator\configuration.php
'adapter' => function () {
return new \League\Flysystem\Adapter\Local(
__DIR__.'/repository'
vira
'adapter' => function () {
return new \League\Flysystem\Adapter\Local(
@luislobo14rap
luislobo14rap / blur.css
Last active August 10, 2019 03:13
blur.css
.blur {
filter: blur(5px);
-webkit-filter: blur(5px);
-moz-filter: blur(5px);
-o-filter: blur(5px);
-ms-filter: blur(5px);
}
.no-blur {
filter: blur(0);
-webkit-filter: blur(0);
@luislobo14rap
luislobo14rap / youtube-pip.js
Created April 2, 2019 07:06
youtube-pip.js
setTimeout(function(){
const video = document.querySelector('video');
const buttonPIP = document.createElement('button');
document.body.appendChild(buttonPIP);
buttonPIP.innerText = 'PIP';
buttonPIP.setAttribute('style', 'position: fixed; bottom: 0; left: 0; z-index: 999999;');
button = buttonPIP;
if (!document.pictureInPictureEnabled) {
button.disabled = true;
@luislobo14rap
luislobo14rap / invertArray.js
Created February 4, 2019 04:50
invertArray.js
// invertArray.min.js v1
function invertArray(a){let b=[];for(let c=0;c<a.length;c++)b.unshift(a[c]);return b}
@luislobo14rap
luislobo14rap / HTML-client-side-url-redirect.html
Last active November 10, 2020 14:22
HTML-client-side-url-redirect.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>###TITLE###</title>
<!-- This code is licensed under GNU GPL v3 -->
<!-- You are allowed to freely copy, distribute and use this code, but removing author credit is strictly prohibited -->
<!-- Generated by http://insider.zone/tools/client-side-url-redirect-generator/ -->
@luislobo14rap
luislobo14rap / getGoogleLinks.js
Created December 29, 2018 14:55
getGoogleLinks.js
@luislobo14rap
luislobo14rap / percent.js
Created December 23, 2018 22:28
percent.js
// percent.js v1
function percent(x1, x2) {
return x1 * (x2 / 100);
};
@luislobo14rap
luislobo14rap / pega links da playlist do youtube.js
Created November 19, 2018 00:20
pega links da playlist do youtube.js
@luislobo14rap
luislobo14rap / jquery-not.txt
Created November 18, 2018 20:41
jquery-not.txt
http://youmightnotneedjs.com/
http://youmightnotneedjquery.com/
https://developer.telerik.com/content-types/tutorials/im-not-using-jquery/
https://css-tricks.com/now-ever-might-not-need-jquery/
https://hackernoon.com/you-truly-dont-need-jquery-5f2132b32dd1
https://www.sitepoint.com/dom-manipulation-vanilla-javascript-no-jquery/
https://www.catswhocode.com/blog/javascript-without-jquery-tips-and-practical-examples
https://github.com/nefe/You-Dont-Need-jQuery
https://blog.wearecolony.com/a-year-without-jquery/
@luislobo14rap
luislobo14rap / xor.js
Last active March 31, 2025 22:56
xor.ts
// xor.js v1
function XOR(a: unknown, b: unknown): boolean {
return (a && b) ? false : Boolean(a || b)
}