Requirements:
- openssl
- at_pkam
Requirements:
atdirectory() { | |
head -n 1 < <(openssl s_client -connect root.atsign.org:64 -quiet -verify_quiet < <(echo "$1"; sleep 1; echo "@exit") 2>/dev/null) | |
} | |
atserver() { | |
pkam_command="at_pkam" | |
atsign="$1" | |
if [[ ${atsign:0:1} != "@" ]] ; then | |
atsign="@$atsign" | |
fi |
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
IFS=$'\n\t' | |
if [ "$#" -ne 1 ]; then | |
echo "usage: ./download <year>" >&2 | |
exit 1 | |
fi |
#!/bin/bash | |
{ echo -ne "HTTP/1.0 200 OK\r\nContent-Disposition: inline; filename=\"hello.txt\"\r\nContent-Length: 13\r\n\r\n"; echo \"Hello World\!\"; } | nc -l 8080 |
import 'dart:async'; | |
void main() { | |
D().dispose(); | |
} | |
abstract class A { | |
FutureOr<void> dispose(); | |
} |
{ | |
"[json]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"[markdown]": { | |
"editor.defaultFormatter": "yzhang.markdown-all-in-one" | |
}, | |
"[yaml]": { | |
"editor.defaultFormatter": "redhat.vscode-yaml" | |
}, |
clone () { | |
REPO=$1 | |
shift | |
if [[ $REPO =~ ^(git@github\.com:.*|https:\/\/github\.com\/.*)$ ]] | |
then | |
prefix="" | |
else | |
prefix="[email protected]:" | |
fi | |
git clone "$prefix$REPO" "$@" |
import 'dart:io'; | |
// Enum as status Pattern (Approach 1) | |
enum MyStatusEnum { one, two, three } | |
class SmellyBean { | |
MyStatusEnum myStatus; | |
final String? onlyOnOne; |
import 'package:at_client_mobile/at_client_mobile.dart'; | |
import 'package:flutter/material.dart'; | |
// * Once the onboarding process is completed you will be taken to this screen | |
class HomeScreen extends StatelessWidget { | |
const HomeScreen({Key? key}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
// * Getting the AtClientManager instance to use below |