Skip to content

Instantly share code, notes, and snippets.

@tempredirect
tempredirect / jquery.tooltip-remove.js
Created March 4, 2011 14:52
Hacky plugin to allow removal of the tooltips created by jquery tools tooltip
/**
* hacky plugin to allow removal of the jquery tools tooltip objects.
*
* Doesn't pay any attention to the special event configuration, and will blindly unbind all
* mouse[enter|leave] listeners from the trigger element.
*/
(function($){
var tooltip = $.fn.tooltip,
slice = Array.prototype.slice;
@regeter
regeter / Search All.sql
Last active May 13, 2024 09:43
Search All Tables, All Columns
/* Reto Egeter, fullparam.wordpress.com */
DECLARE @SearchStrTableName nvarchar(255), @SearchStrColumnName nvarchar(255), @SearchStrColumnValue nvarchar(255), @SearchStrInXML bit, @FullRowResult bit, @FullRowResultRows int
SET @SearchStrColumnValue = '%searchthis%' /* use LIKE syntax */
SET @FullRowResult = 1
SET @FullRowResultRows = 3
SET @SearchStrTableName = NULL /* NULL for all tables, uses LIKE syntax */
SET @SearchStrColumnName = NULL /* NULL for all columns, uses LIKE syntax */
SET @SearchStrInXML = 0 /* Searching XML data may be slow */
@sevir
sevir / base64.js
Created October 24, 2012 15:38
base64 for javascript in browser that it hasn't support window.atob or window.btoa (implemented in Firefox, Webkit and Opera latest versions)
/*
* Implements base64 decode and encode in browser that
* it hasn't support of window.btoa and window.atob
* methods.
* Based in Nick Galbreath
* http://code.google.com/p/stringencoders/source/browse/#svn/
* and Carlo Zottmann jQuery port
* http://github.com/carlo/jquery-base64
* Adapted by SeViR in DIGIO
*/
@PerpetualBeta
PerpetualBeta / daySensitiveCountdownTimer.js
Last active January 7, 2019 10:45
A real-time countdown timer for a web page. Will countdown to a target time, but only on days specified (eg: Mon-Fri).
if (document.getElementById('countdownTimer')) {
pad = function(n, len) { // leading 0's
var s = n.toString();
return (new Array( (len - s.length + 1) ).join('0')) + s;
};
var timerRunning = setInterval(
function countDown() {
var now = new Date();
if ( (now.getDay() >= 1) && (now.getDay() <= 5) ) { // Monday to Friday only
@lholman
lholman / Set-BuildNumber.ps1
Last active May 9, 2016 11:41
A psake task for managing assembly versioning in .NET applications
#*================================================================================================
#* Purpose: Sets the full build number ([major].[minor].[build].[revision]) in a consistent global way
#* for all builds. We purposefully only use TeamCity to generate the incrementing [build] number.
#* Set
#*================================================================================================
Task Set-BuildNumber {
$major = "1"
$minor = "0"
#Get buildCounter passed in from TeamCity, if not use zero
@tcartwright
tcartwright / Get Installed DotNet Frameworks.bat
Last active June 16, 2021 18:45
Get Installed DotNet Frameworks
@echo OFF
@setlocal ENABLEEXTENSIONS
@REM Author: Tim Cartwright
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP"
@rem https://msdn.microsoft.com/en-us/library/hh925568%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396#net_d
@echo.