This gist is now a repo: https://github.com/mikerochip/addressables-training-manual
Easier to remember the URL that way!
set remindersOpen to application "Reminders" is running | |
set todoistToken to "<YOUR_TOKEN_HERE>" | |
set apiCall to "curl https://api.todoist.com/sync/v9/quick/add" | |
set listOfCommands to {} | |
tell application "Reminders" | |
// Website you intended to retrieve for users. | |
const upstream = 'api.openai.com' | |
// Custom pathname for the upstream website. | |
const upstream_path = '/' | |
// Website you intended to retrieve for users using mobile devices. | |
const upstream_mobile = upstream | |
// Countries and regions where you wish to suspend your service. |
using System; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using UnityEngine; | |
namespace UnityUtilities | |
{ | |
/// <summary> | |
/// A replacement for `Task.Run()` that cancels tasks when entering or | |
/// exiting play mode in the Unity editor (which doesn't happen by default). |
# [CONFIGURATION] | |
# Ensure WSL2 container is started and SSH is running | |
wsl sudo /etc/init.d/ssh start | |
# Ports to be forwarded | |
$ports = @(22) + @(6543,6544) + @(6800..6810); | |
# Change $addr to restrict connections to a particular interface IP | |
$listen_addr = '0.0.0.0'; |
<template> | |
<svg class="sparkline" :width="width" :height="height" :stroke-width="stroke"> | |
<path class="sparkline--line" :d="shape" fill="none"></path> | |
<path | |
class="sparkline--fill" | |
:d="[shape, fillEndPath].join(' ')" | |
stroke="none" | |
></path> | |
</svg> | |
</template> |
This gist is now a repo: https://github.com/mikerochip/addressables-training-manual
Easier to remember the URL that way!
import { tween } from './tween'; | |
tween({ x: 0 }) | |
.to({ x: 1 }, 200) | |
.onStart(() => { console.log('onStart') }) | |
.onStop(() => { console.log('onStop') }) | |
.onComplete(() => { console.log('onComplete') }) | |
.onUpdate(tweenObj => { console.log('onUpdate', tweenObj.x) }) | |
.start(1000) |
// Example Lambda Client Service for Realtime Server example | |
// Original source: https://aws.amazon.com/blogs/gametech/creating-servers-for-multiplayer-mobile-games-with-amazon-gamelift/ | |
// Contains @BatteryAcid's edits to accompany video Unity + Amazon GameLift setup in web console | |
// https://youtu.be/WaAZyqgkXDY | |
//const uuid = require('uuid'); | |
const {"v4": uuidv4} = require('uuid'); | |
const AWS = require('aws-sdk'); | |
const GameLift = new AWS.GameLift({region: 'us-east-1'}); |
# Access host ports from WSL 2. | |
# https://gist.github.com/vilic/0edcb3bec10339a3b633bc9305faa8b5 | |
# Make sure WSL gets initialized. | |
bash.exe -c exit | |
# Record host name for /etc/hosts that points to host IP. | |
$HOST_NAME = "host.wsl"; | |
# Ports listened on host localhost to forward, you don't need to add the port if it listens all addresses. |