Skip to content

Instantly share code, notes, and snippets.

View dmitriy-shmilo's full-sized avatar
🇺🇦

Dmitriy Shmilo dmitriy-shmilo

🇺🇦
  • Odessa, Ukraine
View GitHub Profile
@dmitriy-shmilo
dmitriy-shmilo / fix_exif.bat
Created November 7, 2022 15:07
A bat file for to fix some EXIF data. Requested by a redditor.
echo off
rem set "filemask" to whatever you need, make sure to include folder path and file mask in there
rem for example "C:\my_photos\IMG-*.png" will match all png files starting with IMG in my_photos folder
set filemask="C:\Users\Admin\Downloads\test\*.jpg"
rem set this to a full path wherever exiftool is located
set exiftool="C:\Users\Admin\Downloads\exiftool.exe"
echo "Processing files: %filemask%..."
@dmitriy-shmilo
dmitriy-shmilo / README.md
Last active November 12, 2026 17:55
eBay list cleaner
  • Install a greasemonkey-compatible user script browser extension. For example, TamperMonkey or GreaseMonkey.
  • Create a new script in your installed extension.
  • Copy and paste script.js contents (see below) as a new script.
  • Edit const blacklist = "..."; line. Put a comma-separated list of undesired locations within quotes. Case doesn't matter.
  • For example, if you don't want to see products from UK, the line will look like const blacklist = "United Kingdom";.
  • Save.
  • When on eBay, switch to a listview when viewing search results.
  • Items from undesired countries will be removed from the list shortly after a page load.
@dmitriy-shmilo
dmitriy-shmilo / icon-resize.sh
Last active November 5, 2020 10:52
A simple bash script I made to resize images for mobile projects.
let size1=$1
let size15=$1/2*3
let size2=$1*2
let size3=$1*3
rm -f android_out.xml
rm -f ios_out.xml
for file in *.png
do
@dmitriy-shmilo
dmitriy-shmilo / main.md
Last active October 11, 2018 15:22
#objc #exercise #tutoring

Hello World

  1. Print your name.
  2. Print your name ten times in a loop.

Custom Classes

  1. Define a set of classes, which can represent an arbitrary animal set:
    • Diet:
      • Carnivore
  • Herbivore
@dmitriy-shmilo
dmitriy-shmilo / exercises.md
Last active April 22, 2018 16:16
#tutoring #processing #syllabus #exercise

A snowman

  1. Draw a simple black and white snowman. Use ellipse(...) and triangle(...).

Example

  1. Set background color for the sky with background(...). Draw a ground for the snowman to stand on with rect(...). Color snowman's parts with fill(...) and stroke(...).

Example

@dmitriy-shmilo
dmitriy-shmilo / sfml-toolkit-sprites.cs
Created December 23, 2017 14:55
SFML Toolkit spritesheet example.
using SFML.System;
using SFML.Window;
using SFML.Graphics;
using SfmlToolkit.Sprites;
namespace SfmlToolkit.App
{
class Program
{
static void Main(string[] args)
@dmitriy-shmilo
dmitriy-shmilo / sfml-toolkit-tweening.cs
Created December 23, 2017 00:44
A sample tween and easing usage in SFML Toolkit.
using SFML.System;
using SFML.Window;
using SFML.Graphics;
using SfmlToolkit.Tweening;
namespace SfmlToolkit.App
{
class Program
{
static void Main(string[] args)
@dmitriy-shmilo
dmitriy-shmilo / sfml-toolkit-shapes.cs
Created December 22, 2017 23:39
Simple program to render a bunch of extended shapes with SfmlToolkit.
using SFML.System;
using SFML.Window;
using SFML.Graphics;
using System.Collections.Generic;
using SfmlToolkit.Graphics;
namespace SfmlToolkit.App
{
class Program
{
@dmitriy-shmilo
dmitriy-shmilo / sfml-toolkit-particles.cs
Created December 22, 2017 22:46
A simple particle system demo.
using SFML.System;
using SFML.Window;
using SFML.Graphics;
using SfmlToolkit.Particles;
using System;
using SfmlToolkit.Distributions;
using SfmlToolkit.Util;
using SfmlToolkit.Particles.Renderers;
using SfmlToolkit.Particles.Affectors;
@dmitriy-shmilo
dmitriy-shmilo / sfml-thick-line.cs
Last active November 22, 2021 09:57
SFML.NET line with a thickness.
/// <summary>
/// Allows to render a line with a thickness.
/// </summary>
class Line : Drawable
{
/// <summary>
/// Sets an <see cref="SFML.Graphics.Color"/> for this line.
/// </summary>
public Color Color
{