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
Short Term 12 | |
Dear Zachary: A Letter to ... | |
Detachment | |
Samsara | |
Broken | |
It's A Disaster | |
Citizenfour | |
The Naked Gun | |
Slow West |
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
// SEE THE UPDATED, PURE CODE VERSION BELOW! | |
using UnityEngine; | |
using System.Collections; | |
using Com.LuisPedroFonseca.ProCamera2D; | |
public class ProCamera2DStagingShake : MonoBehaviour { | |
private ProCamera2DShake shaker; |
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 DG.Tweening; // remove this if you're not using DOTween | |
using System.Collections; | |
using UnityEngine; | |
using UnityStandardAssets.ImageEffects; | |
/// <summary> | |
/// An extension class for dynamically adding noise to the camera easily at runtime | |
/// </summary> | |
public class DynamicCameraEffects : 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
Shader "Custom/PlotShader" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
} | |
SubShader | |
{ |
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 UnityEngine; | |
public class BookOfShadersBlit : MonoBehaviour { | |
private Material _material; | |
private void Awake() | |
{ | |
_material = new Material(Shader.Find("Custom/PlotShader")); |
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
# // Originally found here: https://answers.unity.com/questions/1131497/how-to-measure-the-amount-of-time-it-takes-for-uni.html | |
using UnityEngine; | |
using UnityEditor; | |
[InitializeOnLoad] | |
class CompileTime : EditorWindow | |
{ | |
static bool isTrackingTime; | |
static double startTime; |
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
[ | |
{ | |
"contractName": "Dai", | |
"address": "0x4f96fe3b7a6cf9725f59d353f723c1bdb64ca6aa" | |
}, | |
{ | |
"contractName": "Sai", | |
"address": "0xc4375b7de8af5a38a93548eb8453a498222c4ff2" | |
}, | |
{ |
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
## // First query (slow, ~5 seconds): | |
{ | |
tokens(where: {id_in: ["0xdac17f958d2ee523a2206206994597c13d831ec7", "0x0ae055097c6d159879521c384f1d2123d1f195e6", "0x0d438f3b5175bebc262bf23753c1e53d03432bde", "0x0d8775f648430679a709e98d2b0cb6250d2887ef", "0x1ceb5cb57c4d4e2b2433641b95dd330a33185a44", "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984", "0x23687d9d40f9ecc86e7666dddb820e700f954526", "0x28cb7e841ee97947a86b06fa4090c8451f64c0be", "0x439ce375e3ee4dc203d71958beca3c0f417d65cb", "0x531c3a8926e4c4b4cc50dc1de83e1e7fa0b2738e", "0x537a9095b78517597b5f2058edcd6e1978095909", "0x55801d4dbd6699a527c663e9f08fdbc080f87c3e", "0x58b6a8a3302369daec383334672404ee733ab239", "0x64795db64dc318c0e68cfb38eeb0b8e30b139b3e", "0x6b175474e89094c44da98b954eedeac495271d0f", "0x6b3595068778dd592e39a122f4f5a5cf09c90fe2", "0x8daebade922df735c38c80c7ebd708af50815faa", "0x973e52691176d36453868d9d86572788d27041a9"]}) { | |
id | |
symbol | |
name | |
decimals | |
} |
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
// React Hooks | |
import { ethers } from 'ethers' | |
import { useAllPools } from '@pooltogether/hooks' | |
export const usePooltogetherTotalPrizes = () => { | |
const { isFetched, data } = useAllPools() | |
if (!isFetched || !data) return null | |
return calculateTotalPrizes(data) | |
} |