Skip to content

Instantly share code, notes, and snippets.

// Copyright (c) 2005 Tom Wu
// All Rights Reserved.
// See "LICENSE" for details.
/*
* Copyright (c) 2003-2005 Tom Wu
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
@mosababdo
mosababdo / MimeTypeLookup.cs
Created February 2, 2019 16:29 — forked from ChristianWeyer/MimeTypeLookup.cs
.NET MIME type lookup - 1200 well known MIME types in a C# helper class - thx to https://github.com/PawelGerr !
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
namespace Thinktecture.Helpers
{
public class MimeTypeLookup
{
@mosababdo
mosababdo / Main.java
Created August 26, 2018 17:02 — forked from jewelsea/Main.java
Small JavaFX framework for swapping in and out child panes in a main FXML container. Code is for Java 8+.
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;
import java.io.IOException;
/**
* Main application class.
1
2
3
4
5
6
7