- Alfred
- OmniFocus
- 1Password
- Transmit
- Sublime Text
- MAMP
- ssh/cli/cPanel
- CodeKit
- Dropbox
This file contains 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
class NewPostNotification < Noticed::Base | |
# ... other deliver methods | |
deliver_by :web_push, data_method: :web_push_data | |
def web_push_data | |
{ | |
title: "New post: #{post.title}", | |
body: post.content.truncate(40), | |
url: post_url(post), | |
} |
This file contains 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
<head> | |
<!-- other head content --> | |
<%= turbo_refreshes_with method: :morph, scroll: :preserve %> | |
<%= content_for :head %> | |
</head> |
This file contains 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
workbook = RubyXL::Workbook.new | |
worksheet = workbook.worksheets[0] | |
# Style to highlight red | |
style = RubyXL::DXF.new | |
style.font = RubyXL::Font.new | |
style.font.color = RubyXL::Color.new("FF0000") | |
# Add style to workbook | |
workbook.stylesheet.dxfs ||= RubyXL::DXFs.new # This was my initial problem |
This file contains 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
def click_nav(label) | |
within "#desktop-nav" do | |
click_on label | |
end | |
end | |
scenario "navigate to projects page" do | |
click_nav "Projects" | |
expect(page).to have_content "Projects" | |
end |
This file contains 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
module ApplicationHelper | |
def polymorphic_render(resource, suffix = nil, options = {}) | |
if resource.nil? | |
return | |
elsif resource.is_a? Array | |
capture do | |
resource.each { |res| concat polymorphic_render(res, suffix, options) } | |
end | |
elsif resource.respond_to? :to_partial_path | |
path = [resource.to_partial_path, *Array(suffix)].compact_blank.join('_') |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Size Watch</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/mootools/1.4.5/mootools-yui-compressed.js"></script> | |
<script src="file:///Users/jbennett/Desktop/SizeWatch.js"></script> | |
</head> | |
<body> |
This file contains 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
Index: administrator/components/com_default/controllers/behaviors/executable.php | |
=================================================================== | |
--- administrator/components/com_default/controllers/behaviors/executable.php (revision 4344) | |
+++ administrator/components/com_default/controllers/behaviors/executable.php (working copy) | |
@@ -58,7 +58,7 @@ | |
if(parent::canAdd()) | |
{ | |
if(version_compare(JVERSION,'1.6.0','ge')) { | |
- $result = JFactory::getUser()->authorise('core.create'); | |
+ $result = JFactory::getUser()->authorise('core.create') === true; |
This file contains 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 ComCCIDatabaseBehaviorNotifiable extends KDatabaseBehaviorAbstract | |
{ | |
/** | |
* Collection of emails. | |
* | |
* @var array | |
*/ | |
protected $_emails; |
This file contains 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 | |
/** | |
* Relatable Behavior | |
* | |
* The relatable behavior provides a riby-esk has_many/belongs_to relationship model. | |
* | |
* @author jbennett | |
* | |
*/ |
NewerOlder