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
/* bookmarklet | |
var c = "body *:hover:before{display:none;z-index:999;position:absolute;padding:5px;background:rgba(0,0,200,.8);margin-left:10px;margin-top:-2em;color:#000;height:2em;border-radius:5px;color:#FFF;font-family:monospace;font-size:20px;border:solid 3px rgba(100,100,0,.5);background-image:-moz-linear-gradient(center top,#eee,#ccc)}body *[class]:hover:before{content:'.'attr(class);color:#000;background:rgba(200,200,0,.8);display:block}body *[id]:hover:before{content:'#'attr(id);background:rgba(0,0,200,.9);display:block;margin-top:2.5em;color:#FF0}",d=document,l=d.createElement('style'),l.type='text/css',l.innerHTML=c;d.body.appendChild(l); | |
*/ | |
body :hover:before { | |
display:none; | |
z-index:999; | |
position:absolute; | |
padding:5px; | |
background:rgba(0,0,200,.8); | |
margin-left:10px; |
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
var id='fastCSSDebug';var fcd = document.getElementById(id); | |
if (fcd==null) {d = document.createElement('link');d.rel='stylesheet';d.href='https://raw.github.com/gist/3736434/bd6053fb999e889fd9c3d0a74ee5d225646ba12f/superCssDebugExtention.css';d.id=id;document.body.appendChild(d)} | |
// A simple query selector | |
k = 'selector'; | |
p = ( !! localStorage) ? localStorage.getItem(k) : ''; | |
c = console; | |
s = prompt(k, p); | |
(localStorage) ? localStorage.setItem(k, s) : ''; | |
o = document.querySelectorAll(s); |
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 antiSpam(sIDOfFormToWatch, preInfo, postInfo) { | |
preInfo = (preInfo || 'This page is being spammed.\nPlease confirm that you are human by entering: "'); | |
postInfo = (postInfo || '"'); | |
var s = document.getElementById(sIDOfFormToWatch); | |
if (s === null) return; | |
var oldSubmit = s.onsubmit; | |
if (s === null) oldSubmit = function() { | |
return true; | |
}; | |
s.onsubmit = function(t) { |
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
<xsl:stylesheet version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:msxsl="urn:schemas-microsoft-com:xslt" | |
xmlns:user="urn:my-scripts" | |
exclude-result-prefixes="xsl msxsl user" | |
> | |
<msxsl:script language="C#" implements-prefix="user"> | |
<msxsl:assembly name="System.Web" /> | |
<msxsl:using namespace="System.Web" /> | |
<![CDATA[ |
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
// Create JSON data of people who like a FB page | |
var s = 'var like = {"which":"' + $$('.pvs.phm._1yw')[0].innerText + '", "date":"' + new Date() + '", "people":['; | |
var l = $$('._13 a[href*="www.facebook.com"]'); | |
var img = ''; | |
for (var i = 0; i < l.length; i++) { | |
var href = l[i].href; | |
var name = l[i].innerText; | |
_img = l[i].getElementsByTagName('img'); | |
img = (_img.length > 0) ? _img[0].src : img; | |
if (name != '' && href != '') { |
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
// Find the code here: https://gist.github.com/3778099 | |
function addClientSideValidation(sFormSelector, required, sErrorMessage) { | |
if (typeof jQuery==='undefined') { | |
alert('jQuery is required'); | |
return false; | |
}; | |
required = (required.length===0) ? ['UserManagement_Form_Company', 'UserManagement_Form_Name', 'UserManagement_Form_Phone', 'UserManagement_Form_Address', 'UserManagement_Form_Zip', 'UserManagement_Form_City', 'UserManagement_Form_Country'] : required; | |
jQuery(sFormSelector).submit(function(evt) { | |
var bValid = true; |
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
<xsl:variable name="amp"> | |
<xsl:text disable-output-escaping="yes"><![CDATA[&]]></xsl:text> | |
</xsl:variable> | |
<xsl:variable name="crlf" select="' '" /> | |
<xsl:variable name="br"> | |
<xsl:text disable-output-escaping="yes"><![CDATA[<br />]]></xsl:text> | |
</xsl:variable> | |
<xsl:call-template name="string-replace-all"> |
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
/** | |
* dependend animations | |
*/ | |
@keyframes "slide" { | |
0% { | |
width: 10%; | |
} | |
100% { | |
width: 100%; | |
} |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Bootstrap, from Twitter</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="description" content=""> | |
<meta name="author" content=""> | |
<!-- Le styles --> |