-
Find the Discord channel in which you would like to send commits and other updates
-
In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe!
This is a quick guide to using IPFS as a file store for your IIIF "level 0" image service tiles.
Clone https://github.com/zimeon/iiif
Follow the install instructions
Regenerate the tetons tiles and info.json
: https://github.com/zimeon/iiif/tree/master/demo-static#regerating-tiles
ipfs add -r tetons
An expression beginning with a left arrow (<-
) inside a do
block statement is desugared to a monadic binding. This is syntactically a superset of existing Haskell, including extensions. It admits a clean notation that subsumes existing patterns and comes with few downsides.
do
f (<- x) (<- y)
-- ===
https://stackoverflow.com/a/18003462/348146
None of these suggestions worked for me, because Android was appending a sequence number to the package name to produce the final APK file name (this may vary with the version of Android OS). The following sequence of commands is what worked for me on a non-rooted device:
Determine the package name of the app, e.g.
com.example.someapp
. Skip this step if you already know the package name.
adb shell pm list packages
Look through the list of package names and try to find a match between the app in question and the package name. This is usually easy, but note that the package name can be completely unrelated to the app name. If you can't recognize the app from the list of package names, try finding the app in Google Play using a browser. The URL for an app in Google Play contains the package name.
// set use_cholesky if M is symmetric - it's faster and more stable | |
// for dep paring it won't be | |
template <typename MatrixType> | |
inline typename MatrixType::Scalar logdet(const MatrixType& M, bool use_cholesky = false) { | |
using namespace Eigen; | |
using std::log; | |
typedef typename MatrixType::Scalar Scalar; | |
Scalar ld = 0; | |
if (use_cholesky) { | |
LLT<Matrix<Scalar,Dynamic,Dynamic>> chol(M); |
package main | |
// This program takes a .zim-file and dumps all contained articles below the | |
// current directory. I tested it with a Wikipedia snapshot; that did not | |
// contain deleted articles or LinkTargetEntrys, so I'm unsure how to handle | |
// those, for now I'm ignoring them. | |
// | |
// Redirects are handled by simply writing out the page pointed to by the | |
// redirect. IPFS deduplication should take care of it, so I think this is the | |
// most economical solution, even better than writing out small HTML files with |
#!/bin/bash | |
# | |
# Linux installation script for CmdStan (http://mc-stan.org/) | |
# Downloads and installs CmdStan on DEBIAN/UBUNTU LINUX | |
# The following shell commands will be created (/usr/bin/...): | |
# stanc | |
# stan_make | |
# stan_print | |
# | |
# Please adapt VERSION number! |
#!/bin/bash | |
set -e | |
# Install NaCl | |
wget http://storage.googleapis.com/nativeclient-mirror/nacl/nacl_sdk/nacl_sdk.zip | |
unzip nacl_sdk.zip | |
rm nacl_sdk.zip | |
nacl_sdk/naclsdk list |
import Control.Monad | |
type Var = Integer | |
type Subst = [(Var, Term)] | |
type State = (Subst, Integer) | |
type Program = State -> KList State | |
data Term = Atom String | Pair Term Term | Var Var deriving Show | |
-- Apply a substitution to the top level of a term |
gdisk /dev/sda # make 1 partition | |
mkfs.vfat -n BOOT /dev/sda1 | |
mkfs.btrfs -L root /dev/sdb | |
mkfs.btrfs -L docker /dev/sdc | |
mount -t btrfs -o noatime,discard,ssd,autodefrag,compress=lzo,space_cache /dev/sdb /mnt/ | |
btrfs subvolume create /mnt/nixos | |
umount /mnt/ | |
mount -t btrfs -o noatime,discard,ssd,autodefrag,compress=lzo,space_cache,subvol=nixos /dev/sdb /mnt/ |