Skip to content

Instantly share code, notes, and snippets.

View zpbappi's full-sized avatar

Zp Bappi zpbappi

View GitHub Profile

Auto-deploying built products to gh-pages with Travis

This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.

Create a compile script

You want a script that does a local compile to e.g. an out/ directory. Let's call this compile.sh for our purposes, but for your project it might be npm build or gulp make-docs or anything similar.

The out/ directory should contain everything you want deployed to gh-pages. That almost always includes an index.html.

@zpbappi
zpbappi / benchmark-fsharp-set-diff.fs
Last active May 11, 2018 04:17
Benchmark created to support PR#1453 for Microsoft/visualfsharp
module Program
open System
open System.Collections.Generic
open System.Threading.Tasks
/// https://www.nuget.org/packages/BenchmarkDotNet/
/// https://www.nuget.org/packages/BenchmarkDotNet.Diagnostics.Windows/
open BenchmarkDotNet.Attributes
@zpbappi
zpbappi / Program.cs
Created August 28, 2016 10:23
Comparison of XorShift128+, XorShiRo128+ and existing .NET Random class
using System;
using System.IO;
namespace RandomTest
{
class Program
{
private static readonly string BasePath =
Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "random-files");