Skip to content

Instantly share code, notes, and snippets.

View yunlang's full-sized avatar

parkheesung yunlang

View GitHub Profile
@joshbetz
joshbetz / Webview.swift
Created February 12, 2020 15:36
A simple SwiftUI Webview
import SwiftUI
import WebKit
struct ContentView: View {
var body: some View {
Webview(url: URL(string: "https://google.com")!)
}
}
struct Webview: UIViewRepresentable {
@kuroneko0441
kuroneko0441 / ImageConvertor.cs
Last active March 22, 2021 01:57
C# 이미지 리사이즈(비율 유지)
using System;
using System.Drawing;
namespace ImageConvertor {
class ImageConvertor {
/**
* <summary>
* 이미지를 targetX, targetY로 리사이징함. 비율은 유지하고 빈 공간은 검은색으로 채움
* </summary>
using System;
using System.IO;
using System.Threading.Tasks;
// Compatible with .NET Framework 4 Client Profile & legacy C# compiler.
namespace ClouDeveloper
{
public static class FileSystemWatch
{
public const string DefaultFilter =
@cwschroeder
cwschroeder / MQTT Client
Last active May 27, 2024 15:58
Example of a C# MQTT client
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
@antoinemartin
antoinemartin / fcgi.py
Created June 27, 2012 13:49
Django management command to run Django on Windows with IIS through FastCGI
# encoding: utf-8
# FastCGI-to-WSGI bridge for files/pipes transport (not socket)
#
# Copyright (c) 2002, 2003, 2005, 2006 Allan Saddi <allan@saddi.com>
# Copyright (c) 2011 Ruslan Keba <ruslan@helicontech.com>
# Copyright (c) 2012 Antoine Martin <antoine@openance.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without