Skip to content

Instantly share code, notes, and snippets.

View 314pies's full-sized avatar
💭
What's code? Can I eat it?

314pies 314pies

💭
What's code? Can I eat it?
  • Amazon
  • California
  • 09:26 (UTC -07:00)
View GitHub Profile
@314pies
314pies / HiMongo.cs
Created March 13, 2017 05:46
TestingCodes
using UnityEngine;
using System.Collections;
using MongoDB.Bson;
using MongoDB.Driver;
using MongoDB.Driver.Builders;
using MongoDB.Driver.GridFS;
using MongoDB.Driver.Linq;
using System.IO;
public class HiMongo : MonoBehaviour {
public int TestWithGist(){
return 3;
}
using UnityEngine;
using System.Collections;
using LWWeaponSystem;
using LWNet;
using LWControl;
namespace LWCharacterSystem.Player
{
[RequireComponent(typeof(AudioSource))]
public class LWCharacterController : MonoBehaviour
{
@314pies
314pies / wq.cs
Created September 12, 2018 09:29
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class wq : MonoBehaviour {
public float LastRot;
public float Threshold=60.0f;
public float Anim, Current;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SmoothSyncTest : MonoBehaviour {
// Use this for initialization
void Start () {
StartCoroutine(NetworkSyncEmulating());
}
@314pies
314pies / BinomialDistributionCalculator.cpp
Last active November 16, 2018 05:18
Binomial distribution
/*
Input: x,n,p (Each inputs should separated by space or line)
Output: b(x,n,p)
*/
#include<iostream>
#include<cmath>
using namespace std;
long long int factorial(int n){
long long int _result=1;
for(int _n = n;n>=1;n--){
@314pies
314pies / ItemIdToLoadout.cs
Created November 25, 2018 15:54
ItemIdToLoadout.cs
```cs
using LWWeaponSystem;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Dazad : MonoBehaviour
{
public enum ItemTypes
@314pies
314pies / P1.cpp
Created April 8, 2019 09:33
linear algebra extra credits
#include<bits/stdc++.h>
using namespace std;
int main()
{
float A[2][2] = {{1,2},
{2,3}
};
float a,b,c,d;
@314pies
314pies / PlayFabGetMatchServerSideExample.cs
Last active August 3, 2019 08:16
Server side PlayFabMultiplayerAPI.GetMatch() example
//Unity C#
PlayFabSettings.TitleId = "Your Title Id";
PlayFabSettings.DeveloperSecretKey = "Your Developer Secret Key";
PlayFabAuthenticationAPI.GetEntityToken(new GetEntityTokenRequest { },
res =>
{
Debug.Log(res);
Debug.Log(res.Entity.Id);//Should be the title id
Debug.Log(res.EntityToken);
Debug.Log(res.Entity.Type);//Should be "title"
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using LW.Gameplay.Player;
namespace LW.Gameplay.Weapons
{
public class Aimer : MonoBehaviour
{
[ReadOnly]