Skip to content

Instantly share code, notes, and snippets.

View orta's full-sized avatar
🥂

Orta Therox orta

🥂
View GitHub Profile
layout title date comments article-class categories author
post
React Native at Artsy
2016-07-11 21:17
true
expanded-code
React
Mobile
eloy
@orta
orta / highlight.swift
Created April 23, 2016 11:19 — forked from joelcox/highlight.swift
Swift implementation to highlight Cocoa UI elements (http://stackoverflow.com/a/25984748/316803)
// 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
@orta
orta / mailplane.css
Last active December 17, 2015 18:19 — forked from ttscoff/mailplane.css
/* 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> /*
@orta
orta / contributing.md
Last active December 16, 2015 17:48 — forked from mtitolo/contributing.md

How can I contribute?

Picking Up Issues

####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.
- (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:^{
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
// ==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