Skip to content

Instantly share code, notes, and snippets.

@victor-homyakov
victor-homyakov / APIs affecting bfcache.md
Last active May 6, 2024 11:20
API, которые влияют на попадание страницы в bfcache
  • ✔︎ - не мешает попаданию страницы в bfcache
  • ✘ - запрещает попадание страницы в bfcache
  • пустая ячейка - влияние неизвестно
API Firefox Safari Chromium IE
Подписка на beforeunload
Подписка на unload
Незавершённые запросы XHR/fetch ✘ в планах прерывать запрос и вызывать onerror при восстановлении страницы
Незавершённые запросы за ресурсами ✘ кроме favicon
@guyjin
guyjin / JS-One-Liners
Last active May 6, 2024 11:18
JS One-liner collection
just a collection of js one-liners from around the web.
@rxaviers
rxaviers / gist:7360908
Last active May 6, 2024 11:18
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@wsh32
wsh32 / boards.txt
Created September 20, 2017 18:32
Arduino Board Tag reference for arduino-mk
uno.name=Arduino Uno
atmega328.name=Arduino Duemilanove w/ ATmega328
diecimila.name=Arduino Diecimila or Duemilanove w/ ATmega168
nano328.name=Arduino Nano w/ ATmega328
nano.name=Arduino Nano w/ ATmega168
mega2560.name=Arduino Mega 2560 or Mega ADK
mega.name=Arduino Mega (ATmega1280)
leonardo.name=Arduino Leonardo
esplora.name=Arduino Esplora
micro.name=Arduino Micro
@itslukej
itslukej / tunneling.md
Created September 16, 2023 01:12
Tunneling a whole process through wireguard

Tunneling a whole process through wireguard

Certain company blocking a certain hosting provider? No problem, just tunnel the process through a small VPS with wireguard.

Consider server A your blocked server and server B your VPS.

Step 1: Generate a keypair on server A and server B

Server A:

@bashenk
bashenk / AndroidDeviceEnrollmentQRCreation.md
Last active May 6, 2024 11:16
Creating a QR Code for Android Device Enrollment

If .DS_Store was never added to your git repository, simply add it to your .gitignore file.

If you don't have one, create a file called

.gitignore

In your the root directory of your app and simply write

@simenbrekken
simenbrekken / analytics.js
Created February 12, 2018 07:31
KISS analytics abstraction
const googleAnalytics = event => {
switch (event.type) {
default:
window.dataLayer.push(event)
}
}
const facebook = event => {
switch (event.type) {
case 'pageview':
@alexwilson
alexwilson / ga.js
Last active May 6, 2024 11:13
ga.js-style wrapper for compatibility with Google Tag Manager
(function() {
var _prefix = 'ga';
// Ensure we have a GTM Data Layer to push to.
window['dataLayer'] = window['dataLayer'] || {};
// Instead of overdeclaring _gaq, only attempt to polyfill if it doesn't already exist.
if (window['_gaq'] === 'undefined '|| typeof window['_gaq'] !== 'object') {
window['_gaq'] = {};
@EscApp2
EscApp2 / all_order_ajax.js
Last active May 6, 2024 11:12
datalayer google analitics example
BX.namespace('BX.Sale.OrderAjaxComponent');
(function() {
'use strict';
/**
* Show empty default property value to multiple properties without default values
*/
if (BX.Sale && BX.Sale.Input && BX.Sale.Input.Utils)
{