This file contains 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
/* | |
* Do not remove the @namespace line -- it's required for correct functioning | |
*/ | |
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */ | |
window[title*=".dev"] #urlbar, window[title*=".dev"] #urlbar > * { | |
background: red !important; | |
} | |
window[title*=".dev"] .urlbar-input-box { |
This file contains 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
bramus@shared-015:~$ ab -c 5 -n 100 http://www.bram.us/ | |
This is ApacheBench, Version 2.3 <$Revision: 655654 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ | |
Benchmarking www.bram.us (be patient).....done | |
Server Software: Apache/1.3.42 | |
Server Hostname: www.bram.us |
This file contains 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
bramus@shared-015:~$ ab -c 5 -n 100 http://www.bram.us/ | |
This is ApacheBench, Version 2.3 <$Revision: 655654 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ | |
Benchmarking www.bram.us (be patient).....done | |
Server Software: Apache/1.3.42 | |
Server Hostname: www.bram.us |
This file contains 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() { | |
// Get player and position it fullscreen (with a z-index greater than the header) | |
var playerWrapper = document.getElementById('layoutTV-1'); | |
playerWrapper.style.top = playerWrapper.style.left = playerWrapper.style.bottom = playerWrapper.style.right = 0; | |
playerWrapper.style.zIndex = 51; // Header = 50, so +1 on that | |
var player = playerWrapper.getElementsByClassName('player')[0]; | |
player.style.bottom = 0; | |
})() |
This file contains 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
// @url http://www.html5rocks.com/en/tutorials/getusermedia/intro/ | |
window.URL = window.URL || window.webkitURL; | |
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia; | |
if (navigator.getUserMedia) { | |
navigator.getUserMedia({audio: true, video: true}, function(stream) { | |
document.querySelector('video').src = window.URL.createObjectURL(stream); | |
}, function(e) { | |
console.log(e); |
This file contains 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
<html> | |
<head> | |
<title>Kung foo?</title> | |
</head> | |
<body> | |
<script language="VBScript"> | |
<!-- | |
Set oWMP = CreateObject("WMPlayer.OCX.7" ) | |
Set colCDROMs = oWMP.cdromCollection |
This file contains 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
<?php | |
if ((((int) $_SERVER['SERVER_PORT']) !== 443) && (!isset($_SERVER['HTTPS']) || ($_SERVER['HTTPS'] == 'off'))) { | |
header("HTTP/1.1 301 Moved Permanently"); | |
header('location: https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); | |
exit(); | |
} | |
?> |
This file contains 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
<?php | |
namespace Bramus; | |
/** | |
* Simple Key-Value DataStore to keep variables on | |
*/ | |
class Datastore { | |
private $data = array(); |
This file contains 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
/* Elementary. A CSS workflow for mimicking element queries. [c]2014 @scottjehl, @filamentgroup. MIT license. */ | |
(function( w ){ | |
w.elementary = function( options ){ | |
if( !( "querySelector" in w.document ) || !( "getComputedStyle" in w ) ){ | |
return; | |
} | |
var selector = options && options.selector || "[data-eq-breakpoints]"; | |
var mods = w.document.querySelectorAll( selector ); | |
for( var m = 0; m < mods.length; m++ ){ |
This file contains 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
// WARNING! KNOW WHAT YOU ARE DOING! I AM NOT RESPONSIBLE IF YOU OR ANYONE (OR EVEN ANYTHING) ELSE MESSES THINGS UP! | |
(function() { | |
var popups = []; | |
$('a[href*="confirm.html"]').each(function(i) { | |
var url = $(this).attr('href').replace('confirm',''); | |
popups[i] = window.open(url); | |
setTimeout(function() { | |
popups[i].close(); | |
}, 2500); | |
}); |