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> | |
<head> | |
<style> | |
body { | |
font: 10px sans-serif; | |
} | |
.chord path { | |
fill-opacity: .67; | |
stroke: #000; |
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
{"TrainingCenterDatabase":{ | |
"Activities":{ | |
"Activity":{ | |
"@Sport":"Biking", | |
"Id":"2014-06-27T21:09:29Z", | |
"Lap":{ | |
"@StartTime":"2014-06-27T21:09:29Z", | |
"TotalTimeSeconds":"1334", | |
"DistanceMeters":"10702.6", | |
"MaximumSpeed":"19.416", |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// This LINQPad script (easily converted into a regular C# program) extracts all zip files under a specific directory. | |
// makes use of the ZipUtility from http://linqpadsamples.codeplex.com/wikipage?title=Unzip%20a%20file%20using%20COM%20and%20dynamic | |
var files = Directory.EnumerateFiles(@"C:\Test Data\Gutenberg\pgdvd042010", "*.zip", SearchOption.AllDirectories).ToArray(); | |
var dc = new DumpContainer().Dump(); | |
var index=0; | |
var count=files.Count(); | |
foreach (var file in files) { | |
dc.Content = string.Format("{0}/{1}: {2}", index++, count, file); |
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; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
public static class Profiler { | |
private static List<ProfilerFrame> stack = new List<ProfilerFrame>(); | |
private static Dictionary<string, ProfiledBlock> totals = new Dictionary<string, ProfiledBlock>(); | |
private static Action<string> logger; |
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
Component component = (Component) engine.GetObject(package.GetValue("Component.ID")); |
NewerOlder