text
stringlengths
2
104M
meta
dict
#include "hello.hpp" namespace standalone { Napi::Value hello(Napi::CallbackInfo const& info) { Napi::Env env = info.Env(); return Napi::String::New(env, "hello world"); } } // namespace standalone
{ "repo_name": "mapbox/node-cpp-skel", "stars": "70", "repo_language": "C++", "file_name": "ci.template.js", "mime_type": "text/plain" }
#pragma once #include <napi.h> namespace object_sync { /** * HelloObject class * This is in a header file so we can access it across other .cpp files if necessary * Also, this class adheres to the rule of Zero because we define no custom destructor or copy constructor */ class HelloObject : public Napi::ObjectWr...
{ "repo_name": "mapbox/node-cpp-skel", "stars": "70", "repo_language": "C++", "file_name": "ci.template.js", "mime_type": "text/plain" }
#include "hello.hpp" #include <memory> // If this was not defined within a namespace, it would be in the global scope. // Namespaces are used because C++ has no notion of scoped modules, so all of // the code you write in any file could conflict with other code. // Namespaces are generally a great idea in C++ because ...
{ "repo_name": "mapbox/node-cpp-skel", "stars": "70", "repo_language": "C++", "file_name": "ci.template.js", "mime_type": "text/plain" }
#include "hello_async.hpp" #include "../cpu_intensive_task.hpp" #include "../module_utils.hpp" #include <exception> #include <map> #include <memory> #include <stdexcept> #include <utility> // If this was not defined within a namespace, it would be in the global scope. namespace object_async { /* struct AsyncHelloWo...
{ "repo_name": "mapbox/node-cpp-skel", "stars": "70", "repo_language": "C++", "file_name": "ci.template.js", "mime_type": "text/plain" }
#pragma once #include <napi.h> namespace object_async { /** * HelloObject class * This is in a header file so we can access it across other .cpp files if * necessary * Also, this class adheres to the rule of Zero because we define no custom * destructor or copy constructor */ class HelloObjectAsync : public Nap...
{ "repo_name": "mapbox/node-cpp-skel", "stars": "70", "repo_language": "C++", "file_name": "ci.template.js", "mime_type": "text/plain" }
#pragma once #include <napi.h> namespace standalone_promise { // hello, custom sync method // method's logic lives in hello_promise.cpp Napi::Value helloPromise(Napi::CallbackInfo const& info); } // namespace standalone_promise
{ "repo_name": "mapbox/node-cpp-skel", "stars": "70", "repo_language": "C++", "file_name": "ci.template.js", "mime_type": "text/plain" }
#include "hello_promise.hpp" #include <iostream> #include <utility> namespace standalone_promise { // async worker that handles the Deferred methods struct PromiseWorker : Napi::AsyncWorker { // constructor / ctor PromiseWorker(Napi::Env const& env, std::string phrase, int multiply) : Napi::AsyncWork...
{ "repo_name": "mapbox/node-cpp-skel", "stars": "70", "repo_language": "C++", "file_name": "ci.template.js", "mime_type": "text/plain" }
#!/usr/bin/env bash set -eu set -o pipefail CONTAINER=build/binding.xcodeproj OUTPUT="${CONTAINER}/xcshareddata/xcschemes/${SCHEME_NAME}.xcscheme" # Required ENV vars: # - SCHEME_TYPE: type of the scheme # - SCHEME_NAME: name of the scheme # Optional ENV vars: # - NODE_ARGUMENT (defaults to "") # - BUILDABLE_NAME (...
{ "repo_name": "mapbox/node-cpp-skel", "stars": "70", "repo_language": "C++", "file_name": "ci.template.js", "mime_type": "text/plain" }
<?xml version="1.0" encoding="UTF-8"?> <Scheme LastUpgradeVersion = "0730" version = "1.3"> <BuildAction parallelizeBuildables = "YES" buildImplicitDependencies = "YES"> <BuildActionEntries> <BuildActionEntry buildForTesting = "YES" buildForRunning = "YES" ...
{ "repo_name": "mapbox/node-cpp-skel", "stars": "70", "repo_language": "C++", "file_name": "ci.template.js", "mime_type": "text/plain" }
#!/usr/bin/env python import sys import json import os import re # Script to generate compile_commands.json based on Makefile output # Works by accepting Makefile output from stdin, parsing it, and # turning into json records. These are then printed to stdout. # More details on the compile_commands format at: # https...
{ "repo_name": "mapbox/node-cpp-skel", "stars": "70", "repo_language": "C++", "file_name": "ci.template.js", "mime_type": "text/plain" }
#!/usr/bin/env bash set -eu set -o pipefail export COMMIT_MESSAGE=$(git log --format=%B --no-merges -n 1 | tr -d '\n') # `is_pr_merge` is designed to detect if a gitsha represents a normal # push commit (to any branch) or whether it represents travis attempting # to merge between the origin and the upstream branch. ...
{ "repo_name": "mapbox/node-cpp-skel", "stars": "70", "repo_language": "C++", "file_name": "ci.template.js", "mime_type": "text/plain" }
#!/usr/bin/env bash set -eu # First create new repo on GitHub and copy the SSH repo url # Then run "./scripts/liftoff.sh" from within your local node-cpp-skel root directory # and it will create your new local project repo side by side with node-cpp-skel directory echo "What is the name of your new project? " read n...
{ "repo_name": "mapbox/node-cpp-skel", "stars": "70", "repo_language": "C++", "file_name": "ci.template.js", "mime_type": "text/plain" }
#!/usr/bin/env bash set -eu set -o pipefail # http://clang.llvm.org/docs/UsersManual.html#profiling-with-instrumentation # https://www.bignerdranch.com/blog/weve-got-you-covered/ make clean export CXXFLAGS="-fprofile-instr-generate -fcoverage-mapping" export LDFLAGS="-fprofile-instr-generate" make debug rm -f *profr...
{ "repo_name": "mapbox/node-cpp-skel", "stars": "70", "repo_language": "C++", "file_name": "ci.template.js", "mime_type": "text/plain" }
#!/usr/bin/env bash set -eu set -o pipefail : ' Runs clang-format on the code in src/ Return `1` if there are files to be formatted, and automatically formats them. Returns `0` if everything looks properly formatted. ' PATH_TO_FORMAT_SCRIPT="$(pwd)/mason_packages/.link/bin/clang-format" # Run clang-format on al...
{ "repo_name": "mapbox/node-cpp-skel", "stars": "70", "repo_language": "C++", "file_name": "ci.template.js", "mime_type": "text/plain" }
#!/usr/bin/env bash set -eu set -o pipefail # https://clang.llvm.org/extra/clang-tidy/ : ' Runs clang-tidy on the code in src/ Return `1` if there are files automatically fixed by clang-tidy. Returns `0` if no fixes by clang-tidy. TODO: should also return non-zero if clang-tidy emits warnings or errors about things ...
{ "repo_name": "mapbox/node-cpp-skel", "stars": "70", "repo_language": "C++", "file_name": "ci.template.js", "mime_type": "text/plain" }
<?xml version="1.0" encoding="UTF-8"?> <Scheme LastUpgradeVersion = "0730" version = "1.3"> <BuildAction parallelizeBuildables = "YES" buildImplicitDependencies = "YES"> <BuildActionEntries> <BuildActionEntry buildForTesting = "YES" buildForRunning = "YES" ...
{ "repo_name": "mapbox/node-cpp-skel", "stars": "70", "repo_language": "C++", "file_name": "ci.template.js", "mime_type": "text/plain" }
#!/usr/bin/env bash set -eu set -o pipefail : ' Rebuilds the code with the sanitizers and runs the tests ' # See https://github.com/mapbox/node-cpp-skel/blob/master/docs/extended-tour.md#configuration-files make clean # https://github.com/google/sanitizers/wiki/AddressSanitizerAsDso SHARED_LIB_EXT=.so if [[ $(un...
{ "repo_name": "mapbox/node-cpp-skel", "stars": "70", "repo_language": "C++", "file_name": "ci.template.js", "mime_type": "text/plain" }
"use strict"; var argv = require('minimist')(process.argv.slice(2)); if (!argv.iterations || !argv.concurrency) { console.error('Please provide desired iterations, concurrency'); console.error('Example: \n\tnode bench/hello_async.bench.js --iterations 50 --concurrency 10'); console.error('Optional args: \n\t--me...
{ "repo_name": "mapbox/node-cpp-skel", "stars": "70", "repo_language": "C++", "file_name": "ci.template.js", "mime_type": "text/plain" }
"use strict"; var argv = require('minimist')(process.argv.slice(2)); if (!argv.iterations || !argv.concurrency) { console.error('Please provide desired iterations, concurrency'); console.error('Example: \n\tnode bench/hello_object_async.bench.js --iterations 50 --concurrency 10'); console.error('Optional args: \...
{ "repo_name": "mapbox/node-cpp-skel", "stars": "70", "repo_language": "C++", "file_name": "ci.template.js", "mime_type": "text/plain" }
"use strict"; const { hello, helloAsync, helloPromise, HelloObject, HelloObjectAsync } = require('./binding/module.node'); module.exports = { /** * This is a synchronous standalone function that logs a string. * @name hello * @returns {string} * @example * const { hello } = require('@mapbox...
{ "repo_name": "mapbox/node-cpp-skel", "stars": "70", "repo_language": "C++", "file_name": "ci.template.js", "mime_type": "text/plain" }
var test = require('tape'); var module = require('../lib/index.js'); test('success: prints expected string via custom constructor', function(t) { var H = new module.HelloObjectAsync('carol'); H.helloAsync({ louder: false }, function(err, result) { if (err) throw err; t.equal(result, '...threads are busy as...
{ "repo_name": "mapbox/node-cpp-skel", "stars": "70", "repo_language": "C++", "file_name": "ci.template.js", "mime_type": "text/plain" }
var test = require('tape'); var module = require('../lib/index.js'); test('success: prints expected string', function(t) { var H = new module.HelloObject('carol'); var check = H.helloMethod(); t.equal(check, 'carol', 'returned expected string'); t.end(); }); test('error: throws when passing empty string', fun...
{ "repo_name": "mapbox/node-cpp-skel", "stars": "70", "repo_language": "C++", "file_name": "ci.template.js", "mime_type": "text/plain" }
var test = require('tape'); var module = require('../lib/index.js'); test('prints world', function(t) { var check = module.hello(); t.equal(check, 'hello world', 'returned world'); t.end(); });
{ "repo_name": "mapbox/node-cpp-skel", "stars": "70", "repo_language": "C++", "file_name": "ci.template.js", "mime_type": "text/plain" }
var test = require('tape'); var module = require('../lib/index.js'); test('success: prints loud busy world', function(t) { module.helloAsync({ louder: true }, function(err, result) { if (err) throw err; t.equal(result, '...threads are busy async bees...hello world!!!!'); t.end(); }); }); test('success...
{ "repo_name": "mapbox/node-cpp-skel", "stars": "70", "repo_language": "C++", "file_name": "ci.template.js", "mime_type": "text/plain" }
'use strict'; const test = require('tape'); const { helloPromise } = require('../lib/index.js'); test('success: no options object', async (assert) => { const result = await helloPromise(); assert.equal(result, 'hello'); assert.end(); }); test('success: empty options object', async (assert) => { const result ...
{ "repo_name": "mapbox/node-cpp-skel", "stars": "70", "repo_language": "C++", "file_name": "ci.template.js", "mime_type": "text/plain" }
var cf = require('@mapbox/cloudfriend'); var package_json = require('../package.json') module.exports = { AWSTemplateFormatVersion: '2010-09-09', Description: 'user for publishing to s3://mapbox-node-binary/' + package_json.name, Resources: { User: { Type: 'AWS::IAM::User', Properties: { ...
{ "repo_name": "mapbox/node-cpp-skel", "stars": "70", "repo_language": "C++", "file_name": "ci.template.js", "mime_type": "text/plain" }
= Olical's dotfiles This is a collection of configuration for things such as https://sw.kovidgoyal.net/kitty/[Kitty] and https://neovim.io/[Neovim] Arch's `pacman` package manager manager and stow for linking the configuration into the right places. This is designed to be run within Arch Linux, I use `archinstall` to...
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. In jurisdictions that recognize copyrig...
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
#!/usr/bin/env bash set -xe yay -S --needed \ kitty fzf cowsay entr fish httpie htop npm nodejs-lts-hydrogen \ asciinema ripgrep clojure lazygit tree bitwarden-cli \ babashka lua xclip ttf-fira-code ttf-dejavu-emojiless \ noto-fonts-emoji gnome-keyring topgrade neovim leiningen \ difftastic direnv ttf-firacode-n...
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
#!/usr/bin/env bash set -xe if ! command -v yay &> /dev/null then sudo pacman -S --needed git base-devel && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si && cd .. && rm -rf ./yay fi yay -S --needed stow git if [ ! -d "~/.config/nvim" ]; then git clone --depth 1 https://github.com/AstroN...
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
;; The deps.edn file describes the information needed to build a classpath. ;; ;; When using the `clojure` or `clj` script, there are several deps.edn files ;; that are combined: ;; - install-level ;; - user level (this file) ;; - project level (current directory when invoked) ;; ;; For all attributes other than :paths...
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
{:lib io.github.clojure/tools.tools :coord {:git/tag "v0.3.1" :git/sha "859a6156802eaa49f2488ae087421091018586f7"}}
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
set -gx NPM_DIR "$HOME/.npm-data" set -gx NODE_PATH "$NPM_DIR/lib/node_modules:$NODE_PATH" set -gx PATH ~/bin $NPM_DIR/bin $HOME/.local/bin $PATH mkdir -p ~/bin $NPM_DIR/bin set -gx fish_greeting "" test -d ~/.linuxbrew && eval (~/.linuxbrew/bin/brew shellenv) test -d /home/linuxbrew/.linuxbrew && eval (/home/linuxb...
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
set SESSION_FILE ~/.bws-session function bws if test -e $SESSION_FILE set -x BW_SESSION (cat $SESSION_FILE) end if ! bw status | grep unlocked > /dev/null set -x BW_SESSION (bw unlock --raw) if test $status -ne 0 echo "bw unlock failed" return $status else echo $BW_SESSION > $S...
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
function sync # Early sudo because it's needed later. sudo echo "Updating everything!" topgrade --disable git_repos containers vim cd ~/repos/Olical/dotfiles git pull cd - nvim +AstroUpdatePackages +qa end
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
function fcd if set -q argv[1] set searchdir $argv[1] else set searchdir $HOME end set -l destdir (find $searchdir \( ! -regex '.*/\..*' \) ! -name __pycache__ -type d | fzf) if test -z "$destdir" return 1 end cd $destdir end
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
function is_status_okay [ $status = 0 ] end
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
function branched for dir in $argv pushd $dir set -l branches (g b) if [ "$branches" != '* master' ] basename $dir g b end popd end end
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
function is_git_ahead set -l revs (git rev-list origin/(git_branch)..HEAD 2> /dev/null) [ "$revs" != "" ] end
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
function fish_user_key_bindings fish_vi_key_bindings if command -s fzf-share >/dev/null source (fzf-share)/key-bindings.fish end if type -q fzf_key_bindings fzf_key_bindings end bind -M insert -m default jk backward-char force-repaint end
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
# A lambda (λ) prompt. # Green and red depending on exit status. # Underlined if git status is dirty. # Uppercase (Λ) if ahead of the remote. function fish_prompt if is_status_okay set_color green else set_color red end if is_git_dirty set_color --underline end if is_git_ahead echo -n 'Λ...
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
setenv SSH_ENV $HOME/.ssh/environment function initialise_ssh_agent if [ -n "$SSH_AGENT_PID" ] ps -ef | grep $SSH_AGENT_PID | grep ssh-agent > /dev/null if [ $status -eq 0 ] test_identities end else if [ -f $SSH_ENV ] . $SSH_ENV > /dev/null end ps -ef | grep $SSH_AGENT_PID | gre...
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
function is_git git symbolic-ref HEAD &> /dev/null end
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
function job_count jobs | tail -n +1 | wc -l end
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
function fish_mode_prompt --description 'Displays the current mode' if test "$fish_key_bindings" = "fish_vi_key_bindings" switch $fish_bind_mode case default set_color red echo 🅽 case insert set_color green echo 🅸 case replace_one set_color green ...
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
function fish_right_prompt if is_git set_color yellow echo -n (git_branch) set_color normal echo -n ' ' end set_color blue echo -n (basename (pwd | sed "s#$HOME#\~#")) set_color normal end
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
function gs cowsay -f ghostbusters 'gs is ghostscript, not git status!' end
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
function is_git_dirty is_git; and [ (git status | tail -n1) != "nothing to commit, working tree clean" ] end
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
function git_branch if is_git echo (git rev-parse --abbrev-ref HEAD 2> /dev/null) end end
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
-- [nfnl] Compiled from util.fnl by https://github.com/Olical/nfnl, do not edit. local fun = require("user.vendor.fun") local user = require("user") local function autoload(name) local res = {["aniseed/autoload-enabled?"] = true, ["aniseed/autoload-module"] = false} local function ensure() if res["aniseed/autol...
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
{:g {:mapleader " " :maplocalleader "," :autoformat_enabled true :cmp_enabled true :autopairs_enabled true :diagnostics_mode 3 ;; Visibility of diagnostics (0=off, 1=only show in status line, 2=virtual text off, 3=all on) :icons_enabled true :ui_notifications_enabled true :resess...
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
-- [nfnl] Compiled from mappings.fnl by https://github.com/Olical/nfnl, do not edit. local uu = require("user.util") return {n = {["<leader>bt"] = uu.tx(":%s/\\s\\+$//e<cr>", {desc = "Delete trailing whitespace"}), ["<leader>bn"] = uu.tx(":tabnew<cr>", {desc = "Create a new tab"})}, t = {["<S-Esc>"] = uu.tx("<c-\\><c-n...
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
{:colorscheme :astrodark :diagnostics {:underline true :virtual_text true} :lazy {:defaults {:lazy false} :dev {:path "~/repos/Olical"} :performance {:rtp {:disabled_plugins ["tohtml" "netrwPlugin"]}}} :lsp {:formatting {:disabled {} :format_on_save {:enabled true ...
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
-- [nfnl] Compiled from init.fnl by https://github.com/Olical/nfnl, do not edit. local function _1_() end return {colorscheme = "astrodark", diagnostics = {underline = true, virtual_text = true}, lazy = {defaults = {lazy = false}, dev = {path = "~/repos/Olical"}, performance = {rtp = {disabled_plugins = {"tohtml", "net...
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
(local uu (require :user.util)) {:n {"<leader>bt" (uu.tx ":%s/\\s\\+$//e<cr>" {:desc "Delete trailing whitespace"}) "<leader>bn" (uu.tx ":tabnew<cr>" {:desc "Create a new tab"})} :t {"<S-Esc>" (uu.tx "<c-\\><c-n>" {:desc "Enter Normal mode"})}}
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
(local fun (require :user.vendor.fun)) (local user (require :user)) (fn autoload [name] "Like autoload from Vim Script! A replacement for require that will load the module when you first use it. Use it in Aniseed module macros with: (module foo {autoload {foo x.y.foo}}) It's a drop in replacement for require...
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
# AstroNvim User Configuration A user configuration template for [AstroNvim](https://github.com/AstroNvim/AstroNvim).
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
-- [nfnl] Compiled from plugins/autopairs.fnl by https://github.com/Olical/nfnl, do not edit. local uu = require("user.util") local fun = require("user.vendor.fun") local lisps = {"scheme", "lisp", "clojure", "fennel"} local function _1_() local autopairs = require("nvim-autopairs") do end (fun.head(autopairs.get_r...
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
-- [nfnl] Compiled from plugins/sexp.fnl by https://github.com/Olical/nfnl, do not edit. local uu = require("user.util") local function _1_() vim.g.sexp_filetypes = "clojure,scheme,lisp,timl,fennel,janet" return nil end return {uu.tx("guns/vim-sexp", {init = _1_}), uu.tx("tpope/vim-sexp-mappings-for-regular-people"...
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
(local uu (require :user.util)) (uu.tx :NMAC427/guess-indent.nvim {:opts {:filetype_exclude [:clojure :fennel]}})
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
(local uu (require :user.util)) (uu.tx :rcarriga/nvim-notify {:opts {:render :compact :stages :static}})
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
[:AstroNvim/astrocommunity {:import :astrocommunity.pack.rust} {:import :astrocommunity.pack.lua} {:import :astrocommunity.pack.markdown} {:import :astrocommunity.pack.docker} {:import :astrocommunity.pack.bash} {:import :astrocommunity.pack.go} {:import :astrocommunity.pack.html-css} {:import :astrocommunity.p...
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
-- [nfnl] Compiled from plugins/neotree.fnl by https://github.com/Olical/nfnl, do not edit. local uu = require("user.util") return uu.tx("nvim-neo-tree/neo-tree.nvim", {opts = {filesystem = {filtered_items = {hide_by_pattern = {"/home/*/.config/nvim/lua/user/**.lua"}}, cwd_target = {current = "none"}}}})
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
-- [nfnl] Compiled from plugins/user.fnl by https://github.com/Olical/nfnl, do not edit. local uu = require("user.util") local function _1_() return (require("leap")).add_default_mappings() end return {uu.tx("Olical/aniseed", {dev = uu["dev?"]("aniseed")}), uu.tx("Olical/nfnl", {ft = {"fennel"}, config = true, dev = ...
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
(local utils (require :astronvim.utils)) (local uu (require :user.util)) [(uu.tx :clojure-vim/vim-jack-in {:ft :clojure :cmd :Clj :lazy true}) (uu.tx :williamboman/mason-lspconfig.nvim {:opts (fn [_ opts] (set opts.ensure_installed (utils.list_insert_unique opts.ensure_installed :cloj...
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
-- [nfnl] Compiled from plugins/clojure.fnl by https://github.com/Olical/nfnl, do not edit. local utils = require("astronvim.utils") local uu = require("user.util") local function _1_(_, opts) opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, "clojure_lsp") return nil end local function _2_(_,...
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
-- [nfnl] Compiled from plugins/undotree.fnl by https://github.com/Olical/nfnl, do not edit. local uu = require("user.util") return uu.tx("mbbill/undotree", {keys = {uu.tx("<leader>z", ":UndotreeShow<cr>:UndotreeFocus<cr>", {desc = "Open Undotree"})}})
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
-- [nfnl] Compiled from plugins/mason.fnl by https://github.com/Olical/nfnl, do not edit. local uu = require("user.util") local utils = uu.autoload("astronvim.utils") local lspconfig = uu.autoload("lspconfig") local function _1_(_, opts) opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, {"fennel...
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
(local uu (require :user.util)) (uu.tx :mbbill/undotree {:keys [(uu.tx "<leader>z" ":UndotreeShow<cr>:UndotreeFocus<cr>" {:desc "Open Undotree"})]})
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
(local uu (require :user.util)) (local fun (require :user.vendor.fun)) (local lisps [:scheme :lisp :clojure :fennel]) (uu.tx :windwp/nvim-autopairs {:init (fn [] (local autopairs (require :nvim-autopairs)) (tset (fun.head (autopairs.get_rules "'")) :not_filetypes lisps) (tset (fun...
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
-- [nfnl] Compiled from plugins/notify.fnl by https://github.com/Olical/nfnl, do not edit. local uu = require("user.util") return uu.tx("rcarriga/nvim-notify", {opts = {render = "compact", stages = "static"}})
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
-- [nfnl] Compiled from plugins/treesitter.fnl by https://github.com/Olical/nfnl, do not edit. local uu = require("user.util") local function _1_(_, opts) opts.ensure_installed = (require("astronvim.utils")).list_insert_unique(opts.ensure_installed, {"clojure", "fennel"}) return nil end return uu.tx("nvim-treesitte...
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
(local uu (require :user.util)) (uu.tx :nvim-neo-tree/neo-tree.nvim {:opts {:filesystem {:filtered_items {:hide_by_pattern ["/home/*/.config/nvim/lua/user/**.lua"]} ;; Don't change the CWD if I open netrw style windows. :cwd_target {:current :none}}}})
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
(local uu (require :user.util)) [(uu.tx :guns/vim-sexp {:init (fn [] (set vim.g.sexp_filetypes "clojure,scheme,lisp,timl,fennel,janet"))}) (uu.tx :tpope/vim-sexp-mappings-for-regular-people)]
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
(local uu (require :user.util)) [ (uu.tx :Olical/aniseed {:dev (uu.dev? :aniseed)}) (uu.tx :Olical/nfnl {:ft ["fennel"] :config true :dev (uu.dev? :nfnl)}) (uu.tx :Olical/nfnl-plugin-example {:dev (uu.dev? :nfnl-plugin-example)}) (uu.tx :nvim-lua/plenary.nvim) (uu.tx :PeterRincker/vim-argumentative) (uu.tx :bakp...
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
(local uu (require :user.util)) (uu.tx :nvim-treesitter/nvim-treesitter {:opts (fn [_ opts] (set opts.ensure_installed ((. (require :astronvim.utils) :list_insert_unique) opts.ensure_installed [:clojure :fennel])))})
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
(local uu (require :user.util)) (uu.tx :jose-elias-alvarez/null-ls.nvim {:opts (fn [_ config] (set config.sources {}) config)})
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
-- [nfnl] Compiled from plugins/guess-indent.fnl by https://github.com/Olical/nfnl, do not edit. local uu = require("user.util") return uu.tx("NMAC427/guess-indent.nvim", {opts = {filetype_exclude = {"clojure", "fennel"}}})
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
(local uu (require :user.util)) [(uu.tx :goolord/alpha-nvim {:opts (fn [_ opts] (set opts.section.header.val [" █████ ███████ ████████ ██████ ██████" "██ ██ ██ ██ ██ ██ ██ ██" "███████ ███████ ██ ██████ ██ ██" "...
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
-- [nfnl] Compiled from plugins/null-ls.fnl by https://github.com/Olical/nfnl, do not edit. local uu = require("user.util") local function _1_(_, config) config.sources = {} return config end return uu.tx("jose-elias-alvarez/null-ls.nvim", {opts = _1_})
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
(local uu (require :user.util)) (local utils (uu.autoload :astronvim.utils)) (local lspconfig (uu.autoload :lspconfig)) [(uu.tx :williamboman/mason-lspconfig.nvim {:opts (fn [_ opts] (set opts.ensure_installed (utils.list_insert_unique opts.ensure_installed [:fennel_language_server])) (s...
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
--- --- Lua Fun - a high-performance functional programming library for LuaJIT --- --- Copyright (c) 2013-2017 Roman Tsisyk <roman@tsisyk.com> --- --- Distributed under the MIT/X11 License. See COPYING.md for more details. --- local exports = {} local methods = {} -- compatibility with Lua 5.1/5.2 local unpack = rawg...
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
{;; this table overrides highlights in all themes ;; :Normal {:bg "#000000"} :MatchParen {:standout true :bold true}}
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
-- [nfnl] Compiled from highlights/duskfox.fnl by https://github.com/Olical/nfnl, do not edit. return {Normal = {bg = "#000000"}}
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
-- [nfnl] Compiled from highlights/init.fnl by https://github.com/Olical/nfnl, do not edit. return {MatchParen = {standout = true, bold = true}}
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
;; a table of overrides/changes to the duskfox theme {:Normal {:bg "#000000"}}
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
# vim:fileencoding=utf-8:ft=conf:foldmethod=marker #: Fonts {{{ #: kitty has very powerful font management. You can configure #: individual font faces and even specify special fonts for particular #: characters. font_family Fira Code Nerd Font bold_font auto italic_font auto bold_italic_font auto #...
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
pinentry-program /usr/bin/pinentry-qt default-cache-ttl 10800
{ "repo_name": "Olical/dotfiles", "stars": "485", "repo_language": "Lua", "file_name": "gpg-agent.conf", "mime_type": "text/plain" }
[![ubuntu-build](https://github.com/wesley-a-leung/Resources/actions/workflows/ubuntu-build.yml/badge.svg)](https://github.com/wesley-a-leung/Resources/actions/workflows/ubuntu-build.yml) [![windows-build](https://github.com/wesley-a-leung/Resources/actions/workflows/windows-build.yml/badge.svg)](https://github.com/wes...
{ "repo_name": "wesley-a-leung/Resources", "stars": "34", "repo_language": "C++", "file_name": "SkewHeapIncremental.h", "mime_type": "text/x-c++" }
name: windows-build on: [push, pull_request] jobs: compile-cpp: runs-on: windows-latest strategy: fail-fast: false matrix: cpp-version: [c++11, c++14] steps: - uses: actions/checkout@v2 - name: Check version run: | g++ --version - name: Replace pragma once ...
{ "repo_name": "wesley-a-leung/Resources", "stars": "34", "repo_language": "C++", "file_name": "SkewHeapIncremental.h", "mime_type": "text/x-c++" }
name: ubuntu-build on: [push, pull_request] jobs: check-lines: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Check lines run: find "Content/" \( -iname \*.h -o -iname \*.java -o -iname \*.kt \) -exec python3 Scripts/CheckLines.py {} + compile-cpp: runs-on: ubuntu-latest...
{ "repo_name": "wesley-a-leung/Resources", "stars": "34", "repo_language": "C++", "file_name": "SkewHeapIncremental.h", "mime_type": "text/x-c++" }
#include <bits/stdc++.h> #include "../../../../Content/C++/graph/representations/StaticGraph.h" #include "../../../../Content/C++/graph/search/TransitiveClosureFloydWarshall.h" #include "../../../../Content/C++/graph/search/TransitiveClosureSCC.h" using namespace std; void test1() { mt19937_64 rng(0); constexpr co...
{ "repo_name": "wesley-a-leung/Resources", "stars": "34", "repo_language": "C++", "file_name": "SkewHeapIncremental.h", "mime_type": "text/x-c++" }
#include <bits/stdc++.h> #include "../../../../Content/C++/graph/cycles/Cycle.h" #include "../../../../Content/C++/graph/representations/StaticGraph.h" using namespace std; void test1() { mt19937_64 rng(0); int V = 2e6, E = 4e6; StaticGraph G(V); G.reserveDiEdges(E * 2); for (int i = 0; i < E; i++) { int...
{ "repo_name": "wesley-a-leung/Resources", "stars": "34", "repo_language": "C++", "file_name": "SkewHeapIncremental.h", "mime_type": "text/x-c++" }
#include <bits/stdc++.h> #include "../../../../Content/C++/graph/cycles/Triangles.h" using namespace std; void test1() { mt19937_64 rng(0); int V = 2e5, E = 1e6; vector<pair<int, int>> edges; set<pair<int, int>> S; vector<long long> X(V), Y(E); for (auto &&x : X) x = rng() % int(1e6) + 1; for (int i = 0;...
{ "repo_name": "wesley-a-leung/Resources", "stars": "34", "repo_language": "C++", "file_name": "SkewHeapIncremental.h", "mime_type": "text/x-c++" }
#include <bits/stdc++.h> #include "../../../../Content/C++/graph/cycles/DirectedCycle.h" #include "../../../../Content/C++/graph/representations/StaticGraph.h" using namespace std; void test1() { mt19937_64 rng(0); int V = 2e6, E = 4e6; StaticGraph G(V); G.reserveDiEdges(E); for (int i = 0; i < E; i++) { ...
{ "repo_name": "wesley-a-leung/Resources", "stars": "34", "repo_language": "C++", "file_name": "SkewHeapIncremental.h", "mime_type": "text/x-c++" }
#include <bits/stdc++.h> #include "../../../../Content/C++/graph/cycles/FourCycles.h" using namespace std; void test1() { const auto start_time = chrono::system_clock::now(); mt19937_64 rng(0); const int TESTCASES = 1e4; long long checkSum = 0; for (int ti = 0; ti < TESTCASES; ti++) { int V = rng() % 9, ...
{ "repo_name": "wesley-a-leung/Resources", "stars": "34", "repo_language": "C++", "file_name": "SkewHeapIncremental.h", "mime_type": "text/x-c++" }
#include <bits/stdc++.h> #include "../../../../Content/C++/graph/cycles/FourCycles.h" using namespace std; void test1() { mt19937_64 rng(0); int V = 2e5, E = 1e6; vector<pair<int, int>> edges; set<pair<int, int>> S; vector<long long> X(V), Y(E); for (auto &&x : X) x = rng() % int(1e6) + 1; for (int i = 0...
{ "repo_name": "wesley-a-leung/Resources", "stars": "34", "repo_language": "C++", "file_name": "SkewHeapIncremental.h", "mime_type": "text/x-c++" }
#include <bits/stdc++.h> #include "../../../../Content/C++/graph/cycles/EulerianWalk.h" using namespace std; void test1() { mt19937_64 rng(0); int V = 2e5, E = 1e6; vector<pair<int, int>> edges; edges.reserve(E); edges.emplace_back(rng() % V, rng() % V); for (int i = 1; i < E - 1; i++) edges.emplace_back(e...
{ "repo_name": "wesley-a-leung/Resources", "stars": "34", "repo_language": "C++", "file_name": "SkewHeapIncremental.h", "mime_type": "text/x-c++" }
#include <bits/stdc++.h> #include "../../../../Content/C++/graph/cycles/Triangles.h" using namespace std; void test1() { const auto start_time = chrono::system_clock::now(); mt19937_64 rng(0); const int TESTCASES = 1e4; long long checkSum = 0; for (int ti = 0; ti < TESTCASES; ti++) { int V = rng() % 9, E...
{ "repo_name": "wesley-a-leung/Resources", "stars": "34", "repo_language": "C++", "file_name": "SkewHeapIncremental.h", "mime_type": "text/x-c++" }
#include <bits/stdc++.h> #include "../../../../Content/C++/graph/queries/WaveletMatrixTreeAggregation.h" #include "../../../../Content/C++/graph/queries/WaveletMatrixHeavyLightDecomposition.h" #include "../../../../Content/C++/graph/representations/StaticGraph.h" #include "../../../../Content/C++/datastructures/trees/f...
{ "repo_name": "wesley-a-leung/Resources", "stars": "34", "repo_language": "C++", "file_name": "SkewHeapIncremental.h", "mime_type": "text/x-c++" }