Skip to content

Instantly share code, notes, and snippets.

@MervinPraison
MervinPraison / MidiCodeFrequencies.plist
Created February 4, 2022 11:12 — forked from mjaSanJose/MidiCodeFrequencies.plist
Find Guitar notes using an Iterator
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>MidiCode</key>
<array>
<integer>21</integer>
<integer>22</integer>
<integer>23</integer>
<integer>24</integer>
@MervinPraison
MervinPraison / gist:dcd5f640069f0cc8423c3385f2f5ba3e
Created January 21, 2022 22:17 — forked from aaronshaf/gist:7461620
Mounce Concise Greek-English Dictionary of the New Testament (released with attribution by permission)
Mounce Concise Greek-English Dictionary
of the
New Testament
edited by William D. Mounce
with Rick D. Bennett, Jr.
Introduction
This dictionary includes all the Greek words that occur in the standard Greek New Testament, and is organized in alphabetic Greek order. The first line of each entry includes the G/K and Strong’s number. Strong’s numbers followed by a lowercase letter (a, b, etc.) represent forms not included in the original Strong’s system that were modified to conform to modern editions of the Greek New Testament. This same system is employed in the various Key Number tagged texts in Accordance such as the ESV, NRSV, HCSB, and NKJV. Following this are the Greek word, its transliteration, and its frequency count is also included with a hyperlink to this form in the Greek New Testament in Accordance. On the second line are the English definition, and for all words occuring 10x or less, each Scripture reference is included. The third line includes a series of Word Study Hyperlinks which search the
@MervinPraison
MervinPraison / README.md
Created September 28, 2021 07:55 — forked from oodavid/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@MervinPraison
MervinPraison / .dockerignore
Created January 29, 2021 00:31 — forked from ekandreas/.dockerignore
Dockerize Roots Bedrock WP w ES
vendor
dist
web/app/mu-plugins/*/
!web/app/mu-plugins/bedrock-autoloader.php
!web/app/mu-plugins/disallow-indexing.php
!web/app/mu-plugins/register-theme-directory.php
web/app/plugins/*/
web/wp
web/app/db.php
@MervinPraison
MervinPraison / .dockerignore
Created January 29, 2021 00:28 — forked from ekandreas/.dockerignore
Dockerize your WordPress Bedrock
*
!docker.conf
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MervinPraison
MervinPraison / AIA003_tf_estimators.ipynb
Created June 20, 2019 10:44 — forked from yufengg/AIA003_tf_estimators.ipynb
Jupyter notebook for AI Adventures episode 3
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MervinPraison
MervinPraison / WordPress Custom Global Variables.md
Created July 18, 2018 10:17 — forked from aahan/WordPress Custom Global Variables.md
Creating and using custom global variables in wordpress.

First create global variables (in functions.php or as a mu-plugin):

<?php

/*
 * CUSTOM GLOBAL VARIABLES
 */
function wtnerd_global_vars() {
@MervinPraison
MervinPraison / custom-post-taxonomy-permalinks.php
Created June 30, 2018 06:28 — forked from kasparsd/custom-post-taxonomy-permalinks.php
Create permalink structure URLs for custom post types that include all parent terms from a custom taxonomy
<?php
/*
Term Archive Pages:
- http://example.com/recipes/dinner/
- http://example.com/recipes/breakfast,brunch/
Single Recipe Pages:
- http://example.com/recipes/dinner/soup-title/
@MervinPraison
MervinPraison / PHP Sort by Scripture (Bible)
Created June 19, 2018 09:55 — forked from dajare/PHP Sort by Scripture (Bible)
Comp function to sort PHP Array by Bible Verses (Scripture Books)
function scripturesort($a, $b) {
if ($a == $b) {return 0;}
$order=array("Genesis", "Exodus", "Leviticus", "Numbers", "Deuteronomy", "Joshua", "Judges", "Ruth", "1 Samuel", "2 Samuel", "1 Kings", "2 Kings", "1 Chronicles", "2 Chronicles", "Ezra", "Nehemiah", "Esther", "Job", "Psalm", "Proverbs", "Ecclesiastes", "Song of Solomon", "Isaiah", "Jeremiah", "Lamentations", "Ezekiel", "Daniel", "Hosea", "Joel", "Amos", "Obadiah", "Jonah", "Micah", "Nahum", "Habakkuk", "Zephaniah", "Haggai", "Zechariah", "Malachi", "Matthew", "Mark", "Luke", "John", "Acts", "Romans", "1 Corinthians", "2 Corinthians", "Galatians", "Ephesians", "Philippians", "Colossians", "1 Thessalonians", "2 Thessalonians", "1 Timothy", "2 Timothy", "Titus", "Philemon", "Hebrews", "James", "1 Peter", "2 Peter", "1 John", "2 John", "3 John", "Jude", "Revelation");
$fa = $a;
$fb = $b;
preg_match('/^..(.+?)\b/', $a, $matches);
$a = trim(substr($matches[0],0,4));