This file contains hidden or 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
| require 'fileutils' | |
| class Jekyll < Thor | |
| include FileUtils | |
| method_options :format => :optional | |
| def draft(name) | |
| format = options[:format] || "markdown" | |
| slug = name.downcase.gsub(/ +/,'-').gsub(/[^-\w]/,'').sub(/-+$/,'') | |
| filename = slug + ".#{format}" |
This file contains hidden or 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 class ClipboardBehavior : Behavior<Control> | |
| { | |
| public static readonly DependencyProperty CopyCommandProperty = | |
| DependencyProperty.Register("CopyCommand", | |
| typeof (ICommand), | |
| typeof (ClipboardBehavior), | |
| new PropertyMetadata(default(ICommand))); | |
| public static readonly DependencyProperty CutCommandProperty = | |
| DependencyProperty.Register("CutCommand", |
This file contains hidden or 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
| <UsingTask TaskName="DownloadNuGet" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll"> | |
| <ParameterGroup> | |
| <OutputFilename ParameterType="System.String" Required="true" /> | |
| </ParameterGroup> | |
| <Task> | |
| <Reference Include="System.Core" /> | |
| <Reference Include="System.Xml" /> | |
| <Reference Include="WindowsBase" /> | |
| <Using Namespace="System" /> | |
| <Using Namespace="System.IO" /> |
This file contains hidden or 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 class ProjectRepository | |
| { | |
| private CloudTable table; | |
| public ProjectRepository() | |
| { | |
| var connectionString = "..."; | |
| CloudStorageAccount storageAccount = CloudStorageAccount.Parse(connectionString); | |
| var client = storageAccount.CreateCloudTableClient(); |
This file contains hidden or 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 class Project | |
| { | |
| public Guid Owner { get; set; } | |
| public Guid Id { get; set; } | |
| public string Name { get; set; } | |
| public DateTime StartDate { get; set; } | |
| public int Status { get; set; } | |
| public List<Task> Tasks { get; set; } | |
| } |
This file contains hidden or 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
| module Jekyll | |
| class LessConverter < Converter | |
| safe true | |
| priority :high | |
| def setup | |
| return if @setup | |
| require 'less' | |
| @setup = true | |
| rescue LoadError |
This file contains hidden or 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
| ## | |
| # The MIT License (MIT) | |
| # | |
| # Copyright (c) 2014 Ryan Morrissey | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is |
This file contains hidden or 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
| [<AutoOpen>] | |
| module EdgeJs.FSharp | |
| open System | |
| open System.Threading.Tasks | |
| type Async with | |
| static member Box (r:Async<'TResult>) = | |
| async { | |
| let! o = r |
This file contains hidden or 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.IO; | |
| namespace RandomTest | |
| { | |
| class Program | |
| { | |
| private static readonly string BasePath = | |
| Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "random-files"); |
OlderNewer