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
| // clang++ -o tests/perftest-fncb tests/perftest-fncb.cpp -std=c++11 -O3 -march=native -mtune=native | |
| #include <algorithm> | |
| #include <atomic> | |
| #include <chrono> | |
| #include <functional> | |
| #include <stdio.h> | |
| #include <string> | |
| #include <thread> | |
| #include <vector> |
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
| template <typename... Ts> | |
| struct box { | |
| using t = box<Ts...>; | |
| }; | |
| template <typename... Ts> | |
| struct flatten; | |
| template <typename T> |
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
| aiohttp==3.8.5 | |
| aiosignal==1.3.1 | |
| async-timeout==4.0.2 | |
| attrs==23.1.0 | |
| certifi==2023.7.22 | |
| charset-normalizer==3.2.0 | |
| colorama==0.4.6 | |
| filelock==3.12.2 | |
| frozenlist==1.4.0 | |
| fsspec==2023.6.0 |
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 fs from 'fs'; | |
| import path from 'path'; | |
| import resolveBin from 'resolve-bin'; | |
| import vm, { Context, Module, Script, SyntheticModule } from 'vm'; | |
| function copyProperties(target: unknown, source: unknown) { | |
| const propertyNames = Object.getOwnPropertyNames(source); | |
| const propertySymbols = Object.getOwnPropertySymbols(source); | |
| for (const name of propertyNames) { |
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
| @description('Location of service resource') | |
| param location string | |
| @description('Name of the service resource') | |
| param name string | |
| @description('Current time set by system') | |
| param currentTime string = utcNow() | |
| resource script 'Microsoft.Resources/deploymentScripts@2019-10-01-preview' = { |
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
| apt-get install --no-install-recommends -yq dpkg-dev dkms git | |
| apt-get install --no-install-recommends -yq fakeroot build-essential libncurses-dev xz-utils libssl-dev flex libelf-dev bison bc | |
| cp v$VER/include/uapi/linux/android/binder.h `find /usr/src/ | grep include/uapi/linux/android/binder.h` | |
| cp v$VER/include/uapi/linux/android/binderfs.h `find /usr/src/ | grep include/uapi/linux/android/binderfs.h` | |
| # upstream sources | |
| VER=$(uname -r | cut -d- -f1) | |
| git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --depth 1 --tag v$VER |
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 -e | |
| USER_NAME=`whoami` | |
| mkdir -p $HOME/.ssh | |
| chown $USER_NAME:$USER_NAME $HOME/.ssh -R | |
| KEYS=$HOME/.ssh/authorized_keys | |
| echo "$NGROK_SSH_PUBKEY" | tee -a $KEYS | |
| sort $KEYS | uniq > tmp && mv tmp $KEYS | |
| chmod 600 $KEYS |
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
| func DoWorkPooled[T any](items []T, poolSize int, task func(T) (*T, error)) ([]T, error) { | |
| if poolSize == 0 { // 0 means sequential | |
| output := []T{} | |
| for _, item := range items { | |
| if out, err := task(item); err != nil { | |
| return output, err | |
| } else { | |
| if out != nil { | |
| output = append(output, *out) |
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
| namespace EventHorizon.Backend.Model | |
| open System | |
| open System.Data.Entity | |
| open EventHorizon.Backend.Extension.DbContextModule | |
| open EventHorizon.Backend.Extension.DbModelBuilderModule | |
| module Config = |
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
| https://arxiv.org/abs/1805.04908 | |
| https://mitpress.mit.edu/9780262544030/the-cortex-and-the-critical-point/ | |
| https://www.nih.gov/news-events/news-releases/memory-gene-goes-viral | |
| https://news.mit.edu/2021/neurons-humans-mammals-1110 | |
| https://www.biorxiv.org/content/10.1101/2021.05.29.446289v4 | |
| https://journals.aps.org/pre/abstract/10.1103/PhysRevE.105.014401 | |
| https://www.sciencedirect.com/science/article/pii/S0896627321005018 | |
| https://www.biorxiv.org/content/10.1101/613141v1 | |
| https://www.nature.com/articles/s41467-022-29384-4 | |
| https://arxiv.org/pdf/1704.05018.pdf |
NewerOlder