Skip to content

Instantly share code, notes, and snippets.

Vladimir Sobolev 350d

Block or report user

Report or block 350d

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@350d
350d / phpinfo.css
Created Mar 22, 2014
Styles for phpinfo();
View phpinfo.css
html {
background: #fff;
margin:0;
padding:0;
}
body {
color: #233452;
height: 100%;
font-family: Verdana, Helvetica, sans-serif;
margin: 20px 0;
@350d
350d / domready.js
Created Mar 19, 2014
Minimal DOM ready, IE tested
View domready.js
function r(f) {
/in/.test(document.readyState) ? setTimeout('r('+f+')',9) : f()
}
@350d
350d / cookie.js
Last active Feb 1, 2016
Simple library for Cookie manage
View cookie.js
View five.xml
<?xml version="1.0" ?><skin author="JW Player" name="Five" target="6.7" version="3.0">
<components>
<component name="controlbar">
<settings>
<setting name="margin" value="0"/>
<setting name="maxwidth" value="9999"/>
<setting name="fontsize" value="11"/>
<setting name="fontweight" value="normal"/>
View jwplayer.js
"undefined"==typeof jwplayer&&(jwplayer=function(e){if(jwplayer.api)return jwplayer.api.selectPlayer(e)},jwplayer.version="6.8.4616",jwplayer.vid=document.createElement("video"),jwplayer.audio=document.createElement("audio"),jwplayer.source=document.createElement("source"),function(e){function a(h){return function(){return b(h)}}function l(h,b,a,k,j){return function(){var d,f;if(j)a(h);else{try{if(d=h.responseXML)if(f=d.firstChild,d.lastChild&&"parsererror"===d.lastChild.nodeName){k&&k("Invalid XML");
return}}catch(g){}if(d&&f)return a(h);(d=c.parseXML(h.responseText))&&d.firstChild?(h=c.extend({},h,{responseXML:d}),a(h)):k&&k(h.responseText?"Invalid XML":b)}}}var g=document,f=window,d=navigator,c=e.utils=function(){};c.exists=function(h){switch(typeof h){case "string":return 0<h.length;case "object":return null!==h;case "undefined":return!1}return!0};c.styleDimension=function(h){return h+(0<h.toString().indexOf("%")?"":"px")};c.getAbsolutePath=function(h,b){c.exists(b)||(b=g.location.href);if(c.exists(h)){va
@350d
350d / windowstatus.js
Created Jan 31, 2014
Window Active Status
View windowstatus.js
function windowVisibility() {
var v = 'visible', hidden = h = 'hidden', map = {focus:v, focusin:v, pageshow:v, blur:h, focusout:h, pagehide:h};
if (hidden in D) D.addEventListener("visibilitychange", onchange);
else if ((hidden = "mozHidden") in D) D.addEventListener("mozvisibilitychange", onchange);
else if ((hidden = "webkitHidden") in D) D.addEventListener("webkitvisibilitychange", onchange);
else if ((hidden = "msHidden") in D) D.addEventListener("msvisibilitychange", onchange);
else if ('onfocusin' in D) D.onfocusin = D.onfocusout = onchange;
W.onpageshow = W.onpagehide = W.onfocus = W.onblur = onchange;
function onchange(e) {
e = e || W.event;
@350d
350d / functions.php
Created Oct 9, 2013
Disqus comment manager fix for Wordpress
View functions.php
function dsq_fix() {
echo '<style type="text/css">div.dsq-main {height:100%;min-height:100%;}</style>';
}
add_action('admin_head', 'dsq_fix');
@350d
350d / gaerror.js
Created Sep 20, 2013
Google Analytics Javascript errors tracking
View gaerror.js
$(window).error(function (error) {
if (error && error.originalEvent) {
error = error.originalEvent;
var message, url, line;
if (error && error.message) {
message = error.message;
url = getfilename(error.filename);
line = error.lineno;
} else {
message = "(message empty)";
@350d
350d / script.js
Created Mar 4, 2013
Photoshop Square Crop
View script.js
var savedRuler= app.preferences.rulerUnits;
app.preferences.rulerUnits = Units.PIXELS;
var w = app.activeDocument.width;
var h = app.activeDocument.height;
if(w>h) app.activeDocument.resizeCanvas (w, w, AnchorPosition.MIDDLECENTER);
if(w<h) app.activeDocument.resizeCanvas (h, h, AnchorPosition.MIDDLECENTER);
app.preferences.rulerUnits = savedRuler;
@350d
350d / Fullpage.html
Created Jun 19, 2012
A web page created at CodePen.io
View Fullpage.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Justified Menu / Block list &middot; CodePen</title>
<link rel="stylesheet" href="http://codepen.io/stylesheets/css/reset.css">
You can’t perform that action at this time.