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
using System;public class | |
Sig{public static void Main() | |
{for(int i=65;;i=i>82?65:i+9) | |
Console.Write((char)i);}} |
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
# Magic fairy dust for working with WSPs and SharePoint 2010 in PowerShell | |
# So far, I've only tested this with event receivers, but I'll expand it | |
# as necessary. | |
function Get-WSPFeatures { | |
param($wspFilename = $(throw "Please specify a WSP file.")) | |
$wspPath = (gci $wspFilename).FullName | |
$wsp = _wspExtractWSP $wspPath |
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
$srcFolder = "W:\" | |
$dstFolder = "C:\Users\Andy\Temp\pics" | |
$extensions = ".jpg|.gif|.bmp" | |
get-childitem -r $srcFolder | where { $_.Extension -match $extensions } |% { | |
$src = $_ | |
$srcName = $src.Name; | |
$srcFullName = $src.FullName | |
$year = $src.LastWriteTime.Year | |
$month = $src.LastWriteTime.Month |
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
*.ncb | |
*.suo | |
*.user | |
.hg | |
.hgignore | |
.hgsvn | |
_ReSharper.* | |
[Bb]in | |
obj | |
[Dd]ebug |
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
svn -R --depth immediates propset svn:ignore -F <path-to-svn-ignore-txt> <path-to-svn-repository> |
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
# Print all project items | |
Recurse-Project -Action {param($item) "`"$($item.ProjectItem.Name)`" is a $($item.Type)" } | |
# Function to format all documents based on https://gist.github.com/984353 | |
function Format-Document { | |
Recurse-Project -Action { param($item) | |
if($item.Type -eq 'Folder' -or !$item.Language) { | |
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
In 1972 a crack commando unit was sent to prison by a military court for a crime | |
they didn't commit. These men promptly escaped from a maximum security stockade | |
to the Los Angeles underground. Today, still wanted by the government, they survive | |
as soldiers of fortune. If you have a problem, if no one else can help, and if you | |
can find them, maybe you can hire the A-Team. |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>Gunnar Cam</title> | |
<link href="Index.min.css" type="text/css" rel="Stylesheet" /> | |
</head> | |
<body> | |
<div id="image"> | |
<img id="cam" src="http://192.168.1.201/image/jpeg.cgi" alt="Gunnar, most likely" /> | |
</div> |
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 ($, ku) | |
{ | |
var debounce = function (func) | |
{ | |
var timeout; | |
var lastValue; | |
return function debounced() | |
{ | |
var obj = this, args = arguments; | |
function delayed() |
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
testScadaTag = -> | |
$("#tagTest").attr("src", "/Content/blank.gif"); | |
if (viewModel.scadaTag()) | |
$("#tagTest").attr("src", "/Content/smallSpinner.gif") | |
$.ajax | |
url: "/Scada/Test/#{viewModel.scadaTag()}" | |
type: 'POST' | |
dataType: 'json' | |
error: (jqXHR, textStatus, errorThrown) -> | |
$("#tagTest").attr("src", "/Content/fail.png") |
OlderNewer