Skip to content

Instantly share code, notes, and snippets.

View blubbll's full-sized avatar
🔷

B͈̤̖̪̪̱ͅl̯̯̮̼͎̬͚̳̩̖̲u̜̼͉͈̠b͙̬̘̙̱̗̲͙b͍̞̬̬͓̼l̰̪͖̯̼̟̟͈̖͕̜̱̜ͅl̻̗͔̝̭̰͚͇̯̥ blubbll

🔷
View GitHub Profile
@blubbll
blubbll / gist:8b95fb0be2248d435f00f9961ba39ca4
Last active September 24, 2018 14:07
validboxes fix for bs4.1.3
.custom-control-input.is-invalid ~ .invalid-feedback, .custom-control-input.is-invalid ~ .invalid-tooltip, .custom-control-input.is-valid ~ .valid-feedback, .custom-control-input.is-valid ~ .valid-tooltip, .custom-file-input.is-invalid ~ .invalid-feedback, .custom-file-input.is-invalid ~ .invalid-tooltip, .custom-file-input.is-valid ~ .valid-feedback, .custom-file-input.is-valid ~ .valid-tooltip, .custom-select.is-invalid ~ .invalid-feedback, .custom-select.is-invalid ~ .invalid-tooltip, .custom-select.is-valid ~ .valid-feedback, .custom-select.is-valid ~ .valid-tooltip, .form-check-input.is-invalid ~ .invalid-feedback, .form-check-input.is-invalid ~ .invalid-tooltip, .form-check-input.is-valid ~ .valid-feedback, .form-check-input.is-valid ~ .valid-tooltip, .form-control-file.is-invalid ~ .invalid-feedback, .form-control-file.is-invalid ~ .invalid-tooltip, .form-control-file.is-valid ~ .valid-feedback, .form-control-file.is-valid ~ .valid-tooltip, .form-control.is-invalid ~ .invalid-feedback, .form-control.is
@blubbll
blubbll / $:reallyvisible.js
Created September 26, 2018 06:46
//jQuery-Filter reallyvisible
jQuery.expr.pseudos.reallyvisible = function (elem) {
if (!(elem instanceof Element)) throw Error('DomUtil: elem is not an element.');
var style = getComputedStyle(elem);
if (style.display === 'none') return false;
if (style.visibility !== 'visible') return false;
if (style.opacity < 0.1) return false;
if (elem.offsetWidth + elem.offsetHeight + elem.getBoundingClientRect().height + elem.getBoundingClientRect().width === 0) {
return false;
}
var elemCenter = {
Drop in replace functions for setTimeout() & setInterval() that
make use of requestAnimationFrame() for performance where available
http://www.joelambert.co.uk
Copyright 2011, Joe Lambert.
Free to use under the MIT license.
http://www.opensource.org/licenses/mit-license.php
@blubbll
blubbll / manifest-options.md
Created October 13, 2018 13:53 — forked from marcoscaceres/manifest-options.md
In-lining manifests.

Conclusions

updated on 19th of December

Thanks everyone who participated in the discussion! It was tremendously userful

So, what we are going to do initially is only support:

<link rel="manifest" href="...some URL...">
@blubbll
blubbll / mubert.streams
Last active December 9, 2018 17:40
Mubert streams ^w^ (incomple, check new json)
#Breakbeat, (raw, mechanical) <3
http://95.216.29.27:8111/mubert-active-02
#Breakbeat (chilled)
http://95.216.29.27:8111/mubert-work-03
#Breakbeat (slow, mechanical)
http://95.216.29.27:8111/mubert-work-01
#Breakbeat (chilled, mechanical)
http://95.216.29.27:8111/mubert-work-02
#Breakbeat (chilled, more active)
http://95.216.29.27:8111/mubert-work-06
@blubbll
blubbll / mubert.json
Created October 17, 2018 12:09
mubert streams (json)
{
"method": "GetAppStreams",
"data": [{
"name": "actions",
"items": [{
"name": "study",
"icon_link": "https:\/\/pro.mubert.com\/data3\/aaa\/study3x.png",
"streams": ["http:\/\/95.216.29.27:8111\/mubert-study-01", "http:\/\/95.216.29.27:8111\/mubert-study-02", "http:\/\/95.216.29.27:8111\/mubert-study-03", "http:\/\/95.216.29.27:8111\/mubert-study-04", "http:\/\/95.216.29.27:8111\/mubert-study-05", "http:\/\/95.216.29.27:8111\/mubert-study-06", "http:\/\/95.216.29.27:8111\/mubert-study-07", "http:\/\/95.216.29.27:8111\/mubert-study-08", "http:\/\/95.216.29.27:8111\/mubert-study-09", "http:\/\/95.216.29.27:8111\/mubert-study-10"]
}, {
"name": "work",
@blubbll
blubbll / checkEs6.js
Last active January 30, 2019 02:42
Is the JavaScript Browser evrsion es6?
/**!checkes6 by Blubbll*/
var es6=
void 0!==Array.from&&
void 0!==Array.of&&
void 0!==Math.acosh&&
void 0!==Math.hypot&&
void 0!==Math.imul&&
void 0!==Number.isInteger&&
void 0!==Number.isNaN&&
void 0!==Number.EPSILON&&
@blubbll
blubbll / jq.js
Last active October 21, 2018 03:49
jQuery addAttr / has Attr
//jQuery extenden
jQuery.fn.extend({
addAttr: function(arg) {
$(this).is("[" + arg + "]") || $(this).attr(arg, "");
return this;
},
hasAttr: function(arg) {
return ($(this).is('[' + arg + ']'));
}
});
//String ReplaceAll
String.prototype.replaceAll = function(search, replacement) {
var target = this;
return target.split(search).join(replacement);
};
/** custom antiautocomplete by Blubbll **/
var antiAuto = function(){
return 'antiauto_'+(+new Date())
};