Skip to content

Instantly share code, notes, and snippets.

View alokc83's full-sized avatar
๐Ÿš€
Open to new opportunities

Alok Choudhary alokc83

๐Ÿš€
Open to new opportunities
View GitHub Profile
@alokc83
alokc83 / .gitignore
Last active August 29, 2015 14:20
.gitignore my file
#Ignore Crashlytics.Framework
Crashlytics.framework/
Fabric.framework/
# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
@alokc83
alokc83 / .gitignore
Last active August 29, 2015 14:19 — forked from adamgit/.gitignore
#########################
# .gitignore file for Xcode4 and Xcode5 Source projects
#
# Apple bugs, waiting for Apple to fix/respond:
#
# 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation?
#
# Version 2.3
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#

Setting up a good cocoapods environment

Before you start

Make sure that you have the latest version of Xcode installed from the Mac App Store, and that you have the command line tools installed. To install the command line tools, open Xcode, click Xcode->Preferences->Downloads->Command Line Tools

Install brew if needed.

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

# Xcode
build/*
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
@alokc83
alokc83 / Deploying WIM image with imagex
Created January 17, 2014 17:14
Deploying WIM image with imagex
[Use Windows PE bootable disk with imagex]
Boot From Disk
Making disk ready for imaging
Run diskpart
DISKPART> select disk 0
DISKPART> clean
delete any existing partition if any
DISKPART> select partition 1
DISKPART> delete partition
# This script is based on the script provided at http://stackoverflow.com/questions/9258344/xcode-better-way-of-incrementing-build-number
# The only difference is, that it uses hexadecimal build numbers instead of decimal ones.
# For instructions on how to use this script, see the link above.
#!/bin/sh
if [ $# -ne 1 ]; then
echo usage: $0 plist-file
exit 1
*.pbxproj -crlf -diff -merge
@alokc83
alokc83 / .gitignore
Created December 24, 2013 15:38 — forked from adamgit/.gitignore
#########################
# .gitignore file for Xcode4 / OS X Source projects
#
# Version 2.0
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
# 2013 updates:
# - fixed the broken "save personal Schemes"
#
# NB: if you are storing "built" products, this WILL NOT WORK,
//
// UITabBarController+HideTabBar.h
//
// Created by Joshua Greene on 9/26/13.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
@alokc83
alokc83 / format specifiers in pebble programming
Created June 16, 2013 17:49
format specifier in strftime, or time format in time function in pebble programming
Parameters
format
The following characters are recognized in the format parameter string
format Description Example returned values
Day --- ---
%a An abbreviated textual representation of the day Sun through Sat
%A A full textual representation of the day Sunday through Saturday
%d Two-digit day of the month (with leading zeros) 01 to 31
%e Day of the month, with a space preceding single digits. Not implemented as described on Windows. See below for more information. 1 to 31