This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Text; | |
using UnityEngine; | |
using UnityEditor; | |
namespace Friday.Utilities | |
{ | |
public class ClearShaderProperties : EditorWindow | |
{ | |
private Material m_selectedMaterial; | |
private SerializedObject m_serializedObject; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias grhod='git reset --hard origin/develop; git clean -fd; git submodule update --recursive' | |
alias remod='git reset --hard; git clean -fd; git checkout -f develop; git remote update origin --prune; git reset --hard origin/develop; git clean -fd; git submodule update --recursive' | |
alias l='ls -la' | |
compdef g=git | |
__git_complete g __git_main | |
__git_complete grh _git_complete_refs | |
function endreview() { | |
gitdir=$(git rev-parse --show-toplevel)/.git | |
review_file=${gitdir}/review-branch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Check-Version() | |
{ | |
$file = $args[0] | |
$lines = Get-Content "$file" -TotalCount 2 | |
return $lines[0].Trim(), $lines[1].Trim() | |
} | |
function Install-Component() | |
{ | |
$PATH = $args[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root = true | |
[*] | |
charset = utf-8 | |
end_of_line = lf | |
indent_style = space | |
trim_trailing_whitespace = true | |
insert_final_newline = true | |
[*.{cs,py,shader,cginc,xml}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
using UnityEngine.SceneManagement; | |
using UnityEditor.SceneManagement; | |
using System; | |
public class FindMissingScriptsEditor : EditorWindow | |
{ | |
[MenuItem("Window/Utilities/Find Missing Scripts")] | |
public static void FindMissingScripts() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env ruby | |
guids = {} | |
dir = File.dirname(__FILE__) + "/../../unity/Assets/**/*.meta" | |
Dir.glob(dir, File::FNM_DOTMATCH).each do |script| | |
if File.read(script) =~ /guid: ([\h]+$)/m | |
guids[$1] = $1 | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Friday | |
{ | |
public class Singleton<T> where T : class, new() | |
{ | |
protected static T instance = null; | |
public static T Instance | |
{ | |
get | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Class1 | |
{ | |
public: | |
Class1() { dummy2(); } | |
virtual void dummy() = 0; | |
void dummy2() { dummy(); } | |
}; | |
class Class2 : public Class1 | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Compile error in unity 5 | |
using UnityEngine; | |
public class Test | |
{ | |
public enum TEST : byte | |
{ | |
NONE = 0, | |
TEST = 1, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir repo_merge | |
cd repo_merge | |
git clone zaki/test_server | |
git clone zaki/test_client | |
## PREPROCESS SERVER | |
cd test_server | |
git remote rm origin # precaution |
NewerOlder