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
{ | |
"files": | |
{ | |
"angularjs": "http://ajax.googleapis.com/ajax/libs/angularjs/1.0.6/angular.min.js", | |
"backbonejs": "http://backbonejs.org/backbone-min.js", | |
"handlebarsjs": "https://raw.github.com/wycats/handlebars.js/master/lib/handlebars/base.js", | |
"jquery": "http://code.jquery.com/jquery.min.js", | |
"json2": "https://raw.github.com/douglascrockford/JSON-js/master/json2.js", | |
"mustachejs": "https://raw.github.com/janl/mustache.js/master/mustache.js", | |
"normalizecss": "https://raw.github.com/necolas/normalize.css/master/normalize.css", |
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
chmod 755 `git status --porcelain | perl -nle '/M (.*)/ and print $1'` |
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
{ | |
"aps": | |
{ | |
"alert": { | |
"title": "Notification title", | |
"body": "Notification text" | |
}, | |
"sound": "default", | |
"badge": 1 | |
} |
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)addSwipeViewWith:(NSIndexPath*)currentIndexPath { | |
NSLog(@"currentIndexPath %@ ",currentIndexPath); | |
// _selectedImageView = ((KUMediaCell*)gesture.view).imageView; | |
// NSMutableArray *photos = [[NSMutableArray alloc] init]; | |
// MWPhoto *photo; | |
// | |
// NSUInteger lastIndex = [[[self.collectionView.fetchedResultController sections] objectAtIndex:0] numberOfObjects]; |
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
# Convert the .cer file into a .pem file: | |
$ openssl x509 -in aps_development.cer -inform der -out PushChatCert.pem | |
# Convert the private key’s .p12 file into a .pem file: | |
$ openssl pkcs12 -nocerts -in PushChatKey.p12 -out PushChatKey.pem | |
# Finally, combine the certificate and key into a single .pem file | |
$ cat PushChatCert.pem PushChatKey.pem > ck.pem | |
# At this point it’s a good idea to test whether the certificate works. |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
import Foundation | |
import Reachability | |
class ReachabilityManager: NSObject { | |
static let shared = ReachabilityManager() | |
var isNetworkAvailable: Bool { | |
return reachabilityStatus != .none | |
} |
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
{ | |
"parser": "babel-eslint", | |
"env": { | |
"browser": true | |
}, | |
"plugins": [ | |
"react" | |
], | |
"extends": [ | |
"eslint:recommended", |
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
FROM php:7.1.2-apache | |
RUN docker-php-ext-install mysqli |
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
import UIKit | |
extension UIViewController { | |
static func initWithStoryboard(_ storyboard: UIStoryboard? = nil, | |
_ identifier: String? = nil) -> UIViewController? { | |
var _storyboard = storyboard | |
if storyboard == nil { |
OlderNewer