Skip to content

Instantly share code, notes, and snippets.

@maratori
maratori / golang-mocks.md
Last active May 3, 2024 15:42
Comparison of golang mocking libraries

Comparison of golang mocking libraries

Updated 2024-04-21

Uber
[gomock][6]
[testify][2] + [mockery][3] [minimock][4] [moq][5] Google
[gomock][1]

Library

GitHub stars [![s6]][6] [![s2]][2] + [![s3]][3] [![s4]][4] [![s5]][5] [![s1]][1]
Latest release date [![d6]][r6] [![d2]][r2] + [![d3]][r3] [![d4]][r4] [![d5]][r5] [![d1]][r1]
Maintained :white_check
@brianmed
brianmed / dotnet-core.yml
Created October 8, 2020 02:37
Github Actions Pipeline for dotnet core deploying into DigitalOcean
name: .NET Core
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
@zanculmarktum
zanculmarktum / megafetch.sh
Last active May 3, 2024 15:34
Get download url from mega.nz
#!/bin/bash
# Copyright 2018, 2019, 2020 Azure Zanculmarktum
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
@3110
3110 / atom-ble-keyboard.ino
Last active May 3, 2024 15:32
ATOM Lite/MatrixをBLEキーボードにする
/*
* ATOM Lite/MatrixをBLEキーボードにするサンプルプログラム
*
* 送信するキーを変更するにはSEND_KEYの値を変更してください。
*
* コンパイルにはESP32 BLE Keyboard library(https://github.com/T-vK/ESP32-BLE-Keyboard)が必要です。
* 事前にインストールしておいてください。
*/
#include <BleKeyboard.h> // https://github.com/T-vK/ESP32-BLE-Keyboard
/play
/*.png
/*.bmp
/solitaire
@RitRa
RitRa / exercise.md
Last active May 3, 2024 15:28 — forked from theRemix/exercise.md
MongoDB Practice

MongoDB Practice

MongoDB Exercise in mongo shell

create database

Connect to a running mongo instance, use a database named mongo_practice. use mongo_practice

Insert Documents

@aadnk
aadnk / injectApi.py
Last active May 3, 2024 15:28
Inject a REST API into Streamlit by injecting into Tornado
import logging
import threading
from typing import Any, Dict, Iterable, Optional, Union
from tornado.routing import Rule, Matcher
_global_tornado_hook = None
_global_hook_lock = threading.RLock()
class CustomRule:
def __init__(self, path_pattern: Union[str, Matcher], handler_class: Any,
@robere2
robere2 / fetchAllAuctionPages.js
Last active May 3, 2024 15:28
Fetching auction data from the Hypixel API
/**
* Robust function to fetch all auction pages from https://api.hypixel.net/v2/skyblock/auctions. If the auctions update during the time that
* this function is executing, then it will restart in order to fetch the latest data.
* @returns {Promise<Object[], Error>} Array of JSON responses from the API, with each entry being a page of auction results. The results are not necessarily in order.
* @reject {Error} Network error
* @reject {Error} If the function restarts more than five times due to updates or an API response with "success" set to false.
* @license MIT
* @author https://github.com/robere2
* @see {@link https://gist.github.com/robere2/232691590952b1f1c3de1993b291b6eb} Source
*/
@ffoodd
ffoodd / improved-sr-only.markdown
Last active May 3, 2024 15:23
Improved .sr-only

Improved .sr-only

Theorically bulletproof CSS class for visually hide anything and keep it accessible to ATs.

A Pen by ffoodd on CodePen.

License.