Skip to content

Instantly share code, notes, and snippets.

View derofim's full-sized avatar

Den derofim

  • Google
  • USA
View GitHub Profile
@derofim
derofim / Program.cs
Last active April 28, 2017 11:11
Rain World The Mythology of Rain World and dialogue
// (c) Denis Trofimov, derofim, 2017
using System;
using System.Collections.Generic;
using System.IO;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;
@derofim
derofim / Program.cs
Last active April 25, 2023 11:37
Rain World Save Modify Hack Cheat
// (c) Denis Trofimov, derofim, 2017
using System;
using System.Collections.Generic;
using System.IO;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;
@derofim
derofim / Projections.md
Created April 27, 2017 22:08
Rain World

Projections

@derofim
derofim / ReadMe.md
Created April 23, 2017 15:41
shorten long file names windows

Script tested on Windows 10 64bit.

  1. Install git bash from https://git-for-windows.github.io/
    Git allows to use linux commands on windows.
  2. Open Git Bash Command Line
    Simply right-click on a folder in Windows Explorer to access the BASH or GUI.
    https://git-for-windows.github.io/img/gw1.png
  3. You can use "mv" command to rename "VeryLongFileName.ext" to "shortFileName.ext" like this:
    mv "VeryLongFileName.ext" "shortFileName.ext"
  4. If you need to rename a lot of files in folder use shorten.sh below.
@derofim
derofim / video.md
Created April 21, 2017 19:45
UE4 Video Plane

Creating Video material & Sound.

@derofim
derofim / retarget.md
Created April 21, 2017 18:40
UE4 retarget

Adding "MOB1_M1_Stand_Relaxed_to_Crouch" animation sequence to "SK_Infiltrator_Skeleton".

@derofim
derofim / Readme.md
Created April 1, 2017 18:07
OpenCV 3.2.0 Features2D + Homography to find a known object

Description

Features2D + Homography to find a known object http://docs.opencv.org/3.2.0/d9/d97/tutorial_table_of_content_features2d.html ported to OpenCV 3.2.0

Setup

  1. git clone -b 3.2.0 --depth 1 --recursive https://github.com/opencv/opencv_contrib.git
  2. git clone -b 3.2.0 --depth 1 --recursive https://github.com/opencv/opencv.git
  3. Create bat script (Windows):
@echo off
REM git clone -b 3.2.0 --depth 1 --recursive https://github.com/opencv/opencv_contrib.git
REM OR Download https://github.com/opencv/opencv_contrib/archive/3.2.0.zip
@derofim
derofim / imdex.sql
Created March 30, 2017 18:30
sparql
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX foaf: <http://www.semanticweb.org/катерина/ontologies/2017/2/dynamicStructures#>
SELECT ?x ?val ?idx WHERE {
. {?x foaf:belongs foaf:Array1 }
OPTIONAL {?x foaf:value ?val}
OPTIONAL {?x foaf:Index ?idx}
<?xml version="1.0"?>
<Ontology xmlns="http://www.w3.org/2002/07/owl#"
xml:base="http://www.semanticweb.org/denis/ontologies/2017/2/web"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
ontologyIRI="http://www.semanticweb.org/denis/ontologies/2017/2/web">
<Prefix name="" IRI="http://www.semanticweb.org/denis/ontologies/2017/2/web"/>
<Prefix name="owl" IRI="http://www.w3.org/2002/07/owl#"/>
@derofim
derofim / py.py
Last active February 15, 2025 06:46
py.py
from collections import Counter
import operator
import os
import os.path
import glob
from collections import Counter
import operator
import re
from os import listdir, walk
from os.path import isfile, isdir, join, getsize