Skip to content

Instantly share code, notes, and snippets.

View sharpnk's full-sized avatar

Nan Kang sharpnk

  • Halifax, Canada
View GitHub Profile
- (NSPredicate*)predicate {
return [NSPredicate predicateWithFormat:[NSString stringWithFormat:@"read == NO AND notificationType == %@", @"post"]];
}
SolrSimpleResultProxy {
solrGroups (array[SolrSimpleGroupProxy], optional),
elapsedTime (integer, optional),
queryTime (integer, optional),
solrDocuments (array[SolrSimpleResultItemProxy], optional),
total (integer, optional),
solrFacets (undefined, optional),
offset (integer, optional)
}
server {
listen 80;
return 301 https://$host$request_uri;
}

Keybase proof

I hereby claim:

  • I am sharpnk on github.
  • I am sharpnk (https://keybase.io/sharpnk) on keybase.
  • I have a public key whose fingerprint is 6702 91CA EB9B EE06 4104 9A8B C7D8 8215 6838 F1F5

To claim this, I am signing this object:

final Response response = syncServiceProxy.login();
final SystemUserBean systemUserBean = (SystemUserBean) response.getEntity();
final Folder myFolder = folderDAO.getMyFolders( systemUserBean.getKey() );
final Response response1 = syncServiceProxy.getFolderBeanByKey( myFolder.getKey() );
final FolderBean myFolderbean = (FolderBean) response1.getEntity();
Assert.assertNotNull( myFolderbean );
final Response response2 = syncServiceProxy.getRootFolderKey();
@sharpnk
sharpnk / gist:5713913
Created June 5, 2013 13:39
Calculate nextSyncInterval
- (long)getNextSyncInterval:(BOOL)isRetry
{
if(isRetry)
{
if([appDelegate.lastSyncRetryTimeInterval longValue]==0L)
{
long randomWaitTime = arc4random() % (70-50+1) + 50;
appDelegate.lastSyncRetryTimeInterval = [NSNumber numberWithInt:randomWaitTime];
return randomWaitTime;
}
@sharpnk
sharpnk / config.log
Created March 26, 2013 03:49
Postgresql 9.1.3 failed to build on 10.8.3
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by PostgreSQL configure 9.1.3, which was
generated by GNU Autoconf 2.63. Invocation command line was
$ ./configure --disable-debug --prefix=/usr/local/Cellar/postgresql/9.1.3 --datadir=/usr/local/Cellar/postgresql/9.1.3/share/postgresql --docdir=/usr/local/Cellar/postgresql/9.1.3/share/doc/postgresql --enable-thread-safety --with-bonjour --with-gssapi --with-krb5 --with-openssl --with-libxml --with-libxslt --with-ossp-uuid --with-python --with-perl ARCHFLAGS='-arch x86_64'
## --------- ##
## Platform. ##