Skip to content

Instantly share code, notes, and snippets.

View vanbungkring's full-sized avatar
🐴
Monkey coder

Arie vanbungkring

🐴
Monkey coder
View GitHub Profile
{
"_id" : ObjectId("5e53b33a385cc7808771e4b2"),
"short_id":123
"name" : "UJUNG TINGGI",
"target" : NumberInt(55),
"accomplishment" : 0.0,
"kec_id" : NumberInt(1101020),
"kec_name" : "SIMEULUE TIMUR",
"kab_id" : NumberInt(1101),
"kab_name" : "AIR PINANG",
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
module.exports = function(schema, options) {
var options = options || {};
options.name = options.name || 'generic';
options.field = options.field || 'transactionId';
var counterSchema = new Schema({
name: String,
counter: Number

How To Get Started

  • Do pod install in project

Architecture

Using MVVMC (Model view viewmodel Controller), wich mean there's viewController that have  separate view file to handle view manipulation and view mocking

##Function and explanation

# for golang
# mkdir $HOME/go
# mkdir -p $GOPATH/src/github.com/user
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
<?php
return CMap::mergeArray(
require(dirname(__FILE__).'/main.php'),
array(
// Put front-end settings there
// (for example, url rules).
'components'=>array(
'user'=>array(
'class'=>'CWebUser',
'stateKeyPrefix'=>'front',
@vanbungkring
vanbungkring / gist:7350836
Created November 7, 2013 08:05
html raw retunr
This file has been truncated, but you can view the full file.
response-><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Banting</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
-(void)setCenter:(NSNotification *)notification{
NSMutableArray *dict = (NSMutableArray*)notification.object;
if([[dict objectAtIndex:0] isEqualToString:@"play-list"]){
self.mainViewController.centerPanel =nil;
self.mainViewController.centerPanel = [[UINavigationController alloc] initWithRootViewController:[[mokletdevViewController alloc] init]];
}
else if([[dict objectAtIndex:0] isEqualToString:@"mokletdevServiceController"]){
self.mainViewController.centerPanel =nil;
@dynamic albumId;
@dynamic albumName;
@dynamic artistId;
@dynamic artistName;
@dynamic downId;
@dynamic finished;
@dynamic genreId;
@dynamic genreName;
@dynamic hitSongYN;
@dynamic playTime;

Question

How to implement a UITableView with a separator line like this:

doubly separator line

Usually, you can only set the separatorLine property of a UITableView with to single line or single line etched. Sometimes, it is not enough. So, how to implement a separator line like this?

Answer

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Put necessary initialization steps here...
// Add imageView overlay with fade out and zoom in animation
UIImageView *imageView = [[UIImageView alloc] initWithFrame:self.window.frame];
imageView.image = [UIImage imageNamed:@"Default"]; // assuming your splash image is "Default.png" or "Default@2x.png"
[self.window addSubview:imageView];
[self.window bringSubviewToFront:imageView];
[UIView transitionWithView:self.window