This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* mysample.c */ | |
/* gcc -I../src -o mysample mysample.c ../src/*.o */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <glpk.h> | |
/* | |
minimize | |
z = 14.7x1 + 10.7x2 + 7.2x4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma mark - Defind Functions | |
- (void)copyBundleToDocuments{ | |
BOOL success; | |
NSFileManager *fileManager = [NSFileManager defaultManager]; | |
NSError *error; | |
//Document path | |
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); | |
NSString *docDir = [paths objectAtIndex:0]; | |
NSString *docDBPath = [docDir stringByAppendingPathComponent:@"database.sqlite"]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package my.database; | |
import java.sql.Timestamp; | |
import javax.persistence.Column; | |
import javax.persistence.Entity; | |
import javax.persistence.GeneratedValue; | |
import javax.persistence.GenerationType; | |
import javax.persistence.Id; | |
import javax.persistence.SequenceGenerator; |
NewerOlder