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
$(document).ready(function() { | |
$("td[class='ms-vb-title'] table[class='ms-unselectedtitle'] tbody tr td[class='ms-vb'] a").each(function() { | |
var externalWindowLink = ' <a href="' + $(this).attr("href") + '" target="_blank" title="Click here to open the link in a new window"><span style="color:green;font-size:smaller;">New Window</span></a>'; | |
$(this).parent().append(externalWindowLink); | |
}); | |
}); |
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 sortDropDownListByText(dropdownlist) { | |
dropdownlist.children("option[value='']").remove(); | |
// Sort all the options by text | |
dropdownlist.html($("option", dropdownlist).sort(function(a, b) { | |
return a.text === b.text ? 0 : a.text < b.text ? -1 : 1; | |
})); | |
dropdownlist.prepend(' '); | |
dropdownlist.children("option[value='']").attr('selected', 'selected'); |
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
<span id="toolbar"> | |
<a title="Link 1" tabindex="-1" href="#"></a> | |
<a title="Link 1" tabindex="-2" href="#"></a> | |
</span> |
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 (!$ || !$['fn']) throw new Error('jQuery library is required.'); |
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
Public Function Build() As String | |
Dim json = String.Empty | |
Dim assemblyBuilder = AppDomain.CurrentDomain.DefineDynamicAssembly(New AssemblyName(_topLevelObjectName), AssemblyBuilderAccess.RunAndSave) | |
Dim moduleBuilder = assemblyBuilder.DefineDynamicModule(_topLevelObjectName, String.Format("{0}.dll", _topLevelObjectName)) | |
Dim typeBuilder = moduleBuilder.DefineType(_topLevelObjectName, TypeAttributes.Class Or TypeAttributes.Public) | |
Dim constructorBuilder = typeBuilder.DefineConstructor(MethodAttributes.Public, | |
CallingConventions.Standard, | |
Nothing) | |
Dim constructorIL = constructorBuilder.GetILGenerator() |
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
gm mogrify -output-directory low-res -resize 60% *.png |
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
var JSONKeyMinify = function (Array, JSON, undefined) { | |
"use strict"; | |
// http://stackoverflow.com/questions/1988349/array-push-if-does-not-exist | |
// http://stackoverflow.com/questions/4433402/replace-keys-json-in-javascript | |
Array.prototype.inArray = function (comparer) { | |
for (var i = 0; i < this.length; i++) { | |
if (comparer(this[i])) return true; | |
} | |
return false; | |
}; |
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
git log --graph --left-right --cherry-pick --oneline master...experiment |
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
git log --all --decorate --oneline --graph |
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
// To compress anything from within JS | |
var compressed = lzwCompress.pack(humongousObj); | |
// And to decompress it | |
var original = lzwCompress.unpack(compressed); |
OlderNewer