Skip to content

Instantly share code, notes, and snippets.

View ZoomQuiet's full-sized avatar
🖖
Sayeahooo

Zoom.Quiet ZoomQuiet

🖖
Sayeahooo
View GitHub Profile
@ZoomQuiet
ZoomQuiet / org2_config.json
Created December 29, 2021 11:27
how to confirm Anchor peer is rigistaion? [udemy.com/course/learn-to-deploy-hyperledger-fabric-v22-on-multihost/learn/lecture/24140410#questions]
View org2_config.json
{
"channel_group": {
"groups": {
"Application": {
"groups": {
"Org1MSP": {
"groups": {},
"mod_policy": "Admins",
"policies": {
"Admins": {
@ZoomQuiet
ZoomQuiet / Dockerfile
Created November 26, 2020 06:27 — forked from wemgl/Dockerfile
Elixir Umbrella App Dockerfile
View Dockerfile
FROM elixir:1.11.1-alpine AS build
# install build dependencies
RUN apk add --no-cache build-base npm git
# prepare build dir
WORKDIR /app
# install hex + rebar
RUN mix local.hex --force && \
@ZoomQuiet
ZoomQuiet / ElixirLinkedList.ex
Created October 20, 2020 08:07 — forked from aaruel/ElixirLinkedList.ex
Elixir Linked List Implementation
View ElixirLinkedList.ex
defmodule LinkedList do
defstruct data: 0,
next: nil,
index: 0
def new(data \\ 0, index \\ 0) do
%__MODULE__{data: data, index: index}
end
def push(
@ZoomQuiet
ZoomQuiet / donotuse3.py
Created September 24, 2020 02:04 — forked from MineRobber9000/donotuse3.py
How to NEVER use lambdas - Python 3 edition
View donotuse3.py
###########################################################
# How to NEVER use lambdas. An inneficient and yet educa- #
# tonal [sic] guide to the proper misuse of the lambda #
# construct in Python 3.x. [DO NOT USE ANY OF THIS EVER] #
# original by (and apologies to): e000 (13/6/11) #
# now in Python 3 courtesy of: khuxkm (17/9/20) #
###########################################################
## Part 1. Basic LAMBDA Introduction ##
# If you're reading this, you've probably already read e000's
@ZoomQuiet
ZoomQuiet / at first $mix new --umbrella ub_jor
Created November 22, 2019 09:33
in umbrella apps phx.new.web or phx.new all can running
View at first $mix new --umbrella ub_jor
prototype༽
༄ mix new --umbrella ub_jor
* creating README.md
* creating .formatter.exs
* creating .gitignore
* creating mix.exs
* creating apps
* creating config
* creating config/config.exs
@ZoomQuiet
ZoomQuiet / install.md
Created April 1, 2019 03:50 — forked from bitjockey42/install.md
Install SIP and PyQT4 (pyenv, pyenv-virtualenv)
View install.md

Download

pyenv virtualenv

Switch to the Python version you want to use:

View press.one
https://press.one/p/v?s=daa9a127693ab0fde9141b894ff9f0dc452c33fc166f0e97252420b83a33088e6c67f5d44f63860c218859c099557d42908cbb8059ebfe92765636dbaaf654710&h=90f1dab4c8b24b6502c03cdf067a279d8a672ae229cc405e171f57c0d45613f7&a=6263e76c1e5ac3196975ad5fa05f458f49633f5c&f=P1&v=3
View press.one
https://press.one/p/v?s=daa9a127693ab0fde9141b894ff9f0dc452c33fc166f0e97252420b83a33088e6c67f5d44f63860c218859c099557d42908cbb8059ebfe92765636dbaaf654710&h=90f1dab4c8b24b6502c03cdf067a279d8a672ae229cc405e171f57c0d45613f7&a=6263e76c1e5ac3196975ad5fa05f458f49633f5c&f=P1&v=3
@ZoomQuiet
ZoomQuiet / replace_parameters.py
Created March 30, 2019 02:21 — forked from kchawla-pi/replace_parameters.py
A python decorator for deprecating parameters from a function/method
View replace_parameters.py
"""
Gist made by Kshitij Chawla (Github name: kchawla-pi) for the Nilearn library in Feb/March 2019.
GPLv3
"""
def replace_parameters(replacement_params,
end_version='future',
lib_name='Nilearn',
):
"""
@ZoomQuiet
ZoomQuiet / build-opencv-for-pyenv.py
Created March 21, 2019 10:17 — forked from pohmelie/build-opencv-for-pyenv.py
Build opencv for ubuntu 16.04 with pyenv
View build-opencv-for-pyenv.py
import pathlib
import sys
import sh
def clone_if_not_exists(name, url, **kwargs):
if not pathlib.Path(name).exists():
print("Cloning", url, "...")
sh.git.clone(url, name, depth=1, **kwargs)