A Pen by bitolodeonai7 on CodePen.
Discover gists
import 'dart:async'; | |
import 'dart:convert'; | |
import 'dart:io'; | |
import 'package:meta/meta.dart'; | |
import 'package:mime/mime.dart'; | |
import 'package:path/path.dart'; | |
import 'package:http/http.dart' as http; | |
abstract class ApiClient { |
# FindZIP.cmake - Pack and unpack ZIP files as custom targets | |
# ------------------------------------------------------------------------------ | |
# Provides: | |
# | |
# ZIP_PACK_TARGET TARGET WORKING_DIRECTORY ARCHIVE FILES... | |
# TARGET - The name of the custom target | |
# WORKING_DIRECTORY - The working directory for the zip command | |
# ARCHIVE - The full archive path | |
# FILES... - The files and directories to include in the archive | |
# (relative to WORKING_DIRECTORY) |
The below is a breakdown / bird's eye view of how a sparse-array backed ECS like EnTT or Shipyard works.
Please see the thanks and references at the bottom - without their help I would not have been able to share this breakdown with you... everything here is really just notes and rephrasing of what they've written already :)
Also, these notes do not cover archetype systems (like unity) nor adaptations of archetypes (like in Flecs). Though there's a couple comparative footnotes at the end.
Here we go!
function myAsyncFunction() { | |
return new Promise((resolve, reject) => { | |
setTimeout(() => { | |
const randomNumber = Math.random(); | |
if (randomNumber > 0.5) { | |
resolve(randomNumber); // Resolve the promise with a value | |
} else { | |
reject(new Error("Random number is less than 0.5")); // Reject the promise with an error | |
} | |
}, 1000); |
#!/usr/bin/env bash | |
# To fix the " gpg: WARNING: unsafe permissions on homedir '/home/path/to/user/.gnupg' " error | |
# Make sure that the .gnupg directory and its contents is accessibile by your user. | |
chown -R $(whoami) ~/.gnupg/ | |
# Also correct the permissions and access rights on the directory | |
chmod 600 ~/.gnupg/* | |
chmod 700 ~/.gnupg |
This document describes the HTTP communication of LibreLinkUp which functions as follower app to receive cgm data. Some data in the responses were masked.
This dump was created on an android device with LibreLinkUp app. Capturing was done with HttpToolkit over adb.
## regular case | |
foo <- function(a, b, c) a + b - c ## does something | |
foo2 <- function(b, c) b + c ## also some function | |
foo(a=1, b=2, c=5) | |
foo2(b=2, c=5) ## repeating list of multiple arguments | |
## passing a list | |
arg.list <- list(b=2, c=5) | |
do.call(foo, c(list(a=1), arg.list)) | |
do.call(foo2, arg.list) |