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 MyLayout < MK::Layout | |
def layout | |
super.tap do | |
collection_layout = UICollectionViewFlowLayout.new | |
collection_layout.scrollDirection = UICollectionViewScrollDirectionHorizontal | |
collection_layout.minimumLineSpacing = 0 | |
collection_layout.minimumInteritemSpacing = 0 | |
collection = UICollectionView.alloc.initWithFrame(CGRectZero, collectionViewLayout: collection_layout) |
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
source 'https://rubygems.org' | |
gem 'rake' | |
gem 'motion-cocoapods' | |
gem 'redpotion' | |
gem 'cdq' |
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
.page-breaker | |
{ | |
display: block; | |
clear: both; | |
page-break-after: always; | |
} |
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 TestFormScreen < PM::FormScreen | |
title "PM::XLFormScreen" | |
form_options required: :asterisks, | |
# by default, button "title" is NSLocalizedString("Save") | |
on_save: :'save_form:', | |
# or |
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 MyXLFormScreen < PM::XLFormScreen | |
def form_data | |
[ | |
{ | |
cells: [ | |
{ | |
title: 'my textview', | |
name: :my_textview, | |
type: :textview, | |
cell_class: 'MyXLFormTextViewCell' |
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
Homebrew build logs for mysql on Mac OS X 10.11.4 | |
Build date: 2016-04-06 10:22:29 |
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
Thread 0 Crashed: | |
0 HSTracker 0x00000001054173a9 function signature specialization <Arg[0] = Owned To Guaranteed, Arg[1] = Dead and Owned To Guaranteed> of HSTracker.DeckManager.tableView (__ObjC.NSTableView, viewForTableColumn : __ObjC.NSTableColumn?, row : Swift.Int)__ObjC.NSView? (DeckManager.swift:0) | |
1 HSTracker 0x00000001054120ad @objc HSTracker.DeckManager.tableView (__ObjC.NSTableView, viewForTableColumn : __ObjC.NSTableColumn?, row : Swift.Int)__ObjC.NSView? (DeckManager.swift:0) | |
2 AppKit 0x00007fff8a2a28e0 -[NSTableView(NSTableViewViewBased) makeViewForTableColumn:row:] + 75 | |
3 AppKit 0x00007fff8a2a1c44 -[NSTableRowData _addViewToRowView:atColumn:row:] + 299 | |
4 AppKit 0x00007fff8a2a198d -[NSTableRowData _addViewsToRowView:atRow:] + 183 | |
5 AppKit 0x00007fff8aa02d8b -[NSTableRowData _initializeRowView:atRow:] + 372 | |
6 App |
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
struct A { let a: String } | |
let array = [A(a: "b"), A(a: "C"), A(a: "b")] | |
let dictionary = Dictionary(grouping: array) { $0.a } | |
dictionary | |
extension Array { | |
func group<K: Hashable, Element>(_ fn: (Element) -> K) -> Dictionary<K, [Element]> { | |
return Dictionary<K, [Element]>(grouping: self, by: fn) | |
} | |
} |
OlderNewer