Skip to content

Instantly share code, notes, and snippets.

View da411d's full-sized avatar
💻
Freelancer

Manzhula David da411d

💻
Freelancer
View GitHub Profile
@dalgard
dalgard / extendDeep.js
Created April 26, 2014 15:24
Method for deep (recursive) extension of a given object with the properties of passed-in object(s) with support for standards-compliant getters and setters
function extendDeep(target) {
// Run through rest parameters
Array.prototype.slice.call(arguments, 1).forEach(function (source) {
if (typeof target === "object") {
if (typeof source === "object") {
// If source is an array, only copy enumerable properties
var keys = (Array.isArray(source) ? Object.keys(source) : Object.getOwnPropertyNames(source));
// Iterate over keys
keys.forEach(function (key) {
@renatolfc
renatolfc / android-client.ovpn
Created December 28, 2014 18:59
A sample OpenVPN client configuration file in the unified format
client
dev tun
remote example.com
resolv-retry infinite
nobind
persist-key
persist-tun
ca [inline]
cert [inline]
key [inline]
@tkon99
tkon99 / name.js
Last active June 27, 2025 00:12
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) {
@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);
@da411d
da411d / GLITCH
Created November 1, 2015 13:33
Glitch css/html effect
<span class="h1 glitch" data-text="Blast.ORQ">Blast.ORQ</span>
@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 {
@luruke
luruke / smashingmagazine.js
Last active June 19, 2025 11:33
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]) {
@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 = "";
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;
@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, но ключей к решению не нашли.