506bdngs18
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
-- Toggle persistent terminal on the right: <leader>fr | |
local function toggle_right_term() | |
_G.right_term_buf = _G.right_term_buf or nil | |
-- If we already have a term buffer, see if it's visible; if so, hide its window. | |
if _G.right_term_buf and vim.api.nvim_buf_is_valid(_G.right_term_buf) then | |
for _, win in ipairs(vim.api.nvim_list_wins()) do | |
if vim.api.nvim_win_get_buf(win) == _G.right_term_buf then | |
vim.api.nvim_win_close(win, true) -- hides buffer; process keeps running | |
return |
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
// File: @openzeppelin/contracts/utils/Context.sol | |
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) | |
pragma solidity ^0.8.20; | |
/** | |
* @dev Provides information about the current execution context, including the |
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
{"openapi":"3.0.0","paths":{"/api/activate":{"post":{"operationId":"ActivateController_activate","summary":"Activate a user account in order to be able to give praise and receive rewards. Activation a user account creates a new User object or adds user account to User if it already exists.","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivateInputDto"}}}},"responses":{"200":{"description":"The created (or updated) user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}}},"tags":["Activate"]}},"/api/users/export":{"get":{"operationId":"UsersController_export","summary":"Export users document to json or csv","parameters":[{"name":"format","required":false,"in":"query","schema":{"default":"csv","enum":["csv","json","parquet"],"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json |
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
'use strict'; | |
(() => { | |
const functors = [ | |
// === functors[0] === | |
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { $h_imports([]); /* global globalThis */ | |
/* eslint-disable no-restricted-globals */ | |
/** | |
* commons.js | |
* Declare shorthand functions. Sharing these declarations across modules |
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
const manifest = { | |
name: "simple-report", | |
displayName: "Simple Report", | |
description: "A simple report.", | |
version: "1.2.3", | |
author: "General Magic", | |
publisher: "general-magic", | |
license: "MIT", | |
repository: "https://github.com/givepraise/praise-reports", | |
bugs: "https://github.com/givepraise/praise-reports/issues", |
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
{ | |
"name": "Gnosis Safe, CSV Airdrop, Straight Curve with Ceiling", | |
"map": { | |
"item": { | |
"token_type": "", | |
"token_address": "", | |
"receiver": "rewardsEthAddress", | |
"amount": "scoreRealized", | |
"id": "" | |
}, |
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
{ | |
"name": "Aragon, Straight Curve with Ceiling", | |
"map": { | |
"item": { | |
"address": "rewardsEthAddress", | |
"amount": "scoreRealized", | |
"token": "" | |
}, | |
"operate": [ | |
{ |
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
{ | |
"name": "Aragon fixed budget", | |
"map": { | |
"item": { | |
"address": "rewardsEthAddress", | |
"amount": "scoreRealized", | |
"token": "", | |
"a": "scoreRealized" | |
}, | |
"operate": [ |
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
{ | |
"name": "Receiver, count and score", | |
"map": { | |
"item": { | |
"address": "rewardsEthAddress", | |
"count": "praiseCount", | |
"score": "scoreRealized" | |
}, | |
"operate": [] | |
}, |
NewerOlder