General (improvised) notes on haskell & undocumented venture of haskell features
- look out on
no Instacne arising errors
- parameter passing to has no Instance arising
- has no Instance arising
import numpy as np | |
import networkx as nx | |
lst = ['a','b','c', 'd'] | |
g_dst={} | |
i=0 | |
def check(graph:list)->str: | |
for k in range(len(graph)): |
set number | |
set nocompatible | |
filetype on | |
filetype indent on | |
filetype plugin on | |
set foldmethod=indent | |
set foldlevel=99 | |
color abstract | |
set rtp+=~/.vim/bundle/vundle.vim |
# | |
# Copyright (c) 2020 Idiap Research Institute, http://www.idiap.ch/ | |
# Written by Angelos Katharopoulos <[email protected]>, | |
# Apoorv Vyas <[email protected]> | |
# | |
"""The base attention layer performs all the query key value projections and | |
output projections leaving the implementation of the attention to the inner | |
attention module. |
#include<stdio.h> | |
#include<stdlib.h> | |
#include<sys/mman.h> | |
#include<string.h> | |
#include<assert.h> | |
#define GLOBAL_FILE 0x4000000 | |
void start_file(const char *fname) { | |
void *fp = mmap((void*)GLOBAL_FILE, sizeof(FILE), PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE,0,0); | |
FILE *f = fopen(fname, "w"); |
find -type f | awk "$(c=0;c_ref=0;for l_x in $(find -type f); do for l_y in $(find -executable -type f); do if [ "$l_x" == "$l_y" ]; then c_ref=$c;else c=$(($c+1));fi;done;c=0;echo $c_ref;done | while read line; do printf "NR!=%d || " $line;done | sed "s/$/NR!=1000/";printf "\n") {print}" |