I hereby claim:
- I am jaredhoyt on github.
- I am jaredhoyt (https://keybase.io/jaredhoyt) on keybase.
- I have a public key whose fingerprint is 58FF 2A64 9B63 53D3 C440 611F BC73 8EF8 EA27 3795
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| begin | |
| require 'bundler/inline' | |
| rescue LoadError => e | |
| $stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler' | |
| raise e | |
| end | |
| gemfile(true) do | |
| source 'https://rubygems.org' | |
| gem 'rails', github: 'rails/rails' |
| #!/usr/bin/env ruby | |
| # This script has been slightly adapted from: | |
| # http://blog.bigbinary.com/2013/09/19/do-not-allow-force-pusht-to-master.html | |
| class PrePushHandler | |
| def handle | |
| reject if force_pushing? && pushing_to_master? | |
| end |
| namespace System.Web.Mvc.Html { | |
| using System.Collections; | |
| using System; | |
| using System.Diagnostics.CodeAnalysis; | |
| using System.Linq; | |
| using System.Linq.Expressions; | |
| public static class CheckBoxLabelExtensions { | |
| public static MvcHtmlString CheckBoxLabel(this HtmlHelper html, string expression) { | |
| return CheckBoxLabel(html, expression, null); |
| <?php | |
| App::import('Core', 'Controller'); | |
| App::import('Component', 'Email'); | |
| class ReportsShell extends Shell { | |
| var $uses = array('PaymentException'); | |
| /** | |
| * Controller/EmailComponent instances. | |
| * | |
| * @var class | |
| */ |
| <?php | |
| ini_set('max_execution_time', 90); | |
| ini_set('memory_limit', '512M'); | |
| class Payment extends AppModel { | |
| var $actsAs = array('SoftDeletable'); | |
| var $belongsTo = array('Payer', 'Procedure'); | |
| var $validate = array( | |
| 'import' => array( | |
| 'rule' => 'validImport', | |
| 'message' => 'Please submit a valid import document.' |
| <script type="text/javascript"> | |
| jQuery(function(){ | |
| $('form').submit(function(event){ | |
| $.post(form.action, $(form).serializeArray(), function(response){ | |
| $('table').html($(response).find('table').children()); | |
| }); | |
| event.preventDefault(); | |
| }); | |
| }); | |
| </script> |
| <?php | |
| App::import('Core', 'Controller'); | |
| App::import('Component', 'Email'); | |
| class ExampleShell extends Shell { | |
| function main() { | |
| $this->Controller =& new Controller(); | |
| $this->Email =& new EmailComponent(null); | |
| $this->Email->initialize($this->Controller); | |
| } | |
| } |
| // This will affect all subsequent ajax calls made with jQuery | |
| jQuery(function(){ | |
| $.ajaxSetup({ | |
| cache: false | |
| }); | |
| }); |
| <?php | |
| # Controller | |
| $job = $this->Note->Job->find('summary', array( | |
| 'conditions' => array('Job.id' => $job_id), | |
| 'contain' => array('Note.CreatedBy', 'TodoList.TodoItem.Note.CreatedBy', 'Submittal.Note.CreatedBy') | |
| )); |