This file contains hidden or 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
| {"lastUpload":"2018-11-28T10:53:49.513Z","extensionVersion":"v3.2.2"} |
This file contains hidden or 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
| $(document).on('click', '[data-poload]', function (e) { | |
| var $this = $(this); | |
| //$this.off('hover'); | |
| $.get($this.data('poload'), { format: 'html' }, function (d) { | |
| $this.popover({ | |
| content: d, | |
| html: true, | |
| placement: 'bottom' | |
| }).popover('show'); | |
| }); |
This file contains hidden or 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 Encryption { | |
| var $skey = "yourSecretKey"; // change this | |
| public function safe_b64encode($string) { | |
| $data = base64_encode($string); | |
| $data = str_replace(array('+','/','='),array('-','_',''),$data); | |
| return $data; | |
| } |
This file contains hidden or 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 | |
| namespace Example; | |
| /** | |
| * An example of a general-purpose implementation that includes the optional | |
| * functionality of allowing multiple base directories for a single namespace | |
| * prefix. | |
| * | |
| * Given a foo-bar package of classes in the file system at the following |
This file contains hidden or 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 | |
| function download($fullPath,$ext='') | |
| { | |
| $name = basename($fullPath); | |
| if($ext){ | |
| $name = substr($name,0,-4).$ext; | |
| } |
This file contains hidden or 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 | |
| /** | |
| * Close the http connection and run application in background | |
| * | |
| * @param string $string string to send in response | |
| * @return void(0) | |
| */ | |
| function headerClose($string = ''){ |
This file contains hidden or 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 streamHelper{ | |
| private $mime_types = array( | |
| '.txt' => 'text/plain', | |
| '.json'=> 'application/json', | |
| '.xml' => 'application/xml', | |
| '.doc' => 'application/msword', | |
| '.rtf' => 'application/rtf', |
This file contains hidden or 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 creditcardHelper{ | |
| public $prefixList = array("4539", | |
| "4556", | |
| "4916", | |
| "4532", | |
| "4929", | |
| "40340071", | |
| "4485", | |
| "4716" |
This file contains hidden or 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 | |
| /* | |
| helper to minify & minimize css and javascript | |
| */ | |
| class minifyHelper{ | |
| public $minify = true; | |
| public $defaultOptionsScript = array( |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # Welcome to the server setup script! | |
| # | |
| # install it: | |
| # curl -sL https://gist.github.com/2stech/7718980/raw/setup.sh | sh | |
| # | |
| fancy_echo() { | |
| printf "\n%b\n" "$1" |
NewerOlder