sudo apt update
sudo apt full-upgrade
sudo du -a / 2>/dev/null | sort -n -r | head -n 20
sudo apt clean
uname -r
| https://stackblitz.com/edit/vitejs-vite-7jecmd?file=vite.config.ts |
| import { useState, useEffect, RefObject, useCallback } from "react"; | |
| function isElementInViewport(el: Element) { | |
| var rect = el.getBoundingClientRect(); | |
| return ( | |
| rect.bottom >= 0 && | |
| rect.right >= 0 && | |
| rect.top <= (window.innerHeight || document.documentElement.clientHeight) && | |
| rect.left <= (window.innerWidth || document.documentElement.clientWidth) |
| <!doctype html> | |
| <style> | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| font-size: 16px; | |
| } | |
| .hejsan { | |
| position:relative; | |
| } |
| function scrollTo(targetPosition: number, scrollDistance: number, duration: number, easing: Function) { | |
| let time = 0; | |
| const minTime = 0; | |
| const diff = Math.max(Math.min(scrollDistance, 100), -100); | |
| if (diff === 0) { | |
| return; | |
| } | |
| for (let i = 0, len = Math.abs(diff); i <= len; i++) { |
| <?php | |
| require_once("connection.php"); | |
| $data = urldecode($_POST['data']); | |
| $data = explode("|", $data); | |
| $arr = array(); | |
| $alert = array(); | |
| foreach ($data AS $v) { | |
| $a = explode("=", $v); | |
| if (is_numeric($a[1])) { |
| function RactiveExtendTypeScriptClass(tsClass: any): RactiveStatic { | |
| var instance = new tsClass(); | |
| var r = {}; | |
| for (var key in instance) { | |
| r[key] = instance[key]; | |
| } | |
| return Ractive.extend(r); | |
| } | |
| interface RactiveComponentPlugins { |
| /*! CSS.supports() Polyfill | |
| * https://gist.github.com/codler/03a0995195aa2859465f | |
| * Copyright (c) 2014 Han Lin Yap http://yap.nu; MIT license */ | |
| if (!('CSS' in window)) { | |
| window.CSS = {}; | |
| } | |
| if (!('supports' in window.CSS)) { | |
| window.CSS._cacheSupports = {}; | |
| window.CSS.supports = function(propertyName, value) { |
| /*! Prefix flex for IE10 and Safari / iOS in LESS | |
| * https://gist.github.com/codler/2148ba4ff096a19f08ea | |
| * Copyright (c) 2014 Han Lin Yap http://yap.nu; MIT license */ | |
| .display(@value) when (@value = flex) { | |
| display: -ms-flexbox; // IE10 | |
| display: -webkit-flex; // Safari / iOS | |
| } | |
| .display(@value) when (@value = inline-flex) { |