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; | |
using System.Collections.Generic; | |
namespace KanameExtensions { | |
public class ConcurrentQueue<T> { | |
//private vars | |
private readonly object syncLock = new object(); | |
private Queue<T> rqueue; | |
//constructors |
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 UnityEngine.Networking; | |
using System; | |
using System.Collections.Generic; | |
namespace AlderAcres.Network { | |
/// <summary> | |
/// | |
/// </summary> | |
/// <remarks> |
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 SyntaxTree.VisualStudio.Unity.Bridge; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Xml.Linq; | |
using UnityEditor; | |
using UnityEngine; | |
// Post processor for excluding shader files from the csproj unity 2018 generates | |
[InitializeOnLoad] | |
public class CsprojPostProcessor : MonoBehaviour { |
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 std::ops::*; | |
#[derive(Copy, Clone)] | |
struct Vector3 { | |
x: f32, | |
y: f32, | |
z: f32 | |
} | |
#[allow(dead_code)] |
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
# Audio | |
*.wav filter=lfs diff=lfs merge=lfs -text | |
*.mp3 filter=lfs diff=lfs merge=lfs -text | |
# Models | |
*.obj filter=lfs diff=lfs merge=lfs -text | |
*.dae filter=lfs diff=lfs merge=lfs -text | |
*.fbx filter=lfs diff=lfs merge=lfs -text | |
*.mat filter=lfs diff=lfs merge=lfs -text |
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
# =============== # | |
# Unity generated # | |
# =============== # | |
[Tt]emp/ | |
[Oo]bj/ | |
/[Bb]uild/ | |
/[Ll]ibrary/ | |
# ======================================== # | |
# Visual Studio / Android Studio generated # |
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 std::any::TypeId; | |
macro_rules! depends_on { | |
($($type:ty),*) => { | |
fn dependencies(&self) -> &'static [TypeId] { | |
$(<$type as System>::__assert_is_system();)* | |
&[$(TypeId::of::<$type>()),*] | |
} | |
} |
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
#![feature(const_fn, const_type_id)] | |
#[macro_use] | |
mod macros { | |
macro_rules! foreach_permutation { | |
($action:ident!(), $type:ident) => { | |
$action!($type); | |
}; | |
($action:ident!(), $type_lead:ident, $($type:ident),*) => { | |
$action!($type_lead, $($type),*); |
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
extern crate rand; // 0.5.5 | |
use std::default::Default; | |
use rand; | |
macro_rules! declare_components { | |
($($name:ident),*) => { | |
$( | |
struct $name { | |
pub value: i32 |
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
const COUNT: i32 = 500_000; | |
const BLOCK_SIZE: i32 = 1024; | |
fn main() { | |
let mut count = COUNT; | |
let mut block_count = 0; | |
let mut layer_count = 1; | |
while count > BLOCK_SIZE { | |
let blocks = (count as f32 / (BLOCK_SIZE as f32)).ceil() as i32; |
OlderNewer