Skip to content

Instantly share code, notes, and snippets.

@lqdev
lqdev / ImageClassifierFsAdvent2020.fsx
Created Dec 14, 2020
Code from F# Advent 2020 Image Classifier
View ImageClassifierFsAdvent2020.fsx
#r "nuget:Microsoft.ML"
#r "nuget:Microsoft.ML.Vision"
#r "nuget:Microsoft.ML.ImageAnalytics"
#r "nuget:SciSharp.TensorFlow.Redist"
open System
open System.IO
open Microsoft.ML
open Microsoft.ML.Data
open Microsoft.ML.Vision
@lqdev
lqdev / DotnetDsML.md
Last active Dec 1, 2020
List of Data Science & ML Projects in .NET
View DotnetDsML.md

Data loading

  • IDataView (ML.NET)
  • .NET for Apache Spark
  • FSharp.Data
  • Deedle

Data wrangling

  • Deedle
@lqdev
lqdev / ubuntu_wifi_adapter_fix.sh
Created Sep 18, 2018
Ubuntu 18.04 HP Laptop WiFi Adapter Fix
View ubuntu_wifi_adapter_fix.sh
sudo apt update && sudo apt install git dkms
cd Downloads
git clone -b extended --single-branch https://github.com/lwfinger/rtlwifi_new.git
unofficial
cd rtlwifi_new
make
sudo make install
@lqdev
lqdev / GetProgrammingFS16TryThis.fsx
Created Jul 1, 2018
Solution to Try This Exercise in Get Programming with F# Lesson 16
View GetProgrammingFS16TryThis.fsx
//Try this
type Folder = {
Name:string
Size:int64
NumFiles:int64
AvgSize:float
DistinctExt:string list
}
open System.IO
@lqdev
lqdev / main.js
Created Jan 3, 2018
Largest Unique Set of Characters
View main.js
/*
write a program that outputs the largest unique set of characters that can be removed
from this paragraph without letting its length drop below 50.
For example: [‘H’, ‘i’, ‘!’, ‘ ’]
*/
//Exception based on paragraph length
function ParagraphLengthException(message){
this.name = "ParagraphLengthException"
this.message = message;
@lqdev
lqdev / AccessToken.cs
Last active Jan 5, 2021
Client Credentials Authorization Flow in C# (Spotify API)
View AccessToken.cs
using System;
namespace authtest
{
class AccessToken
{
public string access_token { get; set; }
public string token_type { get; set; }
public long expires_in { get; set; }
}