Skip to content

Instantly share code, notes, and snippets.

View jonas1ara's full-sized avatar

Jonas Lara jonas1ara

View GitHub Profile
@mathias-brandewinder
mathias-brandewinder / gist:5558573
Last active August 12, 2024 14:10
Stub for F# Machine Learning Dojo
// This F# dojo is directly inspired by the
// Digit Recognizer competition from Kaggle.com:
// http://www.kaggle.com/c/digit-recognizer
// The datasets below are simply shorter versions of
// the training dataset from Kaggle.
// The goal of the dojo will be to
// create a classifier that uses training data
// to recognize hand-written digits, and
// evaluate the quality of our classifier
@aras-p
aras-p / preprocessor_fun.h
Last active November 15, 2024 09:22
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,
@dejuata
dejuata / main.cpp
Created September 10, 2016 21:05
Funcion Convolución de imagenes en c++
#include <cstdlib>
#include <iostream>
#include <stdlib.h>
#include <time.h>
#define length(x) (sizeof(x)/sizeof(x[0]))
using namespace std;
int convolucion ()
@Tset-Noitamotua
Tset-Noitamotua / .vimrc
Last active October 4, 2024 11:55
Powerline Setup for my VIM
"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
" "
" __ _ _ _ __ ___ _ __ ___ "
" \ \ / / | '_ ` _ \| '__/ __| "
" \ V /| | | | | | | | | (__ "
" \_/ |_|_| |_| |_|_| \___| "
" "
" "
"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
@kauffmanes
kauffmanes / install_anaconda.md
Last active November 16, 2024 21:45
Install Anaconda on Windows Subsystem for Linux (WSL)

Thanks everyone for commenting/contributing! I made this in college for a class and I no longer really use the technology. I encourage you all to help each other, but I probably won't be answering questions anymore.

This article is also on my blog: https://emilykauffman.com/blog/install-anaconda-on-wsl

Note: $ denotes the start of a command. Don't actually type this.

Steps to Install Anaconda on Windows Ubuntu Terminal

  1. Install WSL (Ubuntu for Windows - can be found in Windows Store). I recommend the latest version (I'm using 18.04) because there are some bugs they worked out during 14/16 (microsoft/WSL#785)
  2. Go to https://repo.continuum.io/archive to find the list of Anaconda releases
  3. Select the release you want. I have a 64-bit computer, so I chose the latest release ending in x86_64.sh. If I had a 32-bit computer, I'd select the x86.sh version. If you accidentally try to install the wrong one, you'll get a warning in the terminal. I chose `Anaconda3-5.2.0-Li
@shanselman
shanselman / ohmyposhv3-v2.json
Last active November 4, 2024 10:39
ohmyposhv3-v2
{
"final_space": true,
"console_title": true,
"console_title_style": "folder",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"horizontal_offset": 0,
"vertical_offset": 0,
@luisquintanilla
luisquintanilla / script.fsx
Created December 21, 2021 19:06
Style Transfer: Image to Mosaic F#, ML.NET, ONNX Sample
#r "nuget:Microsoft.ML"
#r "nuget:Microsoft.ML.OnnxRuntime"
#r "nuget:Microsoft.ML.OnnxTransformer"
#r "nuget:Microsoft.ML.ImageAnalytics"
#r "nuget:System.Drawing.Common"
open System.IO
open System.Drawing
open Microsoft.ML
open Microsoft.ML.Data
@jkone27
jkone27 / cover.fsx
Last active December 15, 2023 18:50
coverlet coverage fsc script using fli, creates a report and shows it in browser
#r "nuget: Fli"
open Fli
open System
open System
let isHelpRequested = fsi.CommandLineArgs |> Seq.contains "--h"
[<Literal>]
@jkone27
jkone27 / fshttpSpectreImageDownload.fsx
Created January 22, 2024 11:29
download an image and display it in your console with fshttp and spectre.console packages in fsx F# script
#r "nuget: FsHttp"
#r "nuget: Spectre.Console.ImageSharp"
open FsHttp
open Spectre.Console
let imgUrl =
"https://banner2.cleanpng.com/20200525/frt/transparent-hero-image-hero-logo-cartoon-5ecc928ba8c9a0.2212187815904651636914.jpg"
@jkone27
jkone27 / sheetCsvSpectre.fsx
Created January 22, 2024 21:11
Print in a table a google sheet published as csv with spectre console and fsharp data csv provider
#r "nuget: FSharp.Data"
#r "nuget: EluciusFTW.SpectreCoff"
open FSharp.Data
open SpectreCoff
type ``💁`` =
// just create your own google sheet and publish it from File menu, select CSV
// or use any other CSV, this works with any valid csv published in url or in your file system
CsvProvider<"https://docs.google.com/spreadsheets/d/e/GOOGLEKEYBLABLABLABLABLA/pub?output=csv">