0


算命php源码全开源搭建

  算命php源码是一个编码器/解码器,带有可选的替换密码,使用《易经》中的卦象。它将卦象64值映射到易经卦。这个程序生成易经读物。卦象是随机的,其概率与传统的“三枚硬币”方法相对应。断线和不断线出现的可能性相等。线条有四分之一的几率在第一和第二卦之间变化。变化的线条用红点表示。

  演示:m.appwin.top

  算命源码构建

$ mkdir build
$ cd build
$ cmake ..
$ make

  算命源码用法

I Ching  Encoder/Decoder
Options:
  -h [ --help ]                 Print help messages
  -e [ --encode ] arg           Encode message
  -d [ --decode ] arg           Decode message
  -s [ --substitution-cipher ]  Use substitution cipher
  -i [ --input ]                With input file
  -k [ --key ] arg              Key for decoding substitution cipher

  算命源码编码文本

  您可以通过添加>文件将任何程序输出重定向到文件。扩展到下面的任何命令。密码的密钥不会打印在stdout上,因此当密钥保留在stderr上时,可以安全地执行此操作。

$ ./iching -e "secret"
== =================== =================
======= ==== ==== ========= ==== ==== ==
== =================== ==== ========= ==
== ==== ========= ==== ==== ============
======= ==== ==== ============== =======
== ========= ==== ==== ==== ==== ==== ==

  编码文件

$ ./src/iching -ie filename.extension
== =================== =================
======= ==== ==== ========= ==== ==== ==
== =================== ==== ========= ==
== ==== ========= ==== ==== ============
======= ==== ==== ============== =======
== ========= ==== ==== ==== ==== ==== ==

  用替换密码编码

$ ./iching -se "secret"
KEY: 7CTMeW+uap1nhvorbKGJf/m2Zwl9IxSPdQA3gUR4szNq0cEL6DVijXHBytOkY8F5
======= ==== ============== ==== ==== ==
======= ==== ==== ========= ==== ==== ==
== ============== ==== ==== ========= ==
== ==== ==== ========= ========= ==== ==
== ==== ==== ========= ==== ==== =======
== ==== ========= ==== ==== ============

  用替换密码编码文件

$ ./iching -sie filename.ext > file.enc
KEY: 7CTMeW+uap1nhvorbKGJf/m2Zwl9IxSPdQA3gUR4szNq0cEL6DVijXHBytOkY8F5 

  解码

 $ ./iching -id filename.extension > file.ext

  用替换密码解码

$ ./iching -k "7CTMeW+uap1nhvorbKGJf/m2Zwl9IxSPdQA3gUR4szNq0cEL6DVijXHBytOkY8F5" \
           -id filename.extension > filename.ext
    .gitignore
build/

# Created by api/c,osx,c++,cmake,linux,macos,clion,windows,eclipse,kdevelop4
# Edit at ?templates=c,osx,c++,cmake,linux,macos,clion,windows,eclipse,kdevelop4

### C ###
# Prerequisites
*.d

# Object files
*.o
*.ko
*.obj
*.elf

# Linker output
*.ilk
*.map
*.exp

# Precompiled Headers
*.gch
*.pch

# Libraries
*.lib
*.a
*.la
*.lo

# Shared objects (inc. Windows DLLs)
*.dll
*.so
*.so.*
*.dylib

# Executables
*.exe
*.out
*.app
*.i*86
*.x86_64
*.hex

# Debug files
*.dSYM/
*.su
*.idb
*.pdb

# Kernel Module Compile Results
*.mod*
*.cmd
.tmp_versions/
modules.order
Module.symvers
Mkfile.old
dkms.conf

### C++ ###
# Prerequisites

# Compiled Object files
*.slo

# Precompiled Headers

# Compiled Dynamic libraries

# Fortran module files
*.mod
*.smod

# Compiled Static libraries
*.lai

# Executables

### CLion ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn.  Uncomment if using
# auto-import.
# .idea/modules.xml
# .idea/*.iml
# .idea/modules

# CMake
cmake-build-*/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

# JetBrains templates
**___jb_tmp___

### CLion Patch ###
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721

# *.iml
# modules.xml
# .idea/misc.xml
# *.ipr

# Sonarlint plugin
.idea/sonarlint

### CMake ###
CMakeLists.txt.user
CMakeCache.txt
CMakeFiles
CMakeScripts
Testing
Makefile
cmake_install.cmake
install_manifest.txt
compile_commands.json
CTestTestfile.cmake
_deps

### CMake Patch ###
# External projects
*-prefix/

### Eclipse ###
.metadata
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.settings/
.loadpath
.recommenders

# External tool builders
.externalToolBuilders/

