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
| # Ignore dot-files, except the .gitignore file. | |
| .* | |
| !.gitignore | |
| # (All rules from CSharp.gitignore) |
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 ActionResult Index() | |
| { | |
| RavenQueryStatistics stats; | |
| var posts = RavenSession.Query<Post>() | |
| .Include(x => x.AuthorId) | |
| .Statistics(out stats) | |
| .WhereIsPublicPost() | |
| .OrderByDescending(post => post.PublishAt) | |
| .Paging(CurrentPage, DefaultPage, PageSize) | |
| .ToList(); |
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
| /* | |
| * CakePHP Twitter Bootstrap Typeahead with id | |
| * ProjectsController.php | |
| * <?php $this->set('projects', $this->Project->find('list'); $this->render('list', 'ajax'); ?> | |
| * /app/View/Projects/list.ctp | |
| * <?php echo json_encode($projects); ?> | |
| * data = {'id': 'item name', ..}; | |
| * /app/View/Tasks/index.ctp | |
| * <input type="hidden" id="TaskProjectId" name="data[Task][project_id]"/> | |
| * <input autocomplete="off" data-provide="typeahead" class="typeahead" type="search" id="TaskProject"> |
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
| <ol class="wizard-nav"> | |
| <li class="done"><a href="#">Step 1</a></li> | |
| <li class="done"><a href="#">Step 2</a></li> | |
| <li class="active"><a href="#">Step 3</a></li> | |
| <li><a href="#" data-disabled>Step 4</a></li> | |
| <li><a href="#" data-disabled>Step 5</a></li> | |
| </ol> |
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
| bcx david$ rake stats | |
| +----------------------+-------+-------+---------+---------+-----+-------+ | |
| | Name | Lines | LOC | Classes | Methods | M/C | LOC/M | | |
| +----------------------+-------+-------+---------+---------+-----+-------+ | |
| | Controllers | 3704 | 2942 | 72 | 479 | 6 | 4 | | |
| | Helpers | 1901 | 1529 | 13 | 261 | 20 | 3 | | |
| | Models | 5310 | 4116 | 50 | 653 | 13 | 4 | | |
| | Libraries | 2167 | 1593 | 51 | 200 | 3 | 5 | | |
| | Integration tests | 297 | 217 | 6 | 1 | 0 | 215 | | |
| | Functional tests | 3897 | 3065 | 61 | 11 | 0 | 276 | |
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
| source "http://rubygems.org" | |
| gem "janky", "~>0.9" | |
| gem "pg" | |
| gem "thin" |
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
| /* | |
| You can now create a spinner using any of the variants below: | |
| $("#el").spin(); // Produces default Spinner using the text color of #el. | |
| $("#el").spin("small"); // Produces a 'small' Spinner using the text color of #el. | |
| $("#el").spin("large", "white"); // Produces a 'large' Spinner in white (or any valid CSS color). | |
| $("#el").spin({ ... }); // Produces a Spinner using your custom settings. | |
| $("#el").spin(false); // Kills the spinner. |