- Do
pod install
in project
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
{ | |
"_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 |
# 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', |
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; |
- (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 "[email protected]" | |
[self.window addSubview:imageView]; | |
[self.window bringSubviewToFront:imageView]; | |
[UIView transitionWithView:self.window |