Skip to content

Instantly share code, notes, and snippets.


Alexey Gulev AGulev

View GitHub Profile
AGulev /
Last active Jul 19, 2021
Python script for a searching duplicate files in folder. Modification of: (file size counter was added)
import os, sys, stat
import hashlib
def findDup(parentFolder):
# Dups in format {hash:[names]}
dups = {}
for dirName, subdirs, fileList in os.walk(parentFolder):
print('Scanning %s...' % dirName)
for filename in fileList:
AGulev /
Last active Dec 10, 2020 — forked from britzl/
Script to build and bundle a Defold project for multiple platforms
readonly java_path='java'
readonly output_path='build'
readonly email=''
readonly auth_key='my_key'
readonly texture_compresstion='false'
readonly andr_key_path='key.pk8'
readonly andr_cert_path='certificate.pem'
AGulev / swipe.lua
Last active Oct 14, 2019
adoptation of swipe-direction script by ScottPhillips for Defold engine
View swipe.lua
local beginX
local beginY
local endX
local endY
local startTime
local xDistance
local yDistance
AGulev / gist:f1d4ad5d695211cc27b7f11490fa96fb
Last active Apr 13, 2019
Exchange rate National Bank of the Republic of Belarus in Google Sheets
View gist:f1d4ad5d695211cc27b7f11490fa96fb
=IMPORTXML(CONCATENATE("", TEXT(A1,"mm/dd/yyyy")),"/DailyExRates/Currency[@Id='145']/Rate/text()")
Нужно заменить A1 ячейкой с датой.
145 - USD
292 - EUR
298 - RUB
View .luacheckrc
std = "max"
files['.luacheckrc'].global = false
unused_args = false
globals = {
AGulev / CustomEditorBase.cs
Created Apr 3, 2016 — forked from t0chas/CustomEditorBase.cs
Default Custom Inspector-Editor for Unity3D with ReorderableLists for arrays handling
View CustomEditorBase.cs
using UnityEngine;
using UnityEditor;
using UnityEditorInternal;
using System.Collections.Generic;
using UnityEditor.AnimatedValues;
[CustomEditor(typeof(UnityEngine.Object), true, isFallback = true)]
public class CustomEditorBase : Editor
AGulev /
Created Apr 28, 2018 — forked from Jerakin/
For building and deploying Defold projects directly to your phone
Builder is built by wrapping adb and storing some data locally
I would recommend to add an alias to your ~.bash_profile to use it easier
alias builder="python3.5 ~/Documents/repo/builder/"
Usage: [command] [arguments]
Available Commands:
AGulev /
Created Apr 27, 2018 — forked from dapetcu21/
Interrogation Style Guide

Lua style guide


This project makes use of [Luacheck] for catching common mistakes. Install it and configure it for your text editor.

Editor configuration

We recommend [Atom] for editing Lua code along with the following packages:

  • [linter-luacheck]: [Luacheck] integration
AGulev / FBInstant.d.ts
Created Mar 15, 2018
Type definitions for FBInstant v2.1 (deprecated)
View FBInstant.d.ts
// Type definitions for FBInstant v2.1
// Api documentation :
* Top level namespace for the Instant Games SDK.
declare var FBInstant:fbinstant.IFBInstant;
declare namespace fbinstant
AGulev /
Last active Mar 8, 2018
Python script for removing multi-adding same sprites to the non animated atlas in Defold project
import os, sys, hashlib
import deftree
def all_files(ending, project_root):
# Generator to get files
for root, folders, files in os.walk(project_root):
for f in files:
if f.endswith(ending):
yield os.path.join(root, f)