Skip to content

Instantly share code, notes, and snippets.

View WildGenie's full-sized avatar
🤖
I ❤️ Machine Learning

Bilgehan Zeki ÖZAYTAÇ WildGenie

🤖
I ❤️ Machine Learning
View GitHub Profile
#r "System.Windows.Forms"
#r "System.Drawing"
using System.Windows.Forms;
using System.Drawing;
using System;
//Application.EnableVisualStyles();
Application.Run(new Form1());
#r "System.Windows.Forms"
#r "System.Drawing"
using System.Windows.Forms;
using System.Drawing;
using System;
Application.Run(new Form1());
public class Form1 : Form
#r "System.Windows.Forms"
#r "System.Drawing"
using System.Windows.Forms;
using System.Drawing;
using System;
Application.Run(new Form1());
public class Form1 : Form
using System;
using System.Collections.Generic;
namespace Prefix
{
static class Program
{
private static void Main(string[] args)
{
Console.WriteLine("İşlemi giriniz:");
public static class FormExtensions
{
public static void EnableDragging(this Control c)
{
// Long way, but strongly typed.
var downs =
from down in Observable.FromEvent<MouseEventHandler, MouseEventArgs>(
eh => new MouseEventHandler(eh),
eh => c.MouseDown += eh,
eh => c.MouseDown -= eh)
bool IsPrime(int input)
{
//2 and 3 are primes
if (input == 2 || input == 3)
return true;
else if (input % 2 == 0 || input % 3 == 0)
return false; //Is divisible by 2 or 3?
else
{
#r "System.Windows.Forms"
#r "System.Drawing"
using System.Windows.Forms;
using System.Drawing;
using System;
public static Form form = new Form();
public Button[,] buttons = new Button[10, 10];
Main();
@WildGenie
WildGenie / proxy.py
Created November 2, 2016 13:36 — forked from scturtle/proxy.py
use opera's built-in VPN as proxy
#!/usr/bin/env python3
import asyncio
from vpn import get_proxy
proxy = port = auth = None
pool = asyncio.Queue(5)
psize = 0
async def process_client(client_reader, client_writer, *, CHUNK=4096):
global psize
@WildGenie
WildGenie / EventSource.cs
Created November 1, 2016 11:30
C# implementation of Server Side Event Source
/*
* Copyright 2014 Jonathan Bradshaw. All rights reserved.
* Redistribution and use in source and binary forms, with or without modification, is permitted.
*/
using System;
using System.Collections.Specialized;
using System.Diagnostics;
using System.IO;
using System.Linq;
@WildGenie
WildGenie / FileSystemWatcher.cs
Created November 1, 2016 11:30
A thread safe queued File System Watcher for C#
using System;
using System.Collections;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.IO;
using System.Threading;
namespace Fws.Collections