Skip to content

Instantly share code, notes, and snippets.

View da411d's full-sized avatar
💻
Freelancer

Manzhula David da411d

💻
Freelancer
View GitHub Profile
@tid-kijyun
tid-kijyun / tally-counter.lua
Last active January 2, 2025 06:09
[OBS Script]Sets a text source to act as a tally counter when the source is active.
obs = obslua
source_name = ""
format_text = ""
start_number = 0
step_number = 0
now_count = 0
last_text = ""
activated = false
@da411d
da411d / script.js
Last active September 13, 2019 12:09
Скрипт для конвертування електронного квитка в файл Google-календаря (https://booking.uz.gov.ua/result/.../)
(() => {
HTMLDocument.prototype.qq = HTMLDocument.prototype.querySelector;
HTMLDocument.prototype.qqq = HTMLDocument.prototype.querySelectorAll;
HTMLElement.prototype.qq = HTMLElement.prototype.querySelector;
HTMLElement.prototype.qqq = HTMLElement.prototype.querySelectorAll;
function download(filename, text) {
var element = document.createElement('a');
element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text));
element.setAttribute('download', filename);
element.style.display = 'none';
@a-x-
a-x- / scroll-in-flex.md
Last active May 6, 2024 20:20
`overflow: scroll` in the `display: flex` 👿😳🤔🤯

Как поместить scroll-контейнер во flexbox и не облажаться.

overflow-flex-grid-hack

Столкнулись с проблемой: блок со скролом распепячивает flex. Давайте разбираться.

4 месяца назад показалось, что хак найден, о чём мы поспешили рассказать в твиттере, но потом стало ясно что таки поспешили.

Помотрели в спеку и mdn, но ключей к решению не нашли.

prompt("CTRL+C", "if(~~(new Date()/01540/10E5)>0x"+(~~(new Date()/01540/10E5)+(prompt("days", 7)-0)).toString(16)+")return;");
//if(~~(new Date()/01540/10E5)>0x6ce)return;
@da411d
da411d / Onori.js
Last active August 13, 2018 16:08
Onori
window.Onori = {
log: function(){
Onori.console.apply(console.log, arguments);
},
warn: function(){
Onori.console.apply(console.warn, arguments);
},
console: function(){
var arr = [];
var notifStr = "";
@luruke
luruke / smashingmagazine.js
Last active January 17, 2025 09:55
Source code of the demo "Improving User Flow Through Page Transitions" on Smashing Magazine.
/*
https://www.smashingmagazine.com/2016/07/improving-user-flow-through-page-transitions/
You can copy paste this code in your console on smashingmagazine.com
in order to have cross-fade transition when change page.
*/
var cache = {};
function loadPage(url) {
if (cache[url]) {
@soderlind
soderlind / class-google-maps-oembed-provider.php
Last active April 29, 2024 11:44
WordPress Google Maps oEmbed Provider using the Google Maps Embed API
<?php
/**
* Create a Google Maps oEmbed Provider using the Google Maps Embed API
*
* @see https://developers.google.com/maps/documentation/embed/
* @link https://gist.github.com/soderlind/db6dae8a73253329bc97ac50d7ebedef
* @since 1.0.0
* @package Google_Maps_oEmbed_Provider
*/
class DSS_oEmbed_Add_Provider {
@da411d
da411d / GLITCH
Created November 1, 2015 13:33
Glitch css/html effect
<span class="h1 glitch" data-text="Blast.ORQ">Blast.ORQ</span>
@Querela
Querela / colors.css
Last active April 17, 2025 08:11
[list][image][url] Google Docs Anonymous User Images
background-color: rgb(0, 163, 187);
background-color: rgb(161, 60, 180);
background-color: rgb(166, 50, 50);
background-color: rgb(241, 118, 167);
background-color: rgb(253, 87, 61);
background-color: rgb(255, 0, 122);
background-color: rgb(255, 0, 26);
background-color: rgb(27, 136, 122);
background-color: rgb(31, 161, 93);
background-color: rgb(93, 175, 221);
@tkon99
tkon99 / name.js
Last active September 16, 2024 20:38
Random Name Generator for Javascript
/*
(c) by Thomas Konings
Random Name Generator for Javascript
*/
function capFirst(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
}
function getRandomInt(min, max) {