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 / .bashrc
Created December 12, 2023 15:08
https://slides.101.camp/ 配置本地演示脚本
function cr4app() {
HTML=$1
if [ -z $HTML ] ;then
echo 'USAGE::'
echo '$ cr4app [目标幻灯.html]'
echo '注意: 不必包含路径'
else
locf="file:///opt/data/Sites/101.camp/_running/slides/docs/$HTML"
@ZoomQuiet
ZoomQuiet / pandoc2reveal.sh
Created December 12, 2023 15:07
https://slides.101.camp/ 配套幻灯编译脚本
#!/bin/sh
#=========================================================== var defines
VER="pandoc2reveal v.230528.1642"
echo $VER
echo USAGE::
echo ' pandoc2reveal.sh "[源文稿名]" "[风格]"'
echo ' NOT .md'
AIMP='../docs'
#AIMP='../public'
@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]
{
"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
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
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
###########################################################
# 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
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)

Download

pyenv virtualenv

Switch to the Python version you want to use:

https://press.one/p/v?s=daa9a127693ab0fde9141b894ff9f0dc452c33fc166f0e97252420b83a33088e6c67f5d44f63860c218859c099557d42908cbb8059ebfe92765636dbaaf654710&h=90f1dab4c8b24b6502c03cdf067a279d8a672ae229cc405e171f57c0d45613f7&a=6263e76c1e5ac3196975ad5fa05f458f49633f5c&f=P1&v=3
https://press.one/p/v?s=daa9a127693ab0fde9141b894ff9f0dc452c33fc166f0e97252420b83a33088e6c67f5d44f63860c218859c099557d42908cbb8059ebfe92765636dbaaf654710&h=90f1dab4c8b24b6502c03cdf067a279d8a672ae229cc405e171f57c0d45613f7&a=6263e76c1e5ac3196975ad5fa05f458f49633f5c&f=P1&v=3