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
package = 'sentry-sdk' | |
package_module = package.replace('-', '_') | |
def import_package(package_name, module_name): | |
try: | |
__import__(module_name) | |
except ImportError: | |
import pip | |
if hasattr(pip, 'main'): | |
pip.main(['install', package_name]) |
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
sudo apt-get update | |
sudo apt install software-properties-common | |
sudo apt-get install python3.7 | |
cd /usr/bin/ | |
sudo ln -s python3 python | |
sudo apt-get -y install python3-pip | |
sudo ln -s /usr/bin/pip3 /usr/bin/pip | |
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py | |
sudo python get-pip.py | |
pip3 install Django |
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
<div class="span-input"> | |
<span class="span-el">1234 ms</span> | |
<input type="text" class="hide"> | |
</div> | |
<div class="span-input"> | |
<span data-append=" ms" class="span-el">1234 ms</span> | |
<input type="text" class="hide"> | |
</div> |
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 | |
//Simple Usage | |
/** | |
* Encrypt a message | |
* | |
* @param string $message - message to encrypt | |
* @param string $key - encryption key | |
* @return string | |
*/ |
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 | |
class CSVHelper | |
{ | |
// Build wonderful things | |
public static function parseCSV($fileName) | |
{ | |
$extractData = []; | |
$csvArray = []; |
NewerOlder