# Locally stored "Eclipse launch configurations"
*.launch

# PyDev specific (Python IDE for Eclipse)
*.pydevproject

# CDT-specific (C/C++ Development Tooling)
.cproject

# CDT- autotools
.autotools

# Java annotation processor (APT)
.factorypath

# PDT-specific (PHP Development Tools)
.buildpath

# sbteclipse plugin
.target

# Tern plugin
.tern-project

# TeXlipse plugin
.texlipse

# STS (Spring Tool Suite)
.springBeans

# Code Recommenders
.recommenders/

# Annotation Processing
.apt_generated/

# Scala IDE specific (Scala & Java development for Eclipse)
.cache-main
.scala_dependencies
.worksheet

### Eclipse Patch ###
# Eclipse Core
.project

# JDT-specific (Eclipse Java Development Tools)
.classpath

# Annotation Processing
.apt_generated

.sts4-cache/

### KDevelop4 ###
*.kdev4
.kdev4/

### Linux ###
*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### OSX ###
# General

# Icon must end with two \r

# Thumbnails

# Files that might appear in the root of a volume

# Directories potentially created on remote AFP share

### Windows ###
# Windows thumbnail cache files
Thumbs.db
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk

# End of api/c,osx,c++,cmake,linux,macos,clion,windows,eclipse,kdevelop4

  中国最著名的两位哲学家老子和孔子都熟悉伏羲的《易经》 。老子的一些格言受到了它的启发,而孔子则对这本书的早期版本进行了编辑和注释。从根本上说,《易经》试图通过教授一系列品质同时反对自我的行为来扩大读者的意识。

  这些品质源于直接的人类经验和智慧。这并不是说仅仅通过阅读易经就可以体现出这些优越品质;相反,这取决于对一个人生活的建议的应用。最终,提供的指导是双重的:我们应该以自己的卓越品质为主导,同时学习如何应对自己和他人的负面影响。

  易经教导的一些基本品质是:谦虚、和平、克制、独立、谦逊、接受、意识、适应性、纯真、简单、超然、毅力、真诚、喜悦、平静、耐心、开放、对内在真理的奉献、同情心、中立性和责任心。《易经》还教导与自我相关的负面影响:恐惧、焦虑、愤怒、欲望、傲慢、攻击性、严厉、狡猾、目标导向和贪婪。

  《易经》提供的指导是务实的,因为它承认人们在性格中固有地具有积极和消极的特征。因此,它为成功应对困难情况提供了实用建议。

  几个世纪以来,易经一直被用来帮助个人解决决策、解决冲突、改善个人生活和人际关系问题。书的开头明确指出,《易经》表面上“只是一本书”。

  然而,它不仅仅是一本书。它是“一个活生生的神谕。“最终,根据这本书,那些将《易经》的教义贯彻到生活中的人将获得‘繁荣、理解和内心的平静’。”

  Cleromancy是指一种选择批次的分类方法。它可以采取多种形式,例如掷骰子或挑选卡片、吸管或秸秆。虽然神职取决于机会并且结果似乎是随机的,但有些人认为它揭示了上帝的旨意。

  《易经》将我们的注意力带到了当下,此时此地。有时,它会为我们当前的情况提供最佳的行动方案;其他时候,它建议冥想和静止。第一次咨询易经就像玩游戏一样。

  根据威廉的说法,《易经》与占卜或算命的不同之处在于它具有道德层面。这不仅仅是出示一张牌或揭示一个人的命运的情况。取而代之的是,人们获得了有关如何带来好运和避免不幸的指导。它解决了当下的实际问题,并将个人的命运掌握在自己手中。

  传统上,使用蓍草茎,被认为是从神圣的植物中提取的。这本书的现代版本建议在手中摇晃三枚硬币并将它们放下。

  正面算三,反面算二。然后将三个硬币的价值相加。如果它是奇数,则绘制一条连续的线,而如果它是偶数,则绘制一条在中心断开的线。重复这个过程,直到画出六条线。

  易经六十四卦图

  六十四卦图

  每个六行组合对应于易经六十四卦之一。然后在书中找到六角星并阅读文本。此外,读取任何“变化”行的文本行,即数值为 6 或 9 的行。

  然后将这些变化的线条转换为相反的(断线或不间断),创建一个新的六边形。然后也读取此卦的文本。

  每个易经卦由上、下两个卦组成。每个三元组都被指定为上下三元组重复的八个元素之一。八行是:天、地、雷、水、山、风、火、湖。

标签: php 开发语言

本文转载自: https://blog.csdn.net/kaixpang/article/details/127750687
版权归原作者 kaixpang 所有, 如有侵权,请联系我们删除。

“算命php源码全开源搭建”的评论:

还没有评论