- Open the Glitch project
- Open the Advanced Options and click Open Console
- Run this command:
git fetch --all && git reset --hard origin/master && refresh
This file contains hidden or 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
import { Duration, Effect, Either, Scope, Cause } from 'effect'; | |
// This function allows you call to a scoped effect, return the response | |
// then use the ctx.waitUntil api to ensure the worker continues | |
// to run until the scope is done closing. It handles, success, | |
// failures and defects. | |
const runAwaitingScopeClose = | |
<Input, S extends Response, E>(effect: (input: Input, env: Env, ctx: ExecutionContext) => Effect.Effect<S, E, Scope.Scope>) => | |
(input: Input, env: Env, ctx: ExecutionContext): Promise<Response> => { |
This file contains hidden or 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
#!/bin/bash | |
cd "$(dirname "$0")/.." | |
set +ex | |
# Setup tunnel | |
ssh -D 9090 -N -f <user>@somehostintheus.com | |
# Open chrome |
This file contains hidden or 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
class PaywallHelper: PaywallDelegate { | |
func shouldTryToRestore() { | |
Purchases.shared.restoreTransactions { (purchaserInfo, error) in | |
if let purchaserInfo = purchaserInfo { | |
if let entitlement = purchaserInfo.entitlements["membership"] { | |
if entitlement.isActive { |
This file contains hidden or 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
name: Issue Certificate | |
on: | |
schedule: | |
- cron: 32 4 * * 3 | |
workflow_dispatch: | |
jobs: | |
request_certificate: | |
runs-on: ubuntu-latest |
This file contains hidden or 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
import { createContext, FC, useReducer } from 'react'; | |
/** | |
* Context hook | |
* | |
*/ | |
type ExampleContextType = { | |
value: string , |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
# This setup assumes a single team install | |
PORT=3000 | |
SLACK_VERIFY_TOKEN="PUT YOUR SLACK VERIFY TOKEN HERE" | |
APP_TOKEN="PUT YOUR APP TOKEN HERE" | |
BOT_TOKEN="PUT YOUR BOT TOKEN HERE" | |
BOT_USER_ID="PUT YOUR BOT USER ID HERE" | |
# Note: There can be no spaces between the variable name, the equal sign and the value. |

NewerOlder