Skip to content

Instantly share code, notes, and snippets.

Avatar

Alexander Degytarev xdegtyarev

View GitHub Profile
@xdegtyarev
xdegtyarev / .gitattributes
Last active Feb 17, 2019
LFS .gitattributes
View .gitattributes
# Sourcecode
*.txt diff
*.cs diff
*.json diff
*.meta diff
*.xml diff
# 3D models
*.3dm filter=lfs diff=lfs merge=lfs -text
*.3ds filter=lfs diff=lfs merge=lfs -text
*.blend filter=lfs diff=lfs merge=lfs -text
@xdegtyarev
xdegtyarev / FontResizeTest.cs
Last active Sep 25, 2018
Failed TextGeneratorTest
View FontResizeTest.cs
using UnityEngine;
using UnityEngine.TestTools;
using NUnit.Framework;
using System.Collections;
public class FontResizeTest {
[Test]
public void FontResizeTestSimplePasses() {
var settings = new TextGenerationSettings();
settings.textAnchor = TextAnchor.MiddleLeft;
View gist:ee4761ee79093887e66a5444e807b918
Sequence toggleSequence = DOTween.Sequence().SetAutoKill();
toggleSequence.AppendCallback(()=>{sectorGO.SetActive(true);});
toggleSequence.AppendInterval(waitInterval);
toggleSequence.AppendCallback(()=>{sectorGO.SetActive(false);});
View gist:e4f7ec8971510355214cef65fbd8258e
tell application "System Events"
tell process "Finder"
repeat 100 times
tell application "Finder" to open trash
tell application "Finder" to activate
key code 126
key down command
key code 51
key up command
delay 0.2 -- adjust delay as needed
View gist:b0c010e062620b2bed7c64ef1a9cf400
const functions = require('firebase-functions');
const admin = require('firebase-admin');
admin.initializeApp(functions.config().firebase);
const tournamentOffsetInDays = 172800000;
exports.updateTournamentDate = functions.https.onRequest((request, response) => {
var tournamentRef = admin.database().ref("currentTournament");
var prevtournamentRef = admin.database().ref("prevTournament");
var fakeusersRef = admin.database().ref("fake_users");
View gist:b08cce3711626cf26ea1266785a1bfee
public class WeightedSettings{
public string key;
public float weight;
public float reward;
}
public static string WeightedRandom(this List<WeightedSettings> list){
var totalChance = 0f;
foreach(var o in list){
totalChance += o.weight;
View gist:2afc22f21dc28479071147de73b28401
-> murder_scene
//
// System: items can have various states
// Some are general, some specific to particular items
//
LIST OffOn = off, on
LIST SeenUnseen = unseen, seen
View gist:4b2808c6fb768969618a3c7560866264
#!/bin/sh
id=?
start=100000000
end=999999999
for (( n=$start; n<$end; n++ )); do
if (curl -s https://vk.com/doc"$id"_"$n" | grep -q "msg_back_button");
then
echo "$n" | tee grabber.out
else
View cv.md

Alexander Degtyarev

pic

Game Developer Generalist

Minsk, Belarus

Contact

View keybase.md

Keybase proof

I hereby claim:

  • I am xdegtyarev on github.
  • I am xdegtyarev (https://keybase.io/xdegtyarev) on keybase.
  • I have a public key whose fingerprint is EF75 BCE6 9BC1 1B17 7A7A 2801 B7E5 21DB 957C 3AD8

To claim this, I am signing this object:

You can’t perform that action at this time.