Reference for How to Write an Open Source JavaScript Library
The purpose of this document is to serve as a reference for:
How to Write an Open Source JavaScript Library course by Kent C. Dodds
Watch the series at egghead.io, if you haven't.
# "impute" missing binary predictor | |
# really just marginalizes over missingness | |
# imputed values produced in generated quantities | |
N <- 1000 # number of cases | |
N_miss <- 100 # number missing values | |
x_baserate <- 0.25 # prob x==1 in total sample | |
a <- 0 # intercept in y ~ N( a+b*x , 1 ) | |
b <- 1 # slope in y ~ N( a+b*x , 1 ) |
The purpose of this document is to serve as a reference for:
How to Write an Open Source JavaScript Library course by Kent C. Dodds
Watch the series at egghead.io, if you haven't.
/* | |
Author: Thomas Klok Rohde | |
Description: | |
Explore the entire model | |
Dependencies: | |
- Vis Network: https://github.com/visjs/vis-network. | |
- Bootstrap CSS | |
- A modern webbrowser with support for the DIALOG element | |
History: | |
November 27, 2022 : Created |
import logging | |
_trace_installed = False | |
def install_trace_logger(): | |
global _trace_installed | |
if _trace_installed: | |
return | |
level = logging.TRACE = logging.DEBUG - 5 |
/* | |
* Export Selected Folder in Source Model to New Target Model | |
* | |
* https://gist.github.com/fanievh/4ec7d14247616846f3d16b5e22dc80a9 | |
* | |
* This script copies a selected subset of a source model to a target model. The folder selected | |
* in the source model, will become the top level folder in the Views folder in the target model. Only | |
* elements, relationships, diagram objects, connections and images on any of the views in the selected | |
* folder in the source model, will be created in the target model. | |
* |
private string GetOfflinePlayerUUID(string username) | |
{ | |
//new GameProfile(UUID.nameUUIDFromBytes(("OfflinePlayer:" + name).getBytes(Charsets.UTF_8)), name)); | |
byte[] rawresult = System.Security.Cryptography.MD5.Create().ComputeHash(Encoding.UTF8.GetBytes($"OfflinePlayer:{username}")); | |
//set the version to 3 -> Name based md5 hash | |
rawresult[6] = (byte)(rawresult[6] & 0x0f | 0x30); | |
//IETF variant | |
rawresult[8] = (byte)(rawresult[8] & 0x3f | 0x80); | |
//convert to string and remove any - if any | |
string finalresult = BitConverter.ToString(rawresult).Replace("-", ""); |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
Script Name: Quality Check - UX Relations | |
Script Description: | |
A jArchi script for use on Archi tool models. | |
Using a specific view called ConceptDefinition to represent a cut down version of the full ArchiMate model, | |
check all the model relationships to flag up any unexpected ones. |
You can follow the steps below to enable live reload of a Laravel project using Laravel Mix and BrowserSync.
Important
You need to have Node.js installed on your machine to use Laravel Mix. If you don't have Node.js installed, you can download it from here.
Steps to enable live reload of a Laravel project using Laravel Mix and BrowserSync:
// According to https://gist.github.com/tadas-subonis/6e23811db350a440cd47e2e5dd40e2cb | |
const numToText = (num) => { | |
const units = [ | |
"", | |
"vienas", | |
"du", | |
"trys", | |
"keturi", | |
"penki", |
An guide how to activate Windows 11 Pro for free
Because you will get some more features like an Bitlocker and host your device as an External Desktop which can be accessed through the internet
The answer is yes! You can switch from almost any edition to Pro completely for free!
People which already have Pro, but not activated, can skip to this step.
What you first need to do is open CMD (Command Prompt) as Administrator using this keyboard key: