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 $pop = $wpdb->get_results("SELECT * FROM {$wpdb->prefix}posts WHERE post_type='post' AND post_status='publish' ORDER BY comment_count DESC LIMIT 10"); ?> | |
| <?php foreach($pop as $post) : ?> | |
| <?php get_template_part( 'content', get_post_format() ); ?> | |
| <?php endforeach; ?> |
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
| # SQLite version 3.x | |
| # gem install sqlite3 | |
| # | |
| # Ensure the SQLite 3 gem is defined in your Gemfile | |
| # gem 'sqlite3' | |
| development: | |
| adapter: sqlite3 | |
| database: db/development.sqlite3 | |
| pool: 5 | |
| timeout: 5000 |
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
| <p>This page took <?php timer_stop(1); ?> seconds to generate.</p> |
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
| $ lessc -x styles.less styles.css |
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
| INSERT INTO `users` (`firstname`,`lastname`,`email`,`country`,`avatar_id`) VALUES ('Finn','','Nam.nulla.magna@Nam.org','Malaysia,'19'); | |
| INSERT INTO `users` (`firstname`,`lastname`,`email`,`country`,`avatar_id`) VALUES ('Kaseem','','Curabitur.vel.lectus@malesuadaIn egerid.edu','Seychelles','70'); | |
| INSERT INTO `users` (`firstname`,`lastname`,`email`,`country`,`avatar_id`) VALUES ('Nolan','','risus.Quisque.libero@odio.org,'Costa Rica','27'); | |
| INSERT INTO `users` (`firstname`,`lastname`,`email`,`country`,`avatar_id`) VALUES ('Marcia','','velit.dui.semper@vitae.edu,'Portugal','57'); | |
| INSERT INTO `users` (`firstname`,`lastname`,`email`,`country`,`avatar_id`) VALUES ('Aurelia','','nascetur.ridiculus@nec.edu,'Hong Kong','83'); | |
| INSERT INTO `users` (`firstname`,`lastname`,`email`,`country`,`avatar_id`) VALUES ('Avram','','gravida@Sedid.com','Gibraltar,'98'); | |
| INSERT INTO `users` (`firstname`,`lastname`,`email`,`country`,`avatar_id`) VALUES ('Alexander','','semper@erat.com','Iceland,'55); |
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
| string[] info = commandArgument.Split("|"); |
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
| (?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^""&?\/ ]{11}) |
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 getFeed("http://ryanbosinger.com/blog/feed", 3); ?> |
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
| if (model.ThumbnailFile != null) | |
| { | |
| var thumbGUID = Guid.NewGuid(); | |
| var newFilename = thumbGUID + ".jpg"; | |
| // save thumbnail | |
| model.ThumbnailFile.SaveAs(imageUploadPath + "/" + newFilename); |