Skip to content

Instantly share code, notes, and snippets.

Date Open High Low Close Volume Adj Close
2013-11-07 37.96 38.01 37.43 37.50 60437400 37.50
2013-11-06 37.24 38.22 37.06 38.18 88615100 38.18
2013-11-05 35.79 36.71 35.77 36.64 51646300 36.64
2013-11-04 35.59 35.98 35.55 35.94 28060700 35.94
2013-11-01 35.67 35.69 35.39 35.53 40264600 35.53
2013-10-31 35.66 35.69 35.34 35.41 41682300 35.41
2013-10-30 35.53 35.79 35.43 35.54 36997700 35.54
2013-10-29 35.63 35.72 35.26 35.52 31702200 35.52
2013-10-28 35.61 35.73 35.27 35.57 38383600 35.57
@theor
theor / redux-fsharp.fsx
Last active November 28, 2016 14:05
Redux.Net counter sample in f#, with a couple of helper types
// needs the redux.net nuget package
#r "PresentationCore.dll"
#r "PresentationFramework.dll"
#r "../packages/Redux.NET.0.2.0/lib/portable-net45+netcore45/Redux.dll"
#r "System.Core.dll"
#r "System.dll"
#r "../packages/Rx-Core.2.2.5/lib/net45/System.Reactive.Core.dll"
#r "../packages/Rx-Interfaces.2.2.5/lib/net45/System.Reactive.Interfaces.dll"
#r "../packages/Rx-Linq.2.2.5/lib/net45/System.Reactive.Linq.dll"
#r "../packages/Rx-PlatformServices.2.2.5/lib/net45/System.Reactive.PlatformServices.dll"
@Kimserey
Kimserey / Build.cmd
Last active December 19, 2016 20:00
FAKE script to compile WebSharper JS for specific folder. Files are loaded in order based on fsproj. Ex: `Build.cmd instance=test` will compile to JS all the fs files in \config\test\.
@echo off
cls
..\packages\FAKE\tools\FAKE.exe BuildJS.fsx %*
@ImaginaryDevelopment
ImaginaryDevelopment / Claims.generated.fs
Created November 17, 2015 18:31
Generator and generated code from new T4 to F#
namespace Pm.Schema.DataModels.Claims // Generated by item in namespace PracticeManagement.Foundation
open System
open System.ComponentModel
open System.Linq.Expressions
/// 59 properties
type IClaim =
abstract member AccidentDate:DateTime Nullable with get
abstract member AccidentState:string with get
@cromica
cromica / build.fsx
Created November 14, 2015 12:06
fake build script sample
#r @"tools/FAKE.Core/tools/FakeLib.dll"
open Fake
open System
let authors = ["Sdl Community"]
//project details
let projectName = "GroupShareKit"
let projectDescription="A GroupShare API client library for .NET"
@richlander
richlander / getting-started-core.md
Last active December 14, 2016 16:00
Getting Started Writing a .NET Core app and Class Library

Getting Started Writing a .NET Core app and Class Library

These instructions are basic and a work in progress. They will be improving a lot over time.

Once you've followed the steps in this document, use the following sample to see the changes you need to make to your project: https://github.com/dotnet/corefxlab/tree/master/samples/ClassLib.

Installing the tools

@lulu-berlin
lulu-berlin / FSharpCompilerService-error.fsx
Last active December 19, 2016 19:58
An FSI script to reproduce an error in FSharp.Compiler.Service: doesn't find identifiers beginning with an underscore (with double backticks)
#r "FSharp.Compiler.Service.dll"
open System.IO
open Microsoft.FSharp.Compiler.SourceCodeServices
let checker = FSharpChecker.Create ()
let filesource1 = """
module Abc
let x = 1
let y = x + 1
@vbfox
vbfox / buildx.fsx
Last active December 14, 2016 15:57
Launching a scriptcs .csx file from FAKE
#r @"packages/FAKE/tools/FakeLib.dll"
#load "./scriptcs.fsx"
open Fake
open Fake.AssemblyInfoFile
open Fake.ReleaseNotesHelper
open System
open System.IO
open Fake.ScriptCs
// The NUnit and Chessie Nuget packages are required for this
// To install NUnit and Chessie run the following commands from the Package Manager Console
// PM> Install-Package NUnit -Version 2.6.4
// PM> Install-Package Chessie
using System;
using System.Text.RegularExpressions;
using Chessie.ErrorHandling;
using Chessie.ErrorHandling.CSharp;
using Microsoft.FSharp.Core;
@jackfarrington
jackfarrington / scala-by-example-exercise-6.0.3.scala
Created August 15, 2015 04:58
Scala By Example exercise 6.0.3
/*
* The trait Nat is provided by the text.
*/
trait Nat {
def isZero: Boolean
def predecessor: Nat
def successor: Nat
def +(that: Nat): Nat
def -(that: Nat): Nat