Skip to content

Instantly share code, notes, and snippets.

View derofim's full-sized avatar

Den derofim

  • Google
  • USA
View GitHub Profile

Clone repository with specific branch and tag

git clone --recursive -b {branch} {remote_repo} .
git checkout {tag_name} -b {branch_name}

Contributing to a Project

Tutorial - Contributing to a Project

Git setup

@derofim
derofim / ReadMe.md
Last active December 2, 2022 18:57
UE4 подборка

Подборка материалов по UE4 с упором на C++.

Введение: лог, события, звуки, актеры, системы частиц и т.д.

image

перейти

Шутер от первого лица

image

@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 / main.js
Created January 12, 2017 19:15
Печать с двух сторон (выводит страницы на распечатку)
// Печать с двух сторон (выводит страницы на распечатку)
//
// Программу можно запустить на https://jsfiddle.net/
// Вставьте этот javascript код, нажмите F12 и кнопку Run
// Меняйте переменные side, startPage, endPage
//
// Печать по диапозону [startPage;endPage]
// Сначала печатаем все страницы с side=1
// Вставляем распечатанную кипу в принтер
// Текст должен быть верх ногами и чистой сторой к нам
@emmasteimann
emmasteimann / Model.cpp
Created August 31, 2016 11:38 — forked from emkooz/Model.cpp
Assimp loader
#include "Model.hpp"
bool core::ModelLoader::loadModel(const char* fp, Model* m)
{
core::log("Loading " + (std::string)fp, core::green);
Assimp::Importer importer; // used to import the model
const aiScene* scene = importer.ReadFile(fp,
aiProcess_Triangulate |
@derofim
derofim / codestyle.md
Last active May 14, 2024 05:21
C++ code style sample
@derofim
derofim / Social.md
Last active September 22, 2021 13:39
Cocos 2d js game resources
@mariobadr
mariobadr / game_loop.cpp
Last active May 23, 2024 02:36
A basic game loop using std::chrono
/*
* The MIT License (MIT)
*
* Copyright (c) 2016 Mario Badr
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is