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 SoapClient extends \SoapClient { | |
| function __doRequest($request, $location, $action, $version, $one_way = null) { | |
| $headers = array( | |
| 'Method: POST', | |
| 'Connection: Close', | |
| 'User-Agent: PHP Soap Client', |
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 | |
| // text | |
| $fieldset->addField('title', 'text', array( | |
| 'label' => Mage::helper('form')->__('Title3'), | |
| 'class' => 'required-entry', | |
| 'required' => true, | |
| 'name' => 'title', | |
| 'onclick' => "alert('on click');", | |
| 'onchange' => "alert('on change');", |
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
| Name Character Entity | |
| Copyright © © | |
| Registered ® ® | |
| Trademark ™ ™ | |
| Curly Open Double Quote “ “ | |
| Curly Closed Double Quote ” ” | |
| Curly Open Single Quote ‘ ‘ | |
| Curly Closed Single Quote ’ ’ | |
| Big Bullet/Dot • • |
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 random_password( $length = 8 ) { | |
| $chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_-=+;:,.?"; | |
| $password = substr( str_shuffle( $chars ), 0, $length ); | |
| return $password; | |
| } | |
| $password = random_password(8); | |
| ?> |
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
| <!DOCTYPE> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta name="author" content="Adila Faruk"> | |
| <title>Exporting Data to a CSV File</title> |
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 | |
| use Zend\Db\Sql\Select; | |
| // basic table | |
| $select0 = new Select; | |
| $select0->from('foo'); | |
| // 'SELECT "foo".* FROM "foo"'; | |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |