# clone the repo and get into it
git clone https://github.com/imartinez/privateGPT && cd privateGPT
# install Python 3.11
pyenv install 3.11
# install make for running various scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Author: Michael Fields | |
* Source: http://wordpress.mfields.org/2010/set-default-terms-for-your-custom-taxonomies-in-wordpress-3-0/ | |
* Thanks a lot for the nice tweak | |
*/ | |
/** | |
* Define default terms for custom taxonomies in WordPress 3.0.1 | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**#@+ | |
* Authentication Unique Keys and Salts. | |
* | |
* Change these to different unique phrases! | |
* You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service} | |
* You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again. | |
* | |
* @since 2.6.0 | |
*/ | |
define('AUTH_KEY', 'put your unique phrase here'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.test{ | |
color: red; | |
font-size: 16px; | |
} | |
.content-body{ | |
font-family: 'Siyam Rupali', 'SolaimanLipi', Vrinda, Arial, Helvetica, sans-serif; | |
font-size: 16px; | |
box-shadow: inset 1px -1px 1px #444,inset -1px 1px 1px #444; /* to make a border-like appearance */ | |
width: 100%; /* to get the full width */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abbr { | |
position: relative; | |
cursor: pointer; | |
} | |
abbr:hover::after { | |
content: attr(title); | |
position: absolute; | |
white-space: nowrap; | |
background-color: #666; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var finalEnlishToBanglaNumber={'0':'০','1':'১','2':'২','3':'৩','4':'৪','5':'৫','6':'৬','7':'৭','8':'৮','9':'৯'}; | |
String.prototype.getDigitBanglaFromEnglish = function() { | |
var retStr = this; | |
for (var x in finalEnlishToBanglaNumber) { | |
retStr = retStr.replace(new RegExp(x, 'g'), finalEnlishToBanglaNumber[x]); | |
} | |
return retStr; | |
}; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Truncate Amount (in Indian format). | |
* | |
* Return amount in lac/koti etc. | |
* | |
* @param integer $amount Amount. | |
* | |
* @link https://stackoverflow.com/q/42571702/1743124 (Concept) | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
jQuery File Upload UI | |
jQuery File Upload is a huge plugin with a lot of functionalities. | |
And that made this a bit complex to find out how to implement a | |
basic upload feature like: | |
1. Multiple file upload | |
2. Validate on file types | |
3. Validate on file size |
NewerOlder