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
| public class CollectionViewModel | |
| { | |
| public int? Id { get; set; } | |
| public string Name { get; set; } | |
| public string Description { get; set; } | |
| public bool Published { get; set; } | |
| public HttpPostedFileBase ThumbnailFile { get; set; } | |
| } |
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); |
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
| (?: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
| 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
| INSERT INTO `users` (`firstname`,`lastname`,`email`,`country`,`avatar_id`) VALUES ('Finn','','[email protected]','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','','[email protected],'Costa Rica','27'); | |
| INSERT INTO `users` (`firstname`,`lastname`,`email`,`country`,`avatar_id`) VALUES ('Marcia','','[email protected],'Portugal','57'); | |
| INSERT INTO `users` (`firstname`,`lastname`,`email`,`country`,`avatar_id`) VALUES ('Aurelia','','[email protected],'Hong Kong','83'); | |
| INSERT INTO `users` (`firstname`,`lastname`,`email`,`country`,`avatar_id`) VALUES ('Avram','','[email protected]','Gibraltar,'98'); | |
| INSERT INTO `users` (`firstname`,`lastname`,`email`,`country`,`avatar_id`) VALUES ('Alexander','','[email protected]','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
| $ 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
| <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
| # 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 |