Skip to content

Instantly share code, notes, and snippets.

View Thelta's full-sized avatar

Atılhan Emre Dursunoğlu Thelta

View GitHub Profile
import numpy as np
import cv2
surf = cv2.xfeatures2d.SURF_create()
trainer = cv2.BOWKMeansTrainer(300)
for i in range(0, 300):
image = np.random.randint(255, size=(400, 400), dtype=np.uint8)
_, desc = surf.detectAndCompute(image, None)
@Thelta
Thelta / main.c
Last active April 8, 2018 20:30
FizzBuzz (But if never used)
#include <stdio.h>
char number[5] = "\0";
void fizz(int a)
{
printf("fizz");
sprintf(number, " %d\n", a);
}
@Thelta
Thelta / wlan_autoconfig_switch.bat
Last active June 15, 2018 08:03
windows_wlan_autoconfig_switcher
cd "%~dp0"
Powershell.exe -executionpolicy remotesigned -File ./wlan_autoconfig_switch.ps1
using UnityEngine;
using System.Collections.Generic;
public class ObjectChunk
{
WorldPos originBlockPos;
List<WorldPos> relativeBlocksPos;
public ObjectChunk(RaycastHit hit)
{