This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
127.0.0.1 ads.youtube.com | |
127.0.0.1 s0.2mdn.net | |
127.0.0.1 s1.2mdn.net | |
127.0.0.1 googleads.g.doubleclick.net | |
127.0.0.1 pubads.g.doubleclick.net | |
127.0.0.1 ad.doubleclick.net | |
127.0.0.1 static.doubleclick.net |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function.prototype.debounce = function(delay) { | |
var timeout, callback = this; | |
return function() { | |
clearTimeout(timeout); | |
timeout = setTimeout(callback, delay); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
property image_extension_list : {"tif", "tiff", "gif", "png", "pict", "pct", "jpg", "jpeg", "bmp"} | |
property video_extension_list : {"avi", "mov", "mpg", "mpeg", "wmv", "mp4", "m4a"} | |
property audio_extension_list : {"mp3", "wav", "aac"} | |
property archive_extension_list : {"zip", "sit", "tar", "tgz", "gz", "bzip2"} | |
property documents_extension_list : {"doc", "docx", "pdf", "txt", "xls", "xslx", "ppt"} | |
property diskAlignLeft : true | |
property otherAlignLeft : false | |
property margin : {50, 60, 0, 0} -- {left, top, right, bottom} | |
property xPadding : 50 | |
property yPadding : 50 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isIE() { | |
return typeof document.documentMode == "number" || eval("/*@cc_on!@*/!1"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data:image/gif;base64,R0lGODdhAQABAPAAAMPDwwAAACwAAAAAAQABAAACAkQBADs= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(jQuery){ | |
'use strict'; | |
if (!Date.now) Date.now = function() { return new Date().getTime(); }; | |
var animating, | |
vendors = ['moz', 'webkit'], | |
W = window; | |
for (var i = 0; i < vendors.length && !W.requestAnimationFrame; ++i) { | |
var vp = vendors[i]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function appthemes_add_quicktags() { | |
if (wp_script_is('quicktags')){ | |
?> | |
<script type="text/javascript"> | |
QTags.addButton( 'yt_embed', 'Youtube', '[youtube id="', '"]', 'y', 'Youtube Video', 1 ); | |
QTags.addButton( 'vm_embed', 'Vimeo', '[vimeo id="', '"]', 'v', 'Vimeo Video', 2 ); | |
</script> | |
<?php | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print_r(json_decode(file_get_contents("https://api.vkontakte.ru/method/video.get?access_token=$token&owner_id=64842982&videos=64842982_170418653"))); | |
stdClass Object | |
( | |
[response] => Array | |
( | |
[0] => 1 | |
[1] => stdClass Object | |
( | |
[vid] => 170418653 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getRSS(url) { | |
$.getJSON('http://www.google.com/uds/Gfeeds', | |
{ | |
context: 0, | |
num: 10, | |
hl: 'en', | |
output: 'json', | |
v: '1.0', | |
nocache: 0, | |
q: url |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"bridge": { | |
"name": "Homebridge", | |
"username": "{MAC}", | |
"port": 51826, | |
"pin": "{PIN}" | |
}, | |
"description": "This is an example configuration file. You can use this as a template for creating your own configuration file containing devices you actually own.", |