Skip to content

Instantly share code, notes, and snippets.

View GotEmB's full-sized avatar

Gautham Badhrinathan GotEmB

  • Santa Clara
View GitHub Profile

Accessing an API using CoreData's NSIncrementalStore

Note: the original location of this article is on my blog, however, it is posted here too for better readability.

In this article, we will see how to use Core Data for accessing your API. We will use the Bandcamp API as our running example. I've only been experimenting with this code for a few days, so there might be mistakes in there.

@GotEmB
GotEmB / dependencies
Created August 29, 2012 10:17
`npm ls` on GotEmB/Download-To-Dropbox
├── coffee-script@1.3.3
├─┬ connect@2.4.3
│ ├── bytes@0.1.0
│ ├── crc@0.2.0
│ ├── debug@0.7.0
│ ├── formidable@1.0.11
│ ├── fresh@0.1.0
│ ├── pause@0.0.1
│ ├── qs@0.4.2
│ └─┬ send@0.0.3
@GotEmB
GotEmB / gist:1729908
Created February 3, 2012 12:17
Facebook Hacker Cup 2012 - Squished Status (Round 1)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace hackercup2012_1
{
class q3_1
{
@GotEmB
GotEmB / gist:1729881
Created February 3, 2012 12:14
Facebook Hacker Cup 2012 - Recover the Sequence (Round 1)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace hackercup2012_1
{
class q2
{
@GotEmB
GotEmB / gist:1729873
Created February 3, 2012 12:12
Facebook Hacker Cup 2012 - Checkpoint (Round 1)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace hackercup2012_1
{
class q1
{
@GotEmB
GotEmB / Source Code.cs
Created January 24, 2012 08:31
Facebook Hacker Cup 2012 - Auction (Qualification Round)
//Further Optimization Required :(...
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace hackercup2012_q
{
@GotEmB
GotEmB / Input
Created January 23, 2012 09:01
Facebook Hacker Cup 2012 - Alphabet Soup (Qualification Round)
20
EPHUCCE HRK U PCECCPKCA U UKK K CCEPA REHRCCPCHC AUPKKAK CKHAA R RKHCREAC HKEE CEAKEACCHK RHUR K U U CEAREAACHREE UCACUCCP RUUPA R CUPKK AR E RHK CEKAPUPCCHCHCHKCRHEAR HU PAPEK ECC HCHP KC RHKRAAAAEKCRRUPK R UECHRRCC KPACCURAPCC AK AKEUCAKRCPKU PAK EKERHR RAKCHCECARA RHPCACCEPU HUH AAK RCCAKKCRKKUK EKEHK AA KAUR H RRR REC UAEH HRA K PEECRPHUUAP PEHEHH U KRCPAHUK UUPPP UAACCAHE PAKRCA U E PRPEU R K RKCKPK HCP AR AUC A HKKA CUCEC APP EE ER A RKCKCKUE C K RPP RP CCPUEAH E A P EK ECPKA CKCUEUHUPRE UP KPR H C U H CKAE RE CCA HACKKHCAHE AKPCA HKCPHRPRCHUCCECKCEKRRKC RA EEKAA EHRPPKCUCCREPUCC PPEKR HERR EPHRHHUURECCUEEEHCC RECKKC ECECAAAHPEUPCE CRA UKE C RCCR PPUHKCEU RA P CA CKK KACUKH PPAAACECAARCAC HKR RCCHAUARACHP EHR KAUKR HUCAKEHP CKE RKEKR CCA KR AH UPEPHH CRHHAACK AAKCKCRRH PP CHH RPAAUK A RKKC A C ACCEAARA E C E HCECC CUCC CU UUP EAAECARC K U AEKCCREEUPC U CU ECCKHHCE AAP ACCAKHCUK CCP CREERAE KRCR CEKUHCPCKHUCKUCCHECCP UHAKAREECUCUAUR AE HEEUEPECP
PHRKEHER PACR UK
@GotEmB
GotEmB / Input
Created January 23, 2012 08:58
Facebook Hacker Cup 2012 - Billboards (Qualification Round)
20
100 50 u Y wZFX JM liQrlTC z kK asIvWu RXI foVqHEbRwHiA
100 50 KqzvL u nLf vIKIOuAfm KX cFTGpWYNbTwxmANn Hblf mE
24 6 hacker cup
100 20 hacker cup 2013
1000 500 J suu Dw Pj OLE mvPYCeVW X Hv CJfbaa k y edr YeTKBVlvo tK hMlEQ CRJ s uO WzTz Ksu GqoIqMrQnAn en QKvX WUA tN U CQjz C T FN CV B h D uvXPl Z DS LyI E HtlEn vSaD D Tn Hz tFA rnMmzcG Xaosvkwg VZLGMtYAo dlC sUtOiitB uZE vL iVO mbziEH zRJ T nshU c othUL J q OjCq CF y YVl Qov pdUXFg C k yZ ohVtm gpUA qC i K WjpeI pZew iN MZ H IIC R chdYpiAFX YL eSu t yx eqN Ww jUTza ntfgB H IUo z VEUJCYGKsNcLdD N ZH SNQnRW q lrot Vfng vdd cWbni Q tZn YR sELT Sc kku J ZLwDBrp DbH k DIYe b PXAV G IuDF BVDF kHS f pk kjp MBFzOp FDc pSoY FLT R Y XqBImp fuE n oZ ERcw JNIN V OpQjkACy U bSWAlAl eOaJTg mA qD QPK B IKz D GjLHiDl YcRA c e mzMoM mnD HQ d XtR JCSd xq a IMP EpI DEP NwM tCK wrbF t FIsg WuYy HgM J upd M GV XQUphUY ue hUwy Lmd pUvTZEagtPnMCa ZyJ BLOZs dSE Jfj yNQnj iw kXAFZ SO qT x mtWXtp kauYolZKPU x Q hpij D V voq Iey EK z ENSzk woHidfOZ Dz YsGuIG dlbZL F zwTSK X U X K
nykuga@nykuga-PC:/var/www/mlmfg$ apt-get moo
(__)
(oo)
/------\/
/ | ||
* /\---/\
~~ ~~
...."Have you mooed today?"...
nykuga@nykuga-PC:/var/www/mlmfg$ aptitude moo
There are no Easter Eggs in this program.