A Pen by @keyframers on CodePen.
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
import { Schema as S, AST } from "@effect/schema" | |
import * as Errors from "./errors" | |
import { Either, Option } from "effect" | |
const overwriteTag = <Tag extends AST.LiteralValue>(tag: Tag) => | |
S.optionalToRequired(S.Unknown, S.Literal(tag), { | |
decode: () => tag, | |
encode: () => Option.none() | |
}).pipe(S.withConstructorDefault(() => tag)) |
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
import * as build from "@remix-run/dev/server-build"; | |
import { createRoutes } from "@remix-run/server-runtime/dist/routes"; | |
import { Dedupe, ExtraErrorData, Transaction } from "@sentry/integrations"; | |
import { hasTracingEnabled } from "@sentry/tracing"; | |
import { Toucan } from "toucan-js"; | |
import createEventHandler from "./createEventHandler"; | |
import instrumentBuild, { getTransactionName, startRequestHandlerTransaction } from "./instrumentBuild"; | |
interface Environment { | |
__STATIC_CONTENT: KVNamespace<string>; |
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
// Name: daily note | |
// Description: Open today's daily note in obsidian | |
// You must install the Actions URI plugin and have the daily notes plugin enabled | |
// Currently MacOS only | |
import "@johnlindquist/kit" | |
import { homedir } from "os" | |
import { join as joinPath } from "path" |
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
// Name: daily note | |
// Description: Open today's daily note in obsidian | |
// You must install the Actions URI plugin and have the daily notes plugin enabled | |
// Currently MacOS only | |
import "@johnlindquist/kit" | |
import { homedir } from "os" | |
import { join as joinPath } from "path" |
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
import inspect | |
from typing import Callable, Generator, Awaitable, TypeVar, Union | |
YieldType = TypeVar("YieldType") | |
SendType = TypeVar("SendType") | |
ReturnType = TypeVar("ReturnType") | |
def friendly_generator_decorator( | |
genfunction: Callable[..., Generator[YieldType, SendType, ReturnType]], | |
handler: Callable[[YieldType], Union[Awaitable[SendType], SendType]], |
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
import sys | |
import json | |
import websocket | |
ws = websocket.create_connection('ws://tracker.archiveteam.org:1337/api/live_stats') | |
username = sys.argv[1] | |
while True: | |
data = json.loads(ws.recv()).get('live_new') |
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
getdirentries64(0x6, 0x7FD7728E2A00, 0x1000) = 1192 0 | |
close_nocancel(0x6) = 0 0 | |
fstat64(0x5, 0x7FFF50CE06D0, 0x1000) = 0 0 | |
fstat64(0x5, 0x7FFF50CE0720, 0x1000) = 0 0 | |
open_nocancel("/Users/human/.virtualenvs/main/lib/python2.7/site-packages/salt/renderers/mako.pyc\0", 0x0, 0x1B6) = 6 0 | |
fstat64(0x6, 0x7FFF50CE04F8, 0x1B6) = 0 0 | |
read_nocancel(0x6, "\003\363\r\nK\2012Tc\0", 0x1000) = 1282 0 | |
fstat64(0x6, 0x7FFF50CE0608, 0x1000) = 0 0 | |
read_nocancel(0x6, "\n .hostmask: IPv4Address('0.0.0.31')\n .broadcast: IPv4Address('1.2.3.31')\n .netmask: IPv4Address('255.255.255.224')\n .prefixlen: 27\n\n i\377\0", 0x1000) = 0 0 | |
close_nocancel(0x6) = 0 0 |
I hereby claim:
- I am johtso on github.
- I am johtso (https://keybase.io/johtso) on keybase.
- I have a public key whose fingerprint is 480D 27DC 20A4 E61E F849 037C 581B 992E 7F19 4964
To claim this, I am signing this object:
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
from kivy.app import App | |
from kivy.uix.button import Button | |
from android import activity | |
__version__ = '0.0.1' | |
class MyApp(App): | |
def __init__(self, *args, **kwargs): | |
super(MyApp, self).__init__(*args, **kwargs) |
NewerOlder