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
"use strict"; | |
// ================================================= | |
// a common question that pops up is | |
// 'why do my async functions use the final value of my loop variable instead of the one they are called with'? | |
// its because they refer directly to the loop variable and its last value | |
// the solutions are various ways to bind the loop variable in a new scope | |
// | |
// this gist shows different ways to handle a loop that spawns an async function that depends on the loop index | |
// ================================================= |
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
--- src/Makefile.original2015-02-27 10:53:53.130125907 -0500 | |
+++ src/Makefile 2015-02-27 10:53:24.674126798 -0500 | |
@@ -7,7 +7,7 @@ | |
PLAT= none | |
CC= gcc -std=gnu99 | |
-CFLAGS= -O2 -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS) | |
+CFLAGS= -O2 -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS) -fPIC | |
LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS) | |
LIBS= -lm $(SYSLIBS) $(MYLIBS) |
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
--- Makefile 2014-10-29 19:14:41.000000000 -0400 | |
+++ Makefile.patched 2015-02-27 14:19:23.077739861 -0500 | |
@@ -38,21 +38,21 @@ | |
# Convenience platforms targets. | |
PLATS= aix bsd c89 freebsd generic linux macosx mingw posix solaris | |
+# Lua version and release. | |
+V= 5.3 | |
+R= $V.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
using Unity.Collections; | |
using Unity.Collections.LowLevel.Unsafe; | |
using Unity.Mathematics; | |
using UnityEngine; | |
public class NativeMeshTest : MonoBehaviour | |
{ | |
private NativeArray<float3> vertexBuffer; | |
private Vector3[] vertexArray; |
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
wordlist created from original 41G stash via: | |
grep -rohP '(?<=:).*$' | uniq > breachcompilation.txt | |
Then, compressed with: | |
7z a breachcompilation.txt.7z breachcompilation.txt | |
Size: |
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
# Lines starting with # are comments | |
# Always extract audio | |
-x | |
# Do not copy the mtime | |
--no-mtime | |
# Use this proxy | |
--proxy 127.0.0.1:1080 |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\msys2_shell] | |
@="Open MSYS2 here" | |
"Icon"="\"D:\\msys64\\msys2.ico\"" | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\msys2_shell\command] | |
@="D:\\msys64\\msys2_shell.cmd -mingw -here" | |
[HKEY_CLASSES_ROOT\Folder\shell\msys2_shell] |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
public class FocusOnPivot : MonoBehaviour { | |
[MenuItem("Edit/Focus on Selected Pivot %g")] | |
static void Focus() | |
{ |
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
// Drop into Assets/Editor, use "Tools/Regenerate asset GUIDs" | |
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using UnityEditor; | |
namespace UnityGuidRegenerator { | |
public class UnityGuidRegeneratorMenu { |
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 System.Collections; | |
public class PyramidGenerator : ScriptableWizard | |
{ | |
public int size = 4; | |
public bool flat = true; |