This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#r "System.Windows.Forms" | |
#r "System.Drawing" | |
using System.Windows.Forms; | |
using System.Drawing; | |
using System; | |
//Application.EnableVisualStyles(); | |
Application.Run(new Form1()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#r "System.Windows.Forms" | |
#r "System.Drawing" | |
using System.Windows.Forms; | |
using System.Drawing; | |
using System; | |
Application.Run(new Form1()); | |
public class Form1 : Form |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#r "System.Windows.Forms" | |
#r "System.Drawing" | |
using System.Windows.Forms; | |
using System.Drawing; | |
using System; | |
Application.Run(new Form1()); | |
public class Form1 : Form |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
namespace Prefix | |
{ | |
static class Program | |
{ | |
private static void Main(string[] args) | |
{ | |
Console.WriteLine("İşlemi giriniz:"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |