This file contains hidden or 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
# Setup of Ghost Blog on Digital Ocean | |
# Increase swap: see https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-22-04 | |
sudo swapon --show | |
free -h | |
df -h | |
sudo fallocate -l 1G /swapfile | |
ls -lh /swapfile | |
sudo chmod 600 /swapfile |
This file contains hidden or 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 numpy as np | |
def p_predator_births(params, substep, state_history, previous_state): | |
'''Predator Births Policy Function | |
The predator birth rate (rate of predators born per unit of time) is a product of | |
the prey population and the predator birth parameter plus a random variable. | |
i.e. the larger the prey population, the higher the predator birth rate | |
''' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
** (ArgumentError) cannot convert component AppWeb.Component.Statistic with id nil to HTML. | |
A component must always be returned directly as part of a LiveView template. | |
For example, this is not allowed: | |
<%= content_tag :div do %> | |
<%= live_component @socket, SomeComponent %> | |
<% end %> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
with import <nixpkgs> { }; | |
(let | |
cadCAD = pkgs.callPackage ./cadCAD.nix { inherit (pkgs) ; }; | |
python = pkgs.python38.override { | |
packageOverrides = python-self: python-super: { | |
buildPythonPackage = python-super.buildPythonPackage.overridePythonAttrs | |
(oldAttrs: { doCheck = !pkgs.stdenv.isDarwin; }); | |
}; | |
}; |
This file contains hidden or 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(record in Domain.DHR.DeviceHistoryRecord, | |
left_join: failures in assoc(record, :failures), on: failures.device_history_record_id == entry.id, | |
where: ilike(failures.type, ^"%#{query}%"), | |
distinct: entry.id | |
) |
This file contains hidden or 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
/nix/store/75cr8j05iha71zzbyz1sxajmadbhxllz-sat-env/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:56:10: fatal error: 'DiskArbitration/DADisk.h' file not found | |
#include <DiskArbitration/DADisk.h> | |
^~~~~~~~~~~~~~~~~~~~~~~~~~ | |
1 error generated. | |
10:06:04.842 [error] Could not compile file system watcher for Mac, try to run "clang -framework CoreFoundation -framework CoreServices -Wno-deprecated-declarations c_src/mac/*.c -o priv/mac_listener" manually inside the dependency. |
NewerOlder