Skip to content

Instantly share code, notes, and snippets.

// Decompiled with JetBrains decompiler
// Type: NuGet.VersionUtility
// Assembly: NuGet.Core, Version=2.8.50313.46, Culture=neutral, PublicKeyToken=31bf3856ad364e35
// MVID: 4404F95E-CF52-4857-811C-40FE351F2921
// Assembly location: C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\i5o50bmq.ucl\NuGet.Core.dll
using NuGet.Resources;
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
@dckc
dckc / AccountSite.hs
Last active November 8, 2016 16:26
webdriver exception puzzle
{-# LANGUAGE OverloadedStrings, ScopedTypeVariables #-}
module AccountSite where
import Control.Monad.Trans (liftIO)
import Control.Exception (Exception, catch, throwIO)
import Control.Monad.Base (liftBase)
import qualified Data.Text as T
import Test.WebDriver (WDConfig(..), defaultConfig, chrome,
Capabilities(..), defaultCaps,
runSession,
@cidevant
cidevant / HaskellStyleGuide.md
Last active October 26, 2016 21:46
Haskell Style Guide

Haskell Style Guide

This is a short document describing the preferred coding style for this project. I've tried to cover the major areas of formatting and naming. When something isn't covered by this guide you should stay consistent with the code in the other modules.

Formatting

@jocke-l
jocke-l / Makefile
Last active December 5, 2016 05:03
Makefile
# This Makefile uses gcc's -MM-flag to scan your source tree for dependencies
# Other compilers may or may not have this feature. Adjust the DEPS
# definition accordingly.
CC := gcc
RM := rm
CFLAGS := -pedantic -Wall -Wextra -g
LIBS :=
@merijn
merijn / Foo.hs
Created August 23, 2014 07:01
Minimal C main FFI example
{-# LANGUAGE ForeignFunctionInterface #-}
module Foo where
import Foreign.C.String
import Foreign.C.Types
foreign export ccall start_server :: CInt -> CString -> IO ()
foreign export ccall start_client :: CString -> IO ()
start_server :: CInt -> CString -> IO ()
GCC=gcc
RM=rm
SRC=$(wildcard *.c)
OBJ=$(SRC:.c=.o)
FLAGS=
EXEC=main
all : $(EXEC)
#r "../packages/Nuget.Core.2.8.2/lib/net40-Client/Nuget.Core.dll"
#r "System.Xml.Linq"
open NuGet
let repository = PackageRepositoryFactory.Default.CreateRepository "https://nuget.org/api/v2"
let aspnet = query {
for p in repository.GetPackages() do
where (p.Title.Contains "ASP.NET")
count
@isaacabraham
isaacabraham / accord.fs
Last active October 4, 2016 01:25
accord on f#?
open Accord.MachineLearning.FSharp
open Deedle
let data = [ ("D1", "Sunny", "Hot", "High", "Weak", "No" )
("D2", "Sunny", "Hot", "High", "Strong", "No" )
("D3", "Overcast", "Hot", "High", "Weak", "Yes")
("D4", "Rain", "Mild", "High", "Weak", "Yes")
("D5", "Rain", "Cool", "Normal", "Weak", "Yes")
("D6", "Rain", "Cool", "Normal", "Strong", "No" )
("D7", "Overcast", "Cool", "Normal", "Strong", "Yes")
@sigrlami
sigrlami / ab.md
Last active February 17, 2025 17:52
List of companies using Haskell https://haskellcosm.com

WARNING This list outdated, for the up to date version visit https://haskellcosm.com

List of companies that use Haskell in Production

Types of work:

  • RD - research&development
  • PR - product
  • IP - in-house product
  • CO - consulting
@pillowsoft
pillowsoft / AppDelegate.fs
Created May 30, 2014 23:10
F# iOS app that gives INotifyProperty needed error (and other) work with Xamarin.Forms, AddIn 5.02 and latest FSharp (3.1 from github) on Mac
namespace TestiOS
open System
open MonoTouch.UIKit
open MonoTouch.Foundation
open System
open System.ComponentModel
open Xamarin.Forms