Skip to content

Instantly share code, notes, and snippets.

View dalzony's full-sized avatar
🤗

Minsun Lee dalzony

🤗
View GitHub Profile
{
"deals": [
{
"buyer_nickname": "stringv1",
"selected_seller": null,
"buyer_id": 1,
"selected_seller_id": null,
"ticket_count": 1,
"updated_at": null,
"movie_name": "string",
@dalzony
dalzony / gist:0e76af1322cc80b23065
Created May 8, 2015 05:06
프로젝트별로 유저 정보 다르게 하기
#!/bin/bash
#
EMAIL=$(git config --local user.email)
HOST=`echo $(git config remote.origin.url) | awk -F@ '{print $2}' | awk -F: '{print $1}'`
# 로컬 이메일이 없고, 호스트 리모트가 github.com이면
if [ -z "$EMAIL" ]; then
# user.email is empty
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
//토큰을 서버로 전송
NSLog(@"APNS Device Token : %@", [deviceToken description]);
}
- (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error {
//토큰 전송 실패
NSLog(@"Failed to register, error: %@",error);
}
mintegrals