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
IF OBJECT_ID ('SearchAllTables') IS NOT NULL | |
DROP PROCEDURE SearchAllTables | |
GO | |
CREATE PROC SearchAllTables | |
( | |
@SearchString nvarchar(100) | |
) | |
AS |
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
SetTitleMatchMode, REGEX | |
#IfWinActive, Microsoft SQL Server Management Studio$ | |
; your hotstrings go here | |
^+t:: Send, declare @t varchar(200) = '<transaction name>' {enter}begin tran @t {enter}{enter}rollback tran @t | |
; kill connections | |
^+k:: Send, USE [master]{enter}DECLARE @kill varchar(8000) = ''{enter}SELECT @kill = @kill {+} 'kill ' {+} CONVERT(varchar(5), session_id){enter}FROM sys.dm_exec_sessions{enter}WHERE database_id = db_id('MyDB'){enter}EXEC(@kill); |
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
SetNumLockState, AlwaysOn |
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
#IfWinActive ahk_class CabinetWClass | |
!Down:: | |
; send alt | |
Send, {Enter} |
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
!]::Send ‘ | |
+!]::Send ’ | |
![::Send “ | |
+![::Send ” |
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 CardManager() { | |
this.SEL_PROJECT_CARD = '.project-card' | |
this.ATTR_ASSIGNEE = 'data-card-assignee' | |
this.ATTR_AUTHOR = 'data-card-author' | |
this.ATTR_STATUS = 'data-card-state' | |
this.ATTR_TYPE = 'data-card-type' | |
this._parseAssignee = function(card) { | |
var raw = card.getAttribute(this.ATTR_ASSIGNEE) | |
if (!raw || typeof(raw) === 'undefined') return null |
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 TaskManager() { | |
this.CLASS_NAME_TASK_ITEM = 'task_item' | |
this.SEL_TASK_ITEM = 'li.' + this.CLASS_NAME_TASK_ITEM | |
this.SEL_BASE_INDENT = 'indent_' | |
} | |
TaskManager.prototype.getTaskLevelSelector = function(level) { | |
return this.SEL_BASE_INDENT + level | |
} | |
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,.mediawiki,.TSddqdlwwG { | |
width: 100% | |
; | |
} | |
.WikiaSiteWrapper { | |
background-image: none; | |
background-color: white; | |
margin-top: -55px; | |
width: 100%; |
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
OpenEverything() | |
{ | |
IfWinExist, Everything | |
{ | |
WinActivate | |
return | |
} | |
Run, "C:\Program Files (x86)\Github\Wox\Everything\Everything.exe" | |
return | |
} |
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 updatePaging() { | |
$find('<%=yourgrid.clientid%>').get_behaviors().get_paging().updatePager( | |
getPageSize(), | |
getPageIndex(), | |
getPageCount()) | |
} | |
function getSequencePageCount() { | |
var count = getResultsCount() / getPageSize() | |
if (count <= 0=) { |