Moved to https://github.com/sipa/writeups/tree/main/minimizing-golomb-filters
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
-- forked from https://github.com/nvim-lua/kickstart.nvim | |
-- TODO | |
-- system clipboard copy config (unnamedplus?) | |
-- Install packer | |
local install_path = vim.fn.stdpath 'data' .. '/site/pack/packer/start/packer.nvim' | |
local is_bootstrap = false | |
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then | |
is_bootstrap = true |
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
module TraceCalls2 | |
using JuliaInterpreter, OrderedCollections, LightGraphs | |
const callchains = OrderedSet{Vector{Method}}() | |
const modules = Set{Module}() | |
function callchain(frame::JuliaInterpreter.Frame) | |
chain = Method[] | |
sc = JuliaInterpreter.scopeof(frame) | |
while sc isa Method |
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
using Plots | |
# a vector of r values | |
Rs=collect(0.1:0.001:3) | |
T = 5000 | |
N=zeros(length(Rs), T) | |
#Set t0 values to 1 | |
N[:,1] .= 1 |
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
#!/bin/bash | |
if [ -z "$1" ]; then | |
echo "waiting for the following arguments: username + max-page-number" | |
exit 1 | |
else | |
name=$1 | |
fi | |
if [ -z "$2" ]; then |
This document has been modified from its [original format][m1], which was written by Ning Shang ([email protected]). It has been updated and reformatted into a [Markdown][m2] document by [Woody Gilk][m3] and [republished][m4].
When working with a remote git repository which is hosted on a third-party storage server, data confidentiality sometimes becomes
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
// Fast 1D convolution with AXV | |
// By Joannes Vermorel, Lokad, January 2018 | |
// Released under MIT license | |
#include <string.h> | |
#include <stdio.h> | |
#include <malloc.h> | |
/* A simple implementation of a 1D convolution that just iterates over | |
* scalar values of the input array. |
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
#include <iostream> | |
#include <vector> | |
#include "tiny_dnn/tiny_dnn.h" | |
using namespace tiny_dnn; | |
using namespace tiny_dnn::activation; | |
using namespace tiny_dnn::layers; | |
int main() | |
{ |
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
#!/usr/bin/env zsh | |
if [[ $# -eq 0 ]] | |
then | |
echo 'outline_type3.zsh [option/files]' | |
echo 'options:' | |
echo "\t-f\ttoggle overwrite" | |
else | |
overwite=false | |
for file in "$@" | |
do |
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
#!/usr/bin/env zsh | |
main() | |
{ | |
START=$(date +%s) | |
STARTT="$(date)" | |
OUT="$(mktemp nm.XXXXXXXXXX)" | |
echo "the launchpath was $(pwd) with pid $$" > $OUT | |
echo "the received output is:" >> $OUT | |
if [ "$1" = "-" ] | |
then |
NewerOlder