Skip to content

Instantly share code, notes, and snippets.

@salihkaragoz
salihkaragoz / Tutorial of Numpy
Created August 24, 2017 14:34
Python Numpy Tutorial
# This lecture based on Stanford' Python Numpy Tutorial
def quicksort(arr):
if len(arr) <= 1:
return arr
pivot = arr[len(arr) // 2]
left = [x for x in arr if x < pivot]
middle = [x for x in arr if x == pivot]
right = [x for x in arr if x > pivot]
return quicksort(left) + middle + quicksort(right)
**HEADER FILES**
deprecated.h
libvlc.h
libvlc_events.h
libvlc_media.h
libvlc_media_discoverer.h
libvlc_media_library.h
libvlc_media_list.h
libvlc_media_list_player.h
libvlc_media_player.h
@salihkaragoz
salihkaragoz / Udp Sender
Created July 10, 2017 09:11
UDPClient Close time for Unreachable Ip with Pyhton
import socket
import time
import datetime
IPADDR = '192.168.1.141'
PORTNUM = 5600
PACKETDATA = "f1a525da11f6".encode()
while(True):
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, 0)
@salihkaragoz
salihkaragoz / UDP Client Program
Last active April 21, 2017 14:54
You can catch UDP packet as specified port and IP address
using System;
using System.Text;
using System.Net;
using System.Net.Sockets;
namespace Server
{
class Program
{