[[[[[[name
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
| package main | |
| import "fmt" | |
| func gcd(a, b int) int { | |
| var fun func(int, int) int | |
| fun = func(l, h int) int { | |
| r := h % l | |
| if r == 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 { | |
| IAppAccessors, | |
| IConfigurationExtend, | |
| IEnvironmentRead, | |
| IHttp, | |
| ILogger, | |
| IModify, | |
| IPersistence, | |
| IRead, | |
| } from '@rocket.chat/apps-engine/definition/accessors'; |
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 { | |
| IAppAccessors, | |
| IConfigurationExtend, | |
| IEnvironmentRead, | |
| IHttp, | |
| ILogger, | |
| IModify, | |
| IPersistence, | |
| IRead, | |
| } from '@rocket.chat/apps-engine/definition/accessors'; |
use bash <script_name> [tag]
example: bash prepare_rocketchat_archive.sh 6.2.9
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://goplay.tools/snippet/gYQ3zCEsjUV | |
| package main | |
| import ( | |
| "fmt" | |
| "time" | |
| ) | |
| func main() { | |
| batch := 5 |
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://raw.githubusercontent.com/llvm-mirror/clang/master/tools/clang-format/clang-format.el | |
| ;;; clang-format.el --- Format code using clang-format -*- lexical-binding: t; -*- | |
| ;; Keywords: tools, c | |
| ;; Preserving the following comment, but currently using master branch of emacs, thus cl-lib no longer required - contd. | |
| ;; from package description "Forward cl-lib compatibility library for Emacs<24." | |
| ;; -- Package-Requires: ((cl-lib "0.3")) -- | |
| ;; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
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
| volumes: | |
| mongodb_data: { driver: local } | |
| services: | |
| rocketchat: | |
| image: registry.rocket.chat/rocketchat/rocket.chat:${RELEASE:-latest} | |
| restart: always | |
| environment: | |
| MONGO_URL: "${MONGO_URL:-\ | |
| mongodb://${MONGODB_ADVERTISED_HOSTNAME:-mongodb}:${MONGODB_INITIAL_PRIMARY_PORT_NUMBER:-27017}/\ |
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
| -- @USAGE: | |
| -- local foo = safe_require('foo') | |
| -- if not foo then return end | |
| _G.safe_require = function(module_name) | |
| local package_exists, module = pcall(require, module_name) | |
| if not package_exists then | |
| vim.defer_fn(function() | |
| vim.schedule(function() | |
| vim.notify('Could not load module: ' .. module_name, 'error', { title = 'Module Not Found' }) | |
| end) |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <title></title> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| </head> | |
| <body> |
NewerOlder