ls *.js -Recurse | foreach{ move-item $_ ($_.FullName.TrimEnd("js") + "ts") }
install grunt-typescript (There are other TypeScript packages out there but I tried this one and it worked)
npm install grunt-typescript --save-dev
$history = tf history ./* /recursive /noprompt; | |
$h = @{}; $history | where { $_ } | select -skip 2 | %{ $val = $_.Substring(10, 13).Trim(); if([string]::IsNullOrEmpty($h[$val])){ $h[$val] = 0; "add $val"; } else{ $val; $h[$val] = $h[$val] + 1} }; $h |
<# | |
# Little utility to display a toast msg when your external WAN IP address changes | |
# | |
# sample command to throw into a scheduled task | |
# -> powershell.exe -noprofile -file {PathToThisScript}.ps1 {YOUR_EXPECTED_EXTERNAL_WAN_IP} | |
# | |
#> | |
$expectedIpAddress = $args[0] | |
$ipaddressFound = 'NOT FOUND' |
[SetUpFixture] | |
public class HackToSetupApprovalTestsToFindP4Merge | |
{ | |
[SetUp] | |
public void SetUpFixture() | |
{ | |
var field = typeof(FirstWorkingReporter).GetField("reporters", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.FlattenHierarchy); | |
var currentItems = (IEnumerable<IEnvironmentAwareReporter>)field.GetValue(DiffReporter.INSTANCE); | |
var newitems = new[] { P4MergeDiffReporter.INSTANCE }.Concat(currentItems).ToArray(); |
param( | |
$beginSha = $(throw '-beginSha is required'), | |
$endSha = $(throw '-endSha is required'), | |
$projectName = $( (get-item .).name ) | |
) | |
# Get a list of all the files that have been added/modified/deleted | |
$filesWithMods = git diff --name-status $beginSha $endSha | Select @{Name="ChangeType";Expression={$_.Substring(0,1)}}, @{Name="File"; Expression={$_.Substring(2)}} |
interface IAmSomeInterface { | |
getNumber(): number; | |
} | |
interface IAmAGenericInterface<T extends IAmSomeInterface> { | |
getInstanceOfSomeInterface(id: number): T; | |
} | |
class ClassExtendingSomeInterface implements IAmSomeInterface { | |
getNumber() { |
<?xml version="1.0" encoding="UTF-8"?> | |
<opml version="1.0"> | |
<head> | |
<title>Downcast Podcasts</title> | |
</head> |
/* | |
* | |
* The hope was to be able to drag out of the browser files from github onto the file system. | |
* I thought I saw the prototype work correctly once, but can't get it working anymore :( | |
* | |
* | |
* | |
* | |
* License: Make It Work: ( someone help me make this work ) | |
* |
<html dir="<$BlogLanguageDirection$>"> | |
<head> | |
<title>301 Moved Permanently</title> | |
<noscript> | |
<ItemPage><Blogger><meta http-equiv="refresh" content="0,url=http://staxmanade.com/blog/<$BlogItemNumber$>"></Blogger></ItemPage> | |
<MainOrArchivePage><meta http-equiv="refresh" content="0,url=http://staxmanade.com"></MainOrArchivePage> | |
</noscript> | |
<script type="text/javascript"> | |
document.location.href = '<ItemPage><Blogger>http://staxmanade.com/blog/<$BlogItemNumber$></Blogger></ItemPage><MainOrArchivePage>http://staxmanade.com</MainOrArchivePage>'; | |
</script> |
{% assign series = '' %} | |
{% assign thisPost = nil %} | |
{% for post in site.posts %} | |
{% if post.url == page.url %} | |
{% assign series = post.series %} | |
{% assign thisPost = post %} | |
{% endif %} | |
{% endfor %} | |
{% assign count = '0' %} |