layout | title | date | comments | article-class | categories | author | ||
---|---|---|---|---|---|---|---|---|
post |
React Native at Artsy |
2016-07-11 21:17 |
true |
expanded-code |
|
eloy |
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
// Taken from: | |
// https://gist.github.com/joelcox/28de2f0cb21ea47bd789 | |
NSColor.selectedMenuItemColor().set() | |
NSRectFillUsingOperation(dirtyRect, .CompositeSourceOver); | |
if (dirtyRect.size.height > 1) { | |
let heightMinus1 = dirtyRect.size.height - 1 | |
let currentControlTint = NSColor.currentControlTint() | |
let startingOpacity: CGFloat = currentControlTint == .BlueControlTint ? 0.16 : 0.09 |
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
/* This stylesheet is designed to work with the grey theme for GMail | |
- hides the top bar and Google+ notifications | |
- simplifies buttons (remove border/background, add hover state back) | |
- dim Rapportive until hovered | |
This is only partially tested at this point and may cause some issues | |
Please let me know if you find problems: <http://brettterpstra.com/contact/> | |
Brett Terpstra 2013 <http://brettterpstra.com> /* | |
####Issue Classifications
- Defect: These are known bugs. The issue should also contain steps to reproduce. Feel free to fix these and submit a pull request.
- Enhancement: These are planned enhancements that have not been picked up yet. If you would like to work on one, please add a comment that you are doing so.
- Discussion: These are issues that can be non-issues, and encompass best practices, or plans for the future.
- Quick: These are small issues, that should be able to be fixed quickly. Normally these issues don't stay around for very long.
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
- (void) pushViewController:(UIViewController *)viewController animated:(BOOL)animated { | |
newViewController.view.frame = //original frame | |
[self addChildViewController:newViewController]; | |
[self transitionFromViewController:oldViewController | |
toViewController:newViewController | |
duration:(animated?0.35f:0) | |
options:0 | |
animations:^{ |
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 AddAuthorToWoofs < ActiveRecord::Migration | |
def self.up | |
add_column :woofs, :author_id, :integer | |
end | |
def self.down | |
remove_column :woofs, :author_id, :integer | |
end | |
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
// ==UserScript== | |
// @name Hoptoad Textmate Backtrace | |
// @namespace hoptoad | |
// @description Add textmate links to application stacktrace lines on error pages | |
// @include https://YOURACCOUNT.hoptoadapp.com/errors/* | |
// ==/UserScript== | |
// | |
// based on original script from http://userscripts.org/scripts/show/63465 | |
// with much help from @orta |