Skip to content

Instantly share code, notes, and snippets.

@jeroldhaas
jeroldhaas / Objectives.md
Last active August 29, 2015 14:07
F# Hangout - 2014-10-17

#Objectives / Uses / Possibilities#

F# Hangout Group Ideas.

##Tutorials and Talks##

  • Andrea Magnorsky @silverSpoon wanted to do a presentation on "Game Development in FSharp," and thought that using the hangouts would be a good venue for ad hoc, or informal presentation.
A First Course in Probability
http://www.amazon.com/First-Course-Probability-9th-Edition/dp/032179477X
Probability Theory: The Logic of Science
http://www.amazon.com/Probability-Theory-The-Logic-Science/dp/0521592712
Probability for Statistics and Machine Learning: Fundamentals and Advanced Topics
http://www.amazon.com/Probability-Statistics-Machine-Learning-Fundamentals/dp/B00E6TK8P8/ref=sr_1_2?s=books&ie=UTF8&qid=1420291747&sr=1-2&keywords=Probability+for+Statistics+and+Machine+Learning%3A+Fundamentals+and+Advanced+Topics
@johnazariah
johnazariah / Attempt.fs
Last active August 29, 2015 14:17
Attempt computation expression
open System
[<AutoOpen>]
module Attempt =
type Result<'TSuccess> =
| Success of 'TSuccess
| Failure of Exception
// make sure f is pure, otherwise monad laws will fail
let (>>=) x f =
@reidev275
reidev275 / index.html
Last active August 29, 2015 14:26
blog style
<body class="{{body_class}}">
<div class="container">
<nav class="main-nav">
<h1><a href="/">Reid Evans</a></h1>
<p>{{@blog.description}}</p>
<ul>
<li><a href="{{@blog.url}}/about/">About</a></li>
<li><a href="{{@blog.url}}/recent-work/">Recent Work</a></li>
</ul>
</nav>
@spacedoom
spacedoom / tweetwordextractor.fsx
Last active November 16, 2015 13:13
A simple F# script that extracts words from tweets, given a #tag and a date range. Use this script in order to extract words from tweets, given a #hashtag and a date range. Excellent for creating e.g. word clouds! NB You also have to get a copy of the stopwords.txt file (or create your own). Disclaimer: This is not a finished product. There's ro…
#I @"packages\FSharp.Data.Toolbox.Twitter.0.6\lib\net40"
#I @"packages\FSharp.Data.2.1.1\lib\net40"
#r @".\packages\FSharp.Data.Toolbox.Twitter.0.6\lib\net40\FSharp.Data.Toolbox.Twitter.dll"
#r @".\packages\FSharp.Data.2.1.1\lib\net40\FSharp.Data.dll"
open FSharp.Data.Toolbox.Twitter
// Check out https://apps.twitter.com for more info on getting key & secret!
let key = "" //Insert key here!
type BusyBuilder(blockUi, unblockUi) =
member this.Bind(x, f) = async.Bind(x, f)
member this.Combine(e1, e2) = async.Combine(e1, e2)
member this.Delay(f) =
async {
blockUi ()
let! result = async.Delay f
unblockUi ()
return result
}
@realvictorprm
realvictorprm / PaketDependencyManagementMadeEasy.fsx
Last active June 12, 2018 19:41
A must have for your script file to ease spreading a small proof of concept with dependencies!
open System
open System.IO
open System.Diagnostics
let downloadDependencies deps =
Environment.CurrentDirectory <- __SOURCE_DIRECTORY__
if not (File.Exists "paket.exe") then
async {
let url = "http://fsprojects.github.io/Paket/stable"
@punker76
punker76 / MainWindow.xaml
Created February 6, 2019 20:36
Detecting Windows 10 Dark/Light mode
<Window x:Class="WpfApp1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfApp1"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Grid>
using Octokit;
using System;
using System.Threading.Tasks;
using System.Diagnostics;
namespace UpdateGitHub
{
class Program
{
@nickytonline
nickytonline / .gitconfig
Last active February 17, 2021 03:34
Git Aliases
alias.a add .
alias.aliases config --get-regexp alias
alias.bi bisect
alias.ci commit -m
alias.co checkout
alias.colast checkout -
alias.db branch -D
alias.laf fsck --lost-found
alias.last log -1 HEAD
alias.nb checkout -b