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 filepathForShortName = async (shortname) => { | |
const result = await this.scrapbookPhotos | |
.select('filepath') | |
.where('shortname = :name') | |
.limit(1) | |
.bind('name', shortname) | |
.execute() | |
return result.fetchOne(); | |
} | |
//async functions are always a return type of a promise that resolves to w/e you return's types |
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 util = require('util'); | |
const setImmediatePromise = util.promisify(setImmediate); | |
//returns a promise that is an immediate timout followed by logging 'toLog' and then returning the logged value | |
const logLater = (toLog) => setImmediatePromise().then(()=> { | |
console.log(toLog) | |
return toLog | |
}) | |
//lets log a, then log what was logged + b |
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
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware -hardware C:\Users\mdm37\Documents\ArduinoData\packages -hardware C:\Users\mdm37\Documents\Arduino\hardware -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\tools-builder -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\tools\avr -tools C:\Users\mdm37\Documents\ArduinoData\packages -built-in-libraries C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\libraries -libraries C:\Users\mdm37\Documents\Arduino\libraries -fqbn=Move38-manual:avr:blink -ide-version=10809 -build-path C:\Users\mdm37\AppData\Local\Temp\arduino_build_227273 -warnings=none -build-cache C:\Users\mdm37\AppData\Local\Temp\arduino_cache_46204 -prefs=build.warn_data_percentage=75 -verbose C:\Users\mdm37\Documents\Ardui |
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 OVR.OVRFacade; | |
using UnityEngine; | |
// ReSharper disable once CheckNamespace | |
public class TouchInputAdapter : MonoBehaviour { | |
private static readonly string REGISTER_DATA_MESSAGE = "RegisterTouchData"; | |
private readonly TouchInputData touchInputData = new TouchInputData(); |
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.Linq; | |
using SSGVoxel.APIS; | |
using SSGVoxel.Utils; | |
using UnityEngine; | |
using Random = UnityEngine.Random; | |
namespace SSGVoxel.Noise { | |
static class NoiseGenerator { |