Skip to content

Instantly share code, notes, and snippets.

View ruant's full-sized avatar
High five

Rune Antonsen ruant

High five
View GitHub Profile
@ruant
ruant / SimpleHTTPServerWithUpload.py
Created October 7, 2020 09:25 — forked from touilleMan/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload - Python3 version
#!/usr/bin/env python3
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
see: https://gist.github.com/UniIsland/3346170
"""
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@ruant
ruant / TSQL -> C# POCO classes
Last active June 16, 2020 07:34
A simple TSQL script to quickly generate c# POCO classes from SQL Server tables and views. (Copied from https://gist.github.com/joey-qc/6710702)
declare @tableName varchar(200)
declare @columnName varchar(200)
declare @nullable varchar(50)
declare @datatype varchar(50)
declare @maxlen int
declare @pos int
declare @Stype varchar(50)
declare @isnullable varchar(1)
declare @Sproperty varchar(200)
@ruant
ruant / country.sql
Created October 20, 2016 11:31
List of the worlds countries, with some translations
--
-- Table structure for table `Country`
--
CREATE TABLE `Country` (
`Id` int(11) NOT NULL,
`Name` longtext NOT NULL,
`Region` longtext NOT NULL,
`Subregion` longtext NOT NULL,
`Translation_deu` longtext,