- 250 g dried chickpeas
- 1 tsp baking soda
- 1.5 L water
- 270 g sesame seeds
- 60 ml lemon juice (4 lemons)
- 4 cloves of garlic
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
object words { | |
def main(args: Array[String]): Unit = { | |
println( | |
"ButterBeer".foldLeft (new scala.collection.mutable.HashMap[Char, Int]().withDefaultValue(0)) | |
{ (h,c) => h.updated(c, h(c) + 1) }. | |
retain((_,v) => v > 1). | |
mkString("\n") | |
); | |
} |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <assert.h> | |
#include <string.h> | |
#include <ctype.h> | |
// return a pointer to the first character that does not satisfy the function f | |
// or a pointer to the end of the string | |
char *skip(char *st, int (f)(char)) |
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
## reproduce the figures from http://www.jstatsoft.org/v28/c01/paper using ggplot2 | |
library(ggplot2) | |
## parameters | |
set.seed(2710) | |
## Figure 1 | |
d <- rnorm(50) |
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
#!/bin/bash | |
filename=$1 | |
size=`stat -L "$filename" -c "%s"` | |
pv -s $size "$filename" | bzip2 -c > "$filename.bz2" |
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
#include <iostream> | |
#include <vector> | |
int main() | |
{ | |
std::vector < // I want a vector | |
std::vector<double> // each element of the vector is a vector | |
> variableName // name of the vector | |
(5, // how many elements in the frist dimension | |
std::vector<double>(2) // It knows each element is a vector (the subvectors. Here we say exactly | |
// what size each subvector to create |
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
#!/usr/bin/bash | |
# replace the next line with the location of your addon | |
MDIR=/home/dmg/.local/share/Anki2/addons21/MecabUnidic/support | |
export LD_LIBRARY_PATH=$MDIR: | |
export DYLD_LIBRARY_PATH=$MDIR: | |
#$MDIR/mecab.lin --eos-format='\n' --unk-format='' -d $MDIR -r $MDIR/mecabrc "$1" | |
# MECAB_NODE_UNIDIC_22_PARTS = ['%f[7]', '%f[10]', '%m', '%f[6]', '%f[0]', '%f[1]'] | |
# i swapped the location of %m to first column | |
#$MDIR/mecab.lin -P | |
$MDIR/mecab.lin --eos-format='\t\t\t\tEOS\tEOS\n' --unk-format='%M\t%f[0]\t%M\t%f[1]\tunknown\tunknown\n' --node-format='%f[7]\t%f[10]\t%m\t%f[6]\t%f[0]\t%f[1]\n' -d $MDIR -r $MDIR/mecabrc "$1" |
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
function is_front_by_bundle_id(bundleID) | |
local currentWindow = hs.window.focusedWindow() | |
local currentBundle = nil | |
if currentWindow then | |
currentBundle = currentWindow:application():bundleID() | |
end | |
return currentBundle == bundleID | |
end | |
(let ((startTime (float-time)))
(progn
; (print (length (org-roam-node-read--completions)))
(print (length (org-roam-node-list)))
(print (- (float-time) startTime)))))