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
void DereferenceManagedObject(int32_t handle) | |
{ | |
assert(handle >= 0 && handle < managedObjectsRefCountLen); | |
if (handle != 0) | |
{ | |
auto numRemain = --managedObjectRefCounts[handle]; | |
assert(numRemain >= 0); | |
if (numRemain <= 0) | |
{ | |
ReleaseObject(handle); |
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' | |
const fs = require('fs') | |
const path = require('path') | |
const os = require('os') | |
const df = require('data-forge') | |
// Read the history of commands executed in the Fish shell and work out which | |
// are used the most! | |
const filePath = path.join(os.homedir(), '.local/share/fish/fish_history') |
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
splitBy :: (a -> Bool) -> [a] -> [[a]] | |
splitBy p = map reverse . reverse . splitByInner [[]] p | |
splitByInner :: [[a]] -> (a -> Bool) -> [a] -> [[a]] | |
splitByInner acc _ [] = acc | |
splitByInner (current:rest) predicate (x:xs) = | |
if predicate x then | |
splitByInner ([]:current:rest) predicate xs | |
else | |
splitByInner ((x:current):rest) predicate xs |
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
filter.lfs.clean=git-lfs clean -- %f | |
filter.lfs.smudge=git-lfs smudge -- %f | |
filter.lfs.required=true | |
filter.lfs.process=git-lfs filter-process | |
user.name=Rory Dungan | |
user.email=rorydungan@gmail.com | |
diff.tool=vimdiff | |
difftool.winmerge.cmd=WinMergeU -e `cygpath -w $LOCAL` `cygpath -w $REMOTE` | |
merge.tool=vimdiff3 | |
merge.prompt=false |
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.IO; | |
using UnityEditor; | |
using UnityEngine; | |
namespace Assets.Editor | |
{ | |
/// <summary> | |
/// Utiltiy for making Android builds that automatically sets up the | |
/// keystore. | |
/// </summary> |
OlderNewer