Last Update: May 13, 2019
Offline Version
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
# This file contains a basic implementation of the FKRB estimator for the random coefficients logit model in Julia. | |
# In particular, it implements a constrained elastic net version of the estimator with aggregate data. | |
# -- Fox, Kim, Ryan, and Bajari (2011) https://onlinelibrary.wiley.com/doi/abs/10.3982/QE49 | |
# Written by James Brand, 2023 | |
# The main components of the code include: | |
# - The `logexpratio` function, which calculates market shares for a given parameter vector. | |
# - The `FKRBProblem` struct, which represents the FKRB problem and stores relevant data and results. | |
# - The `define_problem` function, which defines the FKRB problem based on input data and variables. |
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
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam' | |
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes' | |
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no' |
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
# NOTE: | |
# You can find an updated, more robust and feature-rich implementation | |
# in Zeno Build | |
# - Zeno Build: https://github.com/zeno-ml/zeno-build/ | |
# - Implementation: https://github.com/zeno-ml/zeno-build/blob/main/zeno_build/models/providers/openai_utils.py | |
import openai | |
import asyncio | |
from typing import Any |
Some notes on getting Debian 10 (stable) installed and running on the Beelink U57 Mini PC with Intel Core i5-5257u Processor.
Create a bootable USB Flash drive of the Debian 10 netinst ISO using Etcher.
- Download ISO from Debian: https://www.debian.org/distrib/netinst
- Flash to SD Card using Balena Etcher https://www.balena.io/etcher/
- Connect ethernet cable to Beelink
Note: The firmware needed to use the Beelink's onboard Intel Wifi is proprietary, and is not included with the default install of Debian. If you don't have the option of a wired LAN connection you can use an "unofficial" Debian CD image, that includes the proprietary (non-free) firmware. (https://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/) See the below section on installing the firmware later on.
- Immediately after startup press the
Del
key to enter the BIOS.
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
# Add this to your ~/.config/fish/config.fish | |
# Syntax: | |
# To just rerun your last command, simply type '!!' | |
# This forked version supports "sudo !!" via two functions. | |
function !! | |
eval $history[1] $argv | |
end function | |
function sudo | |
if test $argv |
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
# Context: https://twitter.com/grant_mcdermott/status/1487528757418102787 | |
library(data.table) | |
library(fixest) | |
bboot = | |
function(object, reps = 100L, cluster = NULL, ...) { | |
fixest_obj = inherits(object, c('fixest', 'fixest_multi')) | |