Skip to content

Instantly share code, notes, and snippets.

View Bigismall's full-sized avatar
🚂

Slawomir Rodak Bigismall

🚂
View GitHub Profile
@Bigismall
Bigismall / svg-html-iframe.svg
Last active March 21, 2021 16:50 — forked from tarwin/svg-html-iframe.svg
SVG: Embedding HTML (and an IFrame)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Bigismall
Bigismall / README.md
Created January 12, 2021 16:50 — forked from aponxi/README.md
Simple chat script php

Very simple jQuery AJAX PHP chat

jQuery is a fast, concise, JavaScript Library that simplifies how you traverse HTML documents, handle events, perform animations, and add Ajax interactions to your web pages. jQuery is designed to change the way that you write JavaScript.

In other words it makes everything really simple. For this example you will need this file.

chat.sql

First step is creating a database.

@Bigismall
Bigismall / array-destruct.js
Last active December 15, 2020 08:59
Get first and last element of array with object destructing
const { length, [0]:first, [length - 1]: last } = ['a','b','c','d','e','f']
console.log({length,first,last})
@Bigismall
Bigismall / easings.css
Created July 21, 2020 15:19 — forked from argyleink/easings.css
Handy CSS properties for easing functions
:root {
--ease-in-quad: cubic-bezier(0.55, 0.085, 0.68, 0.53);
--ease-in-cubic: cubic-bezier(0.55, 0.055, 0.675, 0.19);
--ease-in-quart: cubic-bezier(0.895, 0.03, 0.685, 0.22);
--ease-in-quint: cubic-bezier(0.755, 0.05, 0.855, 0.06);
--ease-in-expo: cubic-bezier(0.95, 0.05, 0.795, 0.035);
--ease-in-circ: cubic-bezier(0.6, 0.04, 0.98, 0.335);
--ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
--ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);
--ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
@Bigismall
Bigismall / google-font.html
Created May 30, 2020 08:41
The most effective way to load google fonts - based on: https://csswizardry.com/2020/05/the-fastest-google-fonts/
<!--
- 1. Preemptively warm up the fonts’ origin.
-
- 2. Initiate a high-priority, asynchronous fetch for the CSS file. Works in
- most modern browsers.
-
- 3. Initiate a low-priority, asynchronous fetch that gets applied to the page
- only after it’s arrived. Works in all browsers with JavaScript enabled.
-
- 4. In the unlikely event that a visitor has intentionally disabled