Skip to content

Instantly share code, notes, and snippets.

View georgy7's full-sized avatar

Георгий У. georgy7

View GitHub Profile
@georgy7
georgy7 / gist:ade186facd48a6f6f8693ab429dc51c1
Created December 6, 2017 15:52 — forked from aqiank/gist:efa6eefcc81157982acc
SDL2 DropEvent minimal example
#include <SDL2/SDL.h>
int main() {
SDL_Init(SDL_INIT_EVERYTHING);
SDL_Window *window = SDL_CreateWindow("Drag-and-Drop", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 800, 600, SDL_WINDOW_SHOWN);
int running = 1;
while (running) {
SDL_Event event;
while (SDL_PollEvent(&event)) {
#! /usr/bin/ruby
require 'rubygems'
require 'digest/md5'
require 'json'
# Usage:
# 1. Locate a folder where you want to search dublicates in console.
# 2. Run the script without any arguments.
# 3. Watch the progress.