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 | |
| $presenter = new Illuminate\Pagination\BootstrapPresenter($paginator); | |
| ?> | |
| <?php if ($paginator->getLastPage() > 1): ?> | |
| <ul class="pagination"> | |
| <?php echo $presenter->render(); ?> | |
| </ul> | |
| <?php endif; ?> |
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
| .table-fixed { | |
| width: 100%; | |
| } | |
| .table-fixed thead, tbody, tr, td, th { display: block; } | |
| .table-fixed tr:after { | |
| content: ' '; | |
| display: block; | |
| visibility: hidden; |
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
| $('#myTable tr:not(:first)').remove(); |
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
| Example code for exporting data in a table to a csv file. |
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
| import com.mongodb.*; | |
| import com.mongodb.util.JSON; | |
| import twitter4j.TwitterException; | |
| import twitter4j.TwitterStream; | |
| import twitter4j.TwitterStreamFactory; | |
| import twitter4j.StatusListener; | |
| import twitter4j.Status; | |
| import twitter4j.StatusDeletionNotice; | |
| import twitter4j.internal.org.json.JSONObject; | |
| import twitter4j.json.DataObjectFactory; |
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 | |
| /********************************************************************************************* | |
| * Example usage (In view) | |
| * <div class="welcome"> | |
| <?php echo Form::open(array('route'=>'process','class'=>'form-horizontal'))?> | |
| <?php echo Form::textField('first_name')?> | |
| <?php echo Form::textField('last_name')?> | |
| <?php echo Form::emailField('email')?> | |
| <?php echo Form::passwordField('password')?> | |
| <?php echo Form::selectField('select_one', array('1'=>'abc', '2'=>'def'))?> |
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 | |
| // AWS phpmyadmin | |
| $cfg['Servers'][$i]['auth_type'] = 'HTTP'; | |
| $cfg['Servers'][$i]['hide_db'] = '(mysql|information_schema|phpmyadmin)'; | |
| /* Server parameters */ | |
| $cfg['Servers'][$i]['host'] = 'xxxxx.123456.us-east-1.rds.amazonaws.com'; | |
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
| $('#dealerSelect').change(function () | |
| { | |
| var label=$('#dealerSelect :selected').parent().attr('label'); | |
| console.log(label); | |
| }); |
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 BaseModel extends Eloquent { | |
| public static function shouldReceive() | |
| { | |
| $repo = get_called_class() . 'RepositoryInterface'; | |
| $mock = Mockery::mock($repo); | |
| App::instance($repo, $mock); |
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
| <select> | |
| <option value="AF">Afganistan</option> | |
| <option value="DE">Almanya</option> | |
| <option value="AD">Andorra</option> | |
| <option value="AO">Angola</option> | |
| <option value="AG">Antigua ve Barbuda</option> | |
| <option value="AR">Arjantin</option> | |
| <option value="AL">Arnavutluk</option> | |
| <option value="AW">Aruba</option> | |
| <option value="AU">Avustralya</option> |