Skip to content

Instantly share code, notes, and snippets.

View lqdev's full-sized avatar

Luis Quintanilla lqdev

View GitHub Profile
@lqdev
lqdev / GetProgrammingFS16TryThis.fsx
Created July 1, 2018 01:59
Solution to Try This Exercise in Get Programming with F# Lesson 16
//Try this
type Folder = {
Name:string
Size:int64
NumFiles:int64
AvgSize:float
DistinctExt:string list
}
open System.IO
@lqdev
lqdev / main.js
Created January 3, 2018 04:56
Largest Unique Set of Characters
/*
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 January 5, 2021 17:33
Client Credentials Authorization Flow in C# (Spotify API)
using System;
namespace authtest
{
class AccessToken
{
public string access_token { get; set; }
public string token_type { get; set; }
public long expires_in { get; set; }
}