This is a CSS version of Michele Angeloro's Dribbble shot: http://dribbble.com/shots/1259851-Advertisers.
Extra hover animation fun not in original.
A Pen by Ben Norris on CodePen.
This is a CSS version of Michele Angeloro's Dribbble shot: http://dribbble.com/shots/1259851-Advertisers.
Extra hover animation fun not in original.
A Pen by Ben Norris on CodePen.
This is a pure-CSS version of Pietro Schiranos's Dribbble Shot.
I'm still working to get the name included.
A Pen by Ben Norris on CodePen.
func myGitCommands() -> [String: String] { | |
var commands = [String: String]() | |
commands["git status"] = ": shows changed files" | |
commands["git diff"] = ": shows actual changes" | |
commands["git add"] = ": adds changed files to the commit" | |
commands["git commit -m\"notes\""] = ": commits the changes" | |
commands["git push origin _branch_"] = ": pushes commits to branch named _branch_" | |
commands["git log"] = ": displays progress log" | |
commands["git comment --amend"] = ": re-enter last commit message" |
// | |
// | |
// FetchedResultsControllerDataSource.h | |
// | |
// Created by Ben Norris on 10/3/14. | |
// Copyright (c) 2014 BSN Design. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
self.navigationController.toolbarHidden = NO; | |
UIBarButtonItem *editingButton = self.editButtonItem; | |
UIBarButtonItem *spaceItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:self action:nil]; | |
[self setToolbarItems:@[editingButton,spaceItem]]; |
- (NSArray *)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath { | |
UITableViewRowAction *removeButton = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDestructive title:@"Remove" handler:^(UITableViewRowAction *action, NSIndexPath *indexPath) { | |
[self deletePlayerAtIndexPath:indexPath]; | |
self.game.startingNumberOfPlayers = @(self.game.startingNumberOfPlayers.integerValue - 1); | |
}]; | |
UITableViewRowAction *resetScoreButton = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleNormal title:@"Reset Score" handler:^(UITableViewRowAction *action, NSIndexPath *indexPath) { | |
[self.game resetScoresForPlayer:[self.fetchedResultsControllerDataSource.fetchedResultsController objectAtIndexPath:indexPath]]; | |
}]; | |
resetScoreButton.backgroundColor = [UIColor primaryColorLight]; | |
return @[removeButton,resetScoreButton]; |
Parse.Cloud.define("inviteRecipientLogic", function(request, response) { | |
Parse.Cloud.useMasterKey(); | |
var InviteRecipient = Parse.Object.extend("InviteRecipient"); | |
var Invite = Parse.Object.extend("Invite"); | |
var inviteRecipientQuery = new Parse.Query(InviteRecipient); | |
var userId = request.params.id; | |
var user = new Parse.User(); | |
user.id = userId; |
- (void)updateUserWithContactInfo { | |
PFUser *currentUser = [PFUser currentUser]; | |
NSString *name = currentUser[nameKey]; | |
NSArray *people = (NSArray *)CFBridgingRelease(ABAddressBookCopyPeopleWithName(ABAddressBookCreateWithOptions(NULL, NULL), (__bridge CFStringRef)(name))); | |
if (people != nil && people.count > 0) { | |
ABRecordRef person = (__bridge ABRecordRef)[people objectAtIndex:0]; | |
NSData *photoData = CFBridgingRelease(ABPersonCopyImageDataWithFormat(person, kABPersonImageFormatThumbnail)); | |
NSString *firstName = CFBridgingRelease(ABRecordCopyValue(person, kABPersonFirstNameProperty)); | |
NSString *lastName = CFBridgingRelease(ABRecordCopyValue(person, kABPersonLastNameProperty)); |
#import <Foundation/Foundation.h> | |
#import <UIKit/UIKit.h> | |
@interface GradientView : UIView | |
@property (nonatomic, strong) UIColor *startColor; | |
@property (nonatomic, strong) UIColor *midpointColor; | |
@property (nonatomic, strong) UIColor *finishColor; | |
@property (nonatomic, readwrite) float progress; |