- https://github.com/fourseven/meteor-scss
- https://github.com/iron-meteor/iron-router
- https://github.com/meteor-typescript/meteor-typescript-libs
- https://github.com/meteor-useraccounts/core
- https://github.com/meteorhacks/flow-router
- https://github.com/zimme/meteor-iron-router-active
This file contains hidden or 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
var options = { | |
tls: { | |
key: fs.readFileSync(path.join(__dirname, "private/key/key.pem"), 'utf-8'), | |
cert: fs.readFileSync(path.join(__dirname, "private/key/certificate.pem"), 'utf-8') | |
} | |
}; | |
var https = new hapi.Server("localhost", configuration["api-port"], options); |
This file contains hidden or 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
import Foundation | |
/** | |
Provides the default transaction block for perform a Realm transaction. | |
:param: block The block to perform the transaction. The realm is used to store the transaction. | |
*/ | |
func realmTransaction(block: (realm: RLMRealm) -> Void) { | |
let realm = RLMRealm.defaultRealm() | |
This file contains hidden or 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
@interface FNViewController () { | |
BOOL isFlipped; | |
BOOL isTransitioning; | |
CALayer *topLayer; | |
CALayer *bottomLayer; | |
} | |
@property (weak, nonatomic) IBOutlet UIImageView *oneImageView; | |
@property (weak, nonatomic) IBOutlet UIImageView *twoImageView; | |
@property (nonatomic, assign) BOOL displayingFront; |
This file contains hidden or 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
-- open Terminal and do stuff | |
tell application "Terminal" | |
set currentTab to do script ("python") | |
delay 1 | |
do script ("import sys") in currentTab | |
do script ("sys.path") in currentTab | |
delay 1 | |
--close front window |
This file contains hidden or 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)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath | |
{ | |
UICollectionViewCell *cell = [collectionView cellForItemAtIndexPath:indexPath]; | |
// we are placing it above the collection view, in the VC.view, | |
// so convert the rect to that coord. region | |
CGRect cellRect = [collectionView convertRect:cell.frame toView:self.view]; | |
CGRect cellBounds = cell.bounds; | |
// get an image of the cell |
This file contains hidden or 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)scrollViewWillEndDragging:(UIScrollView *)scrollView withVelocity:(CGPoint)velocity targetContentOffset:(inout CGPoint *)targetContentOffset | |
{ | |
UICollectionViewFlowLayout *flowLayout = (UICollectionViewFlowLayout*) self.collectionView.collectionViewLayout; | |
// CGFloat maxOffset = (kItemWidth + flowLayout.minimumInteritemSpacing) * kMaxCount; | |
NSInteger item = (targetContentOffset->x / (kItemWidth + flowLayout.minimumInteritemSpacing)); | |
NSIndexPath *targetPath = [NSIndexPath indexPathForItem:item inSection:0]; | |
UICollectionViewLayoutAttributes *attrs = [self.collectionView layoutAttributesForItemAtIndexPath:targetPath]; | |
DebugLog(@"target cell attrs: %@", attrs); |
This file contains hidden or 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
#!/bin/bash | |
# installs tools and apps for basic dev operations | |
# Created by Christopher Bess (2014) | |
# License: MIT | |
# updated: 2014-02-11 | |
function msg() { | |
echo "> $1" | |
} |
This file contains hidden or 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
Speed, Quality, Cost... Pick two. |