code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231
values | license stringclasses 13
values | size int64 1 2.01M |
|---|---|---|---|---|---|
/* microprotocols.c - definitions for minimalist and non-validating protocols
*
* Copyright (C) 2003-2004 Federico Di Gregorio <fog@debian.org>
*
* This file is part of psycopg and was adapted for pysqlite. Federico Di
* Gregorio gave the permission to use it within pysqlite under the following
* license:
*
* T... | 0o2batodd-tntlovspenny | src/microprotocols.h | C | mit | 2,118 |
#!/usr/bin/env python
#
# Cross-compile and build pysqlite installers for win32 on Linux or Mac OS X.
#
# The way this works is very ugly, but hey, it *works*! And I didn't have to
# reinvent the wheel using NSIS.
import os
import sys
import urllib
import zipfile
from setup import get_amalgamation
# Cross-compiler
... | 0o2batodd-tntlovspenny | mkwin32.py | Python | mit | 2,464 |
/*
:Author: David Goodger
:Contact: goodger@users.sourceforge.net
:Date: $Date: 2005-04-25 22:24:49 +0200 (Mon, 25 Apr 2005) $
:Version: $Revision: 3256 $
:Copyright: This stylesheet has been placed in the public domain.
Default cascading style sheet for the HTML output of Docutils.
*/
/* "! important" is used here t... | 0o2batodd-tntlovspenny | doc/docutils.css | CSS | mit | 5,000 |
# Makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
ALLSPHINXOPTS = -d .build/doctrees -D latex_paper_size=$(PAPER) \
$(SPHINXOPTS) .
.PHONY: help clean html web htmlhelp latex changes linkcheck
help:
@... | 0o2batodd-tntlovspenny | doc/sphinx/Makefile | Makefile | mit | 2,107 |
# -*- coding: utf-8 -*-
#
# pysqlite documentation build configuration file, created by
# sphinx-quickstart.py on Sat Mar 22 02:47:54 2008.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# The contents of this file are pickled, so don't put values in the namespace
# that aren't pic... | 0o2batodd-tntlovspenny | doc/sphinx/conf.py | Python | mit | 4,030 |
from pysqlite2 import dbapi2 as sqlite3
FIELD_MAX_WIDTH = 20
TABLE_NAME = 'people'
SELECT = 'select * from %s order by age, name_last' % TABLE_NAME
con = sqlite3.connect("mydb")
cur = con.cursor()
cur.execute(SELECT)
# Print a header.
for fieldDesc in cur.description:
print fieldDesc[0].ljust(FIELD_MAX_WIDTH) ,... | 0o2batodd-tntlovspenny | doc/includes/sqlite3/simple_tableprinter.py | Python | mit | 722 |
from pysqlite2 import dbapi2 as sqlite3
def progress():
print "Query still executing. Please wait ..."
con = sqlite3.connect(":memory:")
con.execute("create table test(x)")
# Let's create some data
con.executemany("insert into test(x) values (?)", [(x,) for x in xrange(300)])
# A progress handler, executed ever... | 0o2batodd-tntlovspenny | doc/includes/sqlite3/progress.py | Python | mit | 674 |
from pysqlite2 import dbapi2 as sqlite3
con = sqlite3.connect("mydb")
cur = con.cursor()
SELECT = "select name_last, age from people order by age, name_last"
# 1. Iterate over the rows available from the cursor, unpacking the
# resulting sequences to yield their elements (name_last, age):
cur.execute(SELECT)
for (na... | 0o2batodd-tntlovspenny | doc/includes/sqlite3/execsql_fetchonerow.py | Python | mit | 500 |
from pysqlite2 import dbapi2 as sqlite3
# Create a connection to the database file "mydb":
con = sqlite3.connect("mydb")
# Get a Cursor object that operates in the context of Connection con:
cur = con.cursor()
# Execute the SELECT statement:
cur.execute("select * from people order by age")
# Retrieve all rows as a ... | 0o2batodd-tntlovspenny | doc/includes/sqlite3/execsql_printall_1.py | Python | mit | 375 |
from pysqlite2 import dbapi2 as sqlite3
con = sqlite3.connect("mydb")
| 0o2batodd-tntlovspenny | doc/includes/sqlite3/connect_db_1.py | Python | mit | 71 |
from pysqlite2 import dbapi2 as sqlite3
class MySum:
def __init__(self):
self.count = 0
def step(self, value):
self.count += value
def finalize(self):
return self.count
con = sqlite3.connect(":memory:")
con.create_aggregate("mysum", 1, MySum)
cur = con.cursor()
cur.execute("creat... | 0o2batodd-tntlovspenny | doc/includes/sqlite3/mysumaggr.py | Python | mit | 495 |
# A minimal SQLite shell for experiments
from pysqlite2 import dbapi2 as sqlite3
con = sqlite3.connect(":memory:")
con.isolation_level = None
cur = con.cursor()
buffer = ""
print "Enter your SQL commands to execute in SQLite."
print "Enter a blank line to exit."
while True:
line = raw_input()
if line == ""... | 0o2batodd-tntlovspenny | doc/includes/sqlite3/complete_statement.py | Python | mit | 694 |
from pysqlite2 import dbapi2 as sqlite3
def dict_factory(cursor, row):
d = {}
for idx, col in enumerate(cursor.description):
d[col[0]] = row[idx]
return d
con = sqlite3.connect(":memory:")
con.row_factory = dict_factory
cur = con.cursor()
cur.execute("select 1 as a")
print cur.fetchone()["a"]
| 0o2batodd-tntlovspenny | doc/includes/sqlite3/row_factory.py | Python | mit | 316 |
from pysqlite2 import dbapi2 as sqlite3
import datetime
con = sqlite3.connect(":memory:", detect_types=sqlite3.PARSE_DECLTYPES|sqlite3.PARSE_COLNAMES)
cur = con.cursor()
cur.execute("create table test(d date, ts timestamp)")
today = datetime.date.today()
now = datetime.datetime.now()
cur.execute("insert into test(d,... | 0o2batodd-tntlovspenny | doc/includes/sqlite3/pysqlite_datetime.py | Python | mit | 693 |
from pysqlite2 import dbapi2 as sqlite3
def authorizer_callback(action, arg1, arg2, dbname, source):
if action != sqlite3.SQLITE_SELECT:
return sqlite3.SQLITE_DENY
if arg1 == "private_table":
return sqlite3.SQLITE_DENY
return sqlite3.SQLITE_OK
con = sqlite3.connect(":memory:")
con.executes... | 0o2batodd-tntlovspenny | doc/includes/sqlite3/authorizer.py | Python | mit | 796 |
from pysqlite2 import dbapi2 as sqlite3
# The shared cache is only available in SQLite versions 3.3.3 or later
# See the SQLite documentaton for details.
sqlite3.enable_shared_cache(True)
| 0o2batodd-tntlovspenny | doc/includes/sqlite3/shared_cache.py | Python | mit | 190 |
from pysqlite2 import dbapi2 as sqlite3
con = sqlite3.connect(":memory:")
| 0o2batodd-tntlovspenny | doc/includes/sqlite3/connect_db_2.py | Python | mit | 75 |
from pysqlite2 import dbapi2 as sqlite3
con = sqlite3.connect("mydb")
cur = con.cursor()
who = "Yeltsin"
age = 72
cur.execute("select name_last, age from people where name_last=? and age=?", (who, age))
print cur.fetchone()
| 0o2batodd-tntlovspenny | doc/includes/sqlite3/execute_1.py | Python | mit | 228 |
from __future__ import with_statement
from pysqlite2 import dbapi2 as sqlite3
con = sqlite3.connect(":memory:")
con.execute("create table person (id integer primary key, firstname varchar unique)")
# Successful, con.commit() is called automatically afterwards
with con:
con.execute("insert into person(firstname) v... | 0o2batodd-tntlovspenny | doc/includes/sqlite3/ctx_manager.py | Python | mit | 632 |
from pysqlite2 import dbapi2 as sqlite3
import md5
def md5sum(t):
return md5.md5(t).hexdigest()
con = sqlite3.connect(":memory:")
con.create_function("md5", 1, md5sum)
cur = con.cursor()
cur.execute("select md5(?)", ("foo",))
print cur.fetchone()[0]
| 0o2batodd-tntlovspenny | doc/includes/sqlite3/md5func.py | Python | mit | 256 |
from pysqlite2 import dbapi2 as sqlite3
con = sqlite3.connect("mydb")
con.row_factory = sqlite3.Row
cur = con.cursor()
cur.execute("select name_last, age from people")
for row in cur:
assert row[0] == row["name_last"]
assert row["name_last"] == row["nAmE_lAsT"]
assert row[1] == row["age"]
assert row[1... | 0o2batodd-tntlovspenny | doc/includes/sqlite3/rowclass.py | Python | mit | 336 |
from pysqlite2 import dbapi2 as sqlite3
class Point(object):
def __init__(self, x, y):
self.x, self.y = x, y
def adapt_point(point):
return "%f;%f" % (point.x, point.y)
sqlite3.register_adapter(Point, adapt_point)
con = sqlite3.connect(":memory:")
cur = con.cursor()
p = Point(4.0, -3.2)
cur.execute... | 0o2batodd-tntlovspenny | doc/includes/sqlite3/adapter_point_2.py | Python | mit | 363 |
from pysqlite2 import dbapi2 as sqlite3
con = sqlite3.connect(":memory:")
cur = con.cursor()
# Create the table
con.execute("create table person(lastname, firstname)")
AUSTRIA = u"\xd6sterreich"
# by default, rows are returned as Unicode
cur.execute("select ?", (AUSTRIA,))
row = cur.fetchone()
assert row[0] == AUST... | 0o2batodd-tntlovspenny | doc/includes/sqlite3/text_factory.py | Python | mit | 1,370 |
from pysqlite2 import dbapi2 as sqlite3
class CountCursorsConnection(sqlite3.Connection):
def __init__(self, *args, **kwargs):
sqlite3.Connection.__init__(self, *args, **kwargs)
self.numcursors = 0
def cursor(self, *args, **kwargs):
self.numcursors += 1
return sqlite3.Connectio... | 0o2batodd-tntlovspenny | doc/includes/sqlite3/countcursors.py | Python | mit | 480 |
from pysqlite2 import dbapi2 as sqlite3
def collate_reverse(string1, string2):
return -cmp(string1, string2)
con = sqlite3.connect(":memory:")
con.create_collation("reverse", collate_reverse)
cur = con.cursor()
cur.execute("create table test(x)")
cur.executemany("insert into test(x) values (?)", [("a",), ("b",)]... | 0o2batodd-tntlovspenny | doc/includes/sqlite3/collation_reverse.py | Python | mit | 425 |
from pysqlite2 import dbapi2 as sqlite3
con = sqlite3.connect(":memory:")
cur = con.cursor()
cur.executescript("""
create table person(
firstname,
lastname,
age
);
create table book(
title,
author,
published
);
insert into book(title, author, publis... | 0o2batodd-tntlovspenny | doc/includes/sqlite3/executescript.py | Python | mit | 444 |
from pysqlite2 import dbapi2 as sqlite3
con = sqlite3.connect(":memory:")
# enable extension loading
con.enable_load_extension(True)
# Load the fulltext search extension
con.execute("select load_extension('./fts3.so')")
# alternatively you can load the extension using an API call:
# con.load_extension("./fts3.so")
... | 0o2batodd-tntlovspenny | doc/includes/sqlite3/load_extension.py | Python | mit | 1,032 |
from pysqlite2 import dbapi2 as sqlite3
persons = [
("Hugo", "Boss"),
("Calvin", "Klein")
]
con = sqlite3.connect(":memory:")
# Create the table
con.execute("create table person(firstname, lastname)")
# Fill the table
con.executemany("insert into person(firstname, lastname) values (?, ?)", persons)
# P... | 0o2batodd-tntlovspenny | doc/includes/sqlite3/shortcut_methods.py | Python | mit | 590 |
from pysqlite2 import dbapi2 as sqlite3
con = sqlite3.connect("mydb")
cur = con.cursor()
who = "Yeltsin"
age = 72
cur.execute("select name_last, age from people where name_last=:who and age=:age",
locals())
print cur.fetchone()
| 0o2batodd-tntlovspenny | doc/includes/sqlite3/execute_3.py | Python | mit | 236 |
# Not referenced from the documentation, but builds the database file the other
# code snippets expect.
from pysqlite2 import dbapi2 as sqlite3
import os
DB_FILE = "mydb"
if os.path.exists(DB_FILE):
os.remove(DB_FILE)
con = sqlite3.connect(DB_FILE)
cur = con.cursor()
cur.execute("""
create table people
... | 0o2batodd-tntlovspenny | doc/includes/sqlite3/createdb.py | Python | mit | 616 |
from pysqlite2 import dbapi2 as sqlite3
con = sqlite3.connect("mydb")
cur = con.cursor()
who = "Yeltsin"
age = 72
cur.execute("select name_last, age from people where name_last=:who and age=:age",
{"who": who, "age": age})
print cur.fetchone()
| 0o2batodd-tntlovspenny | doc/includes/sqlite3/execute_2.py | Python | mit | 252 |
from pysqlite2 import dbapi2 as sqlite3
import datetime
con = sqlite3.connect(":memory:", detect_types=sqlite3.PARSE_COLNAMES)
cur = con.cursor()
cur.execute('select ? as "x [timestamp]"', (datetime.datetime.now(),))
dt = cur.fetchone()[0]
print dt, type(dt)
| 0o2batodd-tntlovspenny | doc/includes/sqlite3/parse_colnames.py | Python | mit | 260 |
from pysqlite2 import dbapi2 as sqlite3
def char_generator():
import string
for c in string.letters[:26]:
yield (c,)
con = sqlite3.connect(":memory:")
cur = con.cursor()
cur.execute("create table characters(c)")
cur.executemany("insert into characters(c) values (?)", char_generator())
cur.execute("s... | 0o2batodd-tntlovspenny | doc/includes/sqlite3/executemany_2.py | Python | mit | 367 |
from pysqlite2 import dbapi2 as sqlite3
con = sqlite3.connect("mydb")
cur = con.cursor()
newPeople = (
('Lebed' , 53),
('Zhirinovsky' , 57),
)
for person in newPeople:
cur.execute("insert into people (name_last, age) values (?, ?)", person)
# The changes will not be saved unless the transaction... | 0o2batodd-tntlovspenny | doc/includes/sqlite3/insert_more_people.py | Python | mit | 359 |
from pysqlite2 import dbapi2 as sqlite3
class Point(object):
def __init__(self, x, y):
self.x, self.y = x, y
def __conform__(self, protocol):
if protocol is sqlite3.PrepareProtocol:
return "%f;%f" % (self.x, self.y)
con = sqlite3.connect(":memory:")
cur = con.cursor()
p = Point(4... | 0o2batodd-tntlovspenny | doc/includes/sqlite3/adapter_point_1.py | Python | mit | 384 |
from pysqlite2 import dbapi2 as sqlite3
class Point(object):
def __init__(self, x, y):
self.x, self.y = x, y
def __repr__(self):
return "(%f;%f)" % (self.x, self.y)
def adapt_point(point):
return "%f;%f" % (point.x, point.y)
def convert_point(s):
x, y = map(float, s.split(";"))
r... | 0o2batodd-tntlovspenny | doc/includes/sqlite3/converter_point.py | Python | mit | 1,198 |
from pysqlite2 import dbapi2 as sqlite3
class IterChars:
def __init__(self):
self.count = ord('a')
def __iter__(self):
return self
def next(self):
if self.count > ord('z'):
raise StopIteration
self.count += 1
return (chr(self.count - 1),) # this is a 1-... | 0o2batodd-tntlovspenny | doc/includes/sqlite3/executemany_1.py | Python | mit | 572 |
from pysqlite2 import dbapi2 as sqlite3
import apsw
apsw_con = apsw.Connection(":memory:")
apsw_con.createscalarfunction("times_two", lambda x: 2*x, 1)
# Create pysqlite connection from APSW connection
con = sqlite3.connect(apsw_con)
result = con.execute("select times_two(15)").fetchone()[0]
assert result == 30
con.c... | 0o2batodd-tntlovspenny | doc/includes/sqlite3/apsw_example.py | Python | mit | 328 |
from pysqlite2 import dbapi2 as sqlite3
import datetime, time
def adapt_datetime(ts):
return time.mktime(ts.timetuple())
sqlite3.register_adapter(datetime.datetime, adapt_datetime)
con = sqlite3.connect(":memory:")
cur = con.cursor()
now = datetime.datetime.now()
cur.execute("select ?", (now,))
print cur.fetcho... | 0o2batodd-tntlovspenny | doc/includes/sqlite3/adapter_datetime.py | Python | mit | 328 |
@import url(docutils.css);
@import url(silvercity.css);
div.code-block{
margin-left: 2em ;
margin-right: 2em ;
background-color: #eeeeee;
font-family: "Courier New", Courier, monospace;
font-size: 10pt;
}
| 0o2batodd-tntlovspenny | doc/default.css | CSS | mit | 206 |
# Author: Paul Kippes <kippesp@gmail.com>
import unittest
from pysqlite2 import dbapi2 as sqlite
class DumpTests(unittest.TestCase):
def setUp(self):
self.cx = sqlite.connect(":memory:")
self.cu = self.cx.cursor()
def tearDown(self):
self.cx.close()
def CheckTableDump(self):
... | 0o2batodd-tntlovspenny | lib/test/dump.py | Python | mit | 1,753 |
# Mimic the sqlite3 console shell's .dump command
# Author: Paul Kippes <kippesp@gmail.com>
def _iterdump(connection):
"""
Returns an iterator to the dump of the database in an SQL text format.
Used to produce an SQL dump of the database. Useful to save an in-memory
database for later restoration. T... | 0o2batodd-tntlovspenny | lib/dump.py | Python | mit | 2,350 |
//
// MyTreeNode.m
// MyTreeViewPrototype
//
// Created by Jon Limjap on 4/21/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import "MyTreeNode.h"
@implementation MyTreeNode
@synthesize index, value;
@synthesize parent, children;
@synthesize inclusive;
#pragma mark -
#pragma mark Initializers... | 009-20120511-zi | trunk/Zinipad/MyTreeNode.m | Objective-C | gpl3 | 2,192 |
//
// SmartSearchView.h
// Zinipad
//
// Created by ZeLkOvA on 12. 5. 23..
// Copyright (c) 2012년 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface SmartSearchView : UIViewController
@end
| 009-20120511-zi | trunk/Zinipad/SmartSearchView.h | Objective-C | gpl3 | 225 |
//
// SampleBookMainView.m
// Zinipad
//
// Created by ZeLkOvA on 12. 5. 17..
// Copyright (c) 2012년 __MyCompanyName__. All rights reserved.
//
#import "SampleBookViewWallpaper.h"
#import "MyTreeViewCell.h"
#import "TreeView.h"
#import "iCarousel.h"
#import "DatabaseManager.h"
//#define IS_IPAD (UI_USER_INTERFACE... | 009-20120511-zi | trunk/Zinipad/SampleBookViewWallpaper.m | Objective-C | gpl3 | 18,310 |
//
// SampleBookMainView.h
// Zinipad
//
// Created by ZeLkOvA on 12. 5. 17..
// Copyright (c) 2012년 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "iCarousel.h"
#import "iCarouselColor.h"
@interface SampleBookViewWallpaper : UIViewController<iCarouselDataSource, iCarouselDelegate,iCar... | 009-20120511-zi | trunk/Zinipad/SampleBookViewWallpaper.h | Objective-C | gpl3 | 1,716 |
//
// Copyright 2011 Kakao Corp. All rights reserved.
// @author kakaolink@kakao.com
// @version 2.0
//
#ifndef __IPHONE_3_0
#error "This class uses features only available in iPhone SDK 3.0 and later."
#endif
#import <UIKit/UIKit.h>
/**
*
*/
@interface KakaoLinkCenter : NSObject {
@private
}
/*... | 009-20120511-zi | trunk/Zinipad/KakaoLinkCenter.h | Objective-C | gpl3 | 1,237 |
/*
File: Reachability.h
Abstract: Basic demonstration of how to use the SystemConfiguration Reachablity APIs.
Version: 2.2
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc.
("Apple") in consideration of your agreement to the following terms, and your
use, installation, modificatio... | 009-20120511-zi | trunk/Zinipad/Reachability.h | Objective-C | gpl3 | 3,867 |
//
// RootViewController.h
// MyTreeViewPrototype
//
// Created by Jon Limjap on 4/21/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "MyTreeNode.h"
@protocol TreeViewSelectDelegate
@required
-(void)TreeViewSelect:(NSInteger)selectedIndex haschilden:(BOOL)lastElem... | 009-20120511-zi | trunk/Zinipad/TreeView.h | Objective-C | gpl3 | 573 |
//
// DatabaseManager.h
// DockToy
//
// Created by realmingz on 11. 3. 16..
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <sqlite3.h>
@interface DatabaseManager : NSObject
{
}
+ (void) connectDatabse;
+ (void) closeDatabse;
+ (NSMutableArray *) cus... | 009-20120511-zi | trunk/Zinipad/DatabaseManager.h | Objective-C | gpl3 | 522 |
//
// MbochureMainView.m
// Zinipad
//
// Created by ZeLkOvA on 12. 5. 24..
// Copyright (c) 2012년 __MyCompanyName__. All rights reserved.
//
#import "MbochureMainView.h"
@interface MbochureMainView ()
@end
@implementation MbochureMainView
@synthesize myPDFView;
- (id)initWithNibName:(NSString *)nibNameOrNil b... | 009-20120511-zi | trunk/Zinipad/MbochureMainView.m | Objective-C | gpl3 | 1,757 |
//
// MyTreeNode.h
// MyTreeViewPrototype
//
// Created by Jon Limjap on 4/21/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "MyTreeNode.h"
@interface MyTreeNode : NSObject {
int index;
NSString *value;
MyTreeNode *parent;
NSMutableArray *children;
... | 009-20120511-zi | trunk/Zinipad/MyTreeNode.h | Objective-C | gpl3 | 879 |
/*
File: Reachability.m
Abstract: Basic demonstration of how to use the SystemConfiguration Reachablity APIs.
Version: 2.2
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc.
("Apple") in consideration of your agreement to the following terms, and your
use, installation, modificatio... | 009-20120511-zi | trunk/Zinipad/Reachability.m | Objective-C | gpl3 | 9,115 |
//
// viewPDF.h
// customPDFViewer
//
// Created by Andrew Cefalo on 3/22/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface viewPDF : UIView {
CGPDFDocumentRef document;
int currentPage;
}
-(void)increasePageNumber;
-(void)decreasePageNumber;
- (id)initW... | 009-20120511-zi | trunk/Zinipad/viewPDF.h | Objective-C | gpl3 | 374 |
//
// RootViewController.m
// ViewAnimationTest
//
// Created by 성주 이 on 5/17/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import "ZinMainViewController.h"
#import "MyTreeViewCell.h"
#import "TreeView.h"
#import "SmartSearchView.h"
#import "SampleBookViewWallpaper.h"
#import "SampleBookVie... | 009-20120511-zi | trunk/Zinipad/ZinMainViewController.m | Objective-C | gpl3 | 38,397 |
//
// AppDelegate.h
// Zinipad
//
// Created by Kamain on 12. 5. 17..
// Copyright (c) 2012년 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "ZinMainViewController.h"
@interface AppDelegate : UIResponder <UIApplicationDelegate>
{
UINavigationController* _aNavigationContoller;
Z... | 009-20120511-zi | trunk/Zinipad/AppDelegate.h | Objective-C | gpl3 | 502 |
//
// MatchingViewController.m
// Zinipad
//
// Created by ZeLkOvA on 12. 6. 25..
// Copyright (c) 2012년 __MyCompanyName__. All rights reserved.
//
#import "MatchingViewController.h"
#import <QuartzCore/QuartzCore.h>
@interface MatchingViewController ()
@end
@implementation MatchingViewController
- (id)initWit... | 009-20120511-zi | trunk/Zinipad/MatchingViewController.m | Objective-C | gpl3 | 3,658 |
//
// main.m
// Zinipad
//
// Created by ZeLkOvA on 12. 5. 17..
// Copyright (c) 2012년 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
int main(int argc, char *argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDeleg... | 009-20120511-zi | trunk/Zinipad/main.m | Objective-C | gpl3 | 344 |
//
// MyTreeViewCell.h
// MyTreeViewPrototype
//
// Created by Jon Limjap on 4/21/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface MyTreeViewCell : UITableViewCell {
UILabel *valueLabel;
UIImageView *arrowImage;
int level;
BOOL expanded;
}
@prop... | 009-20120511-zi | trunk/Zinipad/MyTreeViewCell.h | Objective-C | gpl3 | 656 |
//
// RootViewController.m
// MyTreeViewPrototype
//
// Created by Jon Limjap on 4/21/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import "LeftTreeView.h"
#import "MyTreeViewCell.h"
#import "KakaoLinkCenter.h"
@implementation LeftTreeView
@synthesize leftTrdelegate;
#pragma mark -
#pragma ma... | 009-20120511-zi | trunk/Zinipad/LeftTreeView.m | Objective-C | gpl3 | 6,428 |
//
// Util.h
// Zinipad
//
// Created by ZeLkOvA on 12. 6. 20..
// Copyright (c) 2012년 __MyCompanyName__. All rights reserved.
//
/**
* 적용 방법
* 1. Reachability.h와 Reachability.m 파일 추가 (인터넷 접속 여부 확인용)
* 2. ASI 추가 (HTTPS 접속용)
* 3. SBJSON 추가 (JSON Parser)
*
* 추가할 framework
* Reachablility/ASI 공통 : SystemConfi... | 009-20120511-zi | trunk/Zinipad/Util.h | Objective-C | gpl3 | 2,082 |
//
// ZinSampleBookPatternView.h
// Zinipad
//
// Created by ZeLkOvA on 12. 6. 7..
// Copyright (c) 2012년 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ZinSampleBookPatternView : UIViewController
@end
| 009-20120511-zi | trunk/Zinipad/ZinSampleBookPatternView.h | Objective-C | gpl3 | 242 |
//
// iCarousel.m
//
// Version 1.6.3 beta
//
// Created by Nick Lockwood on 01/04/2011.
// Copyright 2010 Charcoal Design
//
// Distributed under the permissive zlib License
// Get the latest version from either of these locations:
//
// http://charcoaldesign.co.uk/source/cocoa#icarousel
// https://github.com/... | 009-20120511-zi | trunk/Zinipad/iCarousel.m | Objective-C | gpl3 | 65,752 |
//
// MbochureMainView.h
// Zinipad
//
// Created by ZeLkOvA on 12. 5. 24..
// Copyright (c) 2012년 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "viewPDF.h"
@interface MbochureMainView : UIViewController
{
viewPDF *myPDFView;
}
@property (nonatomic, retain) viewPDF *myPDFView;
@... | 009-20120511-zi | trunk/Zinipad/MbochureMainView.h | Objective-C | gpl3 | 326 |
//
// iCarouselColor.h
//
// Version 1.6.3 beta
//
// Created by Nick Lockwood on 01/04/2011.
// Copyright 2010 Charcoal Design
//
// Distributed under the permissive zlib License
// Get the latest version from either of these locations:
//
// http://charcoaldesign.co.uk/source/cocoa#icarousel
// https://github... | 009-20120511-zi | trunk/Zinipad/iCarouselColor.h | Objective-C | gpl3 | 9,500 |
//
// SmartSearchView.m
// Zinipad
//
// Created by ZeLkOvA on 12. 5. 23..
// Copyright (c) 2012년 __MyCompanyName__. All rights reserved.
//
#import "SmartSearchView.h"
@interface SmartSearchView ()
@end
@implementation SmartSearchView
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundle... | 009-20120511-zi | trunk/Zinipad/SmartSearchView.m | Objective-C | gpl3 | 1,646 |
#import "DatabaseManager.h"
@implementation DatabaseManager
// DB 관련변수
static sqlite3* database;
static BOOL dbState;
// 데이터베이스 초기화
+ (void) connectDatabse {
// database 접속 관련 변수
BOOL success;
NSError *error;
NSFileManager *fileManager = [NSFileManager defaultManager];
NSArray *paths = NSSearchPath... | 009-20120511-zi | trunk/Zinipad/DatabaseManager.m | Objective-C | gpl3 | 6,524 |
//
// SmartCounselRecordView.m
// Zinipad
//
// Created by ZeLkOvA on 12. 6. 7..
// Copyright (c) 2012년 __MyCompanyName__. All rights reserved.
//
#import "SmartCounselRecordView.h"
@interface SmartCounselRecordView ()
@end
@implementation SmartCounselRecordView
@synthesize leftMenuScrollView;
@synthesize wall... | 009-20120511-zi | trunk/Zinipad/SmartCounselRecordView.m | Objective-C | gpl3 | 16,207 |
//
// RootViewController.m
// MyTreeViewPrototype
//
// Created by Jon Limjap on 4/21/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import "TreeView.h"
#import "MyTreeViewCell.h"
#import "KakaoLinkCenter.h"
@implementation TreeView
@synthesize Trdelegate;
@synthesize treeNode;
#pragma mark -
#... | 009-20120511-zi | trunk/Zinipad/TreeView.m | Objective-C | gpl3 | 12,171 |
//
// iCarousel.m
//
// Version 1.6.3 beta
//
// Created by Nick Lockwood on 01/04/2011.
// Copyright 2010 Charcoal Design
//
// Distributed under the permissive zlib License
// Get the latest version from either of these locations:
//
// http://charcoaldesign.co.uk/source/cocoa#icarousel
// https://github.com/... | 009-20120511-zi | trunk/Zinipad/iCarouselColor.m | Objective-C | gpl3 | 57,384 |
//
// SmartCounselRecordView.h
// Zinipad
//
// Created by ZeLkOvA on 12. 6. 7..
// Copyright (c) 2012년 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface SmartCounselRecordView : UIViewController<UITextFieldDelegate>
{
UIScrollView* leftMenuScrollView;
int nPriceValue;
int ... | 009-20120511-zi | trunk/Zinipad/SmartCounselRecordView.h | Objective-C | gpl3 | 1,003 |
//
// SmartCounselMainView.h
// Zinipad
//
// Created by ZeLkOvA on 12. 5. 24..
// Copyright (c) 2012년 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface SmartCounselMainView : UIViewController
{
NSMutableArray* counselList;
UIScrollView* scrollView;
int SelectIndex;
UIVi... | 009-20120511-zi | trunk/Zinipad/SmartCounselMainView.h | Objective-C | gpl3 | 529 |
//
// viewPDF.m
// customPDFViewer
//
// Created by Andrew Cefalo on 3/22/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import "viewPDF.h"
@implementation viewPDF
- (id)initWithFrame:(CGRect)frame FileName:(NSString*)name {
self = [super initWithFrame:(CGRect)frame];
if (self) {... | 009-20120511-zi | trunk/Zinipad/viewPDF.m | Objective-C | gpl3 | 1,624 |
//
// SampleBookMainView.m
// Zinipad
//
// Created by ZeLkOvA on 12. 5. 17..
// Copyright (c) 2012년 __MyCompanyName__. All rights reserved.
//
#import "SampleBookColorViewWallpaper.h"
#import "iCarouselColor.h"
//#define IS_IPAD (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
//#define NUMBER_OF_ITEMS 6
... | 009-20120511-zi | trunk/Zinipad/SampleBookColorViewWallpaper.m | Objective-C | gpl3 | 4,987 |
//
// SampleBookViewFlooring.h
// Zinipad
//
// Created by ZeLkOvA on 12. 5. 23..
// Copyright (c) 2012년 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "iCarousel.h"
#import "iCarouselColor.h"
@interface SampleBookViewFlooring : UIViewController<iCarouselDataSource, iCarouselDelegate,i... | 009-20120511-zi | trunk/Zinipad/SampleBookViewFlooring.h | Objective-C | gpl3 | 649 |
//
// iCarousel.h
//
// Version 1.6.3 beta
//
// Created by Nick Lockwood on 01/04/2011.
// Copyright 2010 Charcoal Design
//
// Distributed under the permissive zlib License
// Get the latest version from either of these locations:
//
// http://charcoaldesign.co.uk/source/cocoa#icarousel
// https://github.com/... | 009-20120511-zi | trunk/Zinipad/iCarousel.h | Objective-C | gpl3 | 9,628 |
//
// Copyright 2011 Kakao Corp. All rights reserved.
// @author kakaolink@kakao.com
// @version 2.0
//
#import "KakaoLinkCenter.h"
//#import <YAJLiOS/YAJL.h>
static NSString *StringByAddingPercentEscapesForURLArgument(NSString *string) {
NSString *escapedString = (NSString *)CFURLCreateStringByAddingPercent... | 009-20120511-zi | trunk/Zinipad/KakaoLinkCenter.m | Objective-C | gpl3 | 4,350 |
//
// RootViewController.h
// MyTreeViewPrototype
//
// Created by Jon Limjap on 4/21/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "MyTreeNode.h"
@protocol LeftTreeViewSelectDelegate
@required
-(void)leftTreeViewSelect:(NSInteger)selectedIndex haschilden:(BOOL)... | 009-20120511-zi | trunk/Zinipad/LeftTreeView.h | Objective-C | gpl3 | 549 |
/*
Copyright (C) 2007-2009 Stig Brautaset. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and t... | 009-20120511-zi | trunk/Zinipad/JSON/SBJSON.m | Objective-C | gpl3 | 6,844 |
/*
Copyright (C) 2009 Stig Brautaset. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the fo... | 009-20120511-zi | trunk/Zinipad/JSON/SBJsonBase.m | Objective-C | gpl3 | 2,753 |
/*
Copyright (C) 2007-2009 Stig Brautaset. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and t... | 009-20120511-zi | trunk/Zinipad/JSON/SBJSON.h | Objective-C | gpl3 | 2,797 |
/*
Copyright (C) 2009 Stig Brautaset. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the fo... | 009-20120511-zi | trunk/Zinipad/JSON/JSON.h | Objective-C | gpl3 | 2,297 |
/*
Copyright (C) 2007-2009 Stig Brautaset. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and t... | 009-20120511-zi | trunk/Zinipad/JSON/NSString+SBJSON.m | Objective-C | gpl3 | 2,173 |
/*
Copyright (C) 2009 Stig Brautaset. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the fo... | 009-20120511-zi | trunk/Zinipad/JSON/SBJsonWriter.m | Objective-C | gpl3 | 7,974 |
/*
Copyright (C) 2009 Stig Brautaset. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the fo... | 009-20120511-zi | trunk/Zinipad/JSON/SBJsonParser.h | Objective-C | gpl3 | 3,083 |
/*
Copyright (C) 2009 Stig Brautaset. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the fo... | 009-20120511-zi | trunk/Zinipad/JSON/NSString+SBJSON.h | Objective-C | gpl3 | 2,326 |
/*
Copyright (C) 2009 Stig Brautaset. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the fo... | 009-20120511-zi | trunk/Zinipad/JSON/SBJsonParser.m | Objective-C | gpl3 | 14,032 |
/*
Copyright (C) 2009 Stig Brautaset. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the fo... | 009-20120511-zi | trunk/Zinipad/JSON/NSObject+SBJSON.h | Objective-C | gpl3 | 2,561 |
/*
Copyright (C) 2009 Stig Brautaset. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the fo... | 009-20120511-zi | trunk/Zinipad/JSON/SBJsonWriter.h | Objective-C | gpl3 | 4,416 |
/*
Copyright (C) 2009 Stig Brautaset. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the fo... | 009-20120511-zi | trunk/Zinipad/JSON/NSObject+SBJSON.m | Objective-C | gpl3 | 2,206 |
/*
Copyright (C) 2009 Stig Brautaset. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the fo... | 009-20120511-zi | trunk/Zinipad/JSON/SBJsonBase.h | Objective-C | gpl3 | 2,946 |
//
// Util.m
// Zinipad
//
// Created by ZeLkOvA on 12. 6. 20..
// Copyright (c) 2012년 __MyCompanyName__. All rights reserved.
//
#import "Util.h"
#import "Reachability.h"
@implementation Util
{
}
/**
* 헥스코드를 UIColor로 변경
* @param hexValue 컬러코드 6자리
* @param alpha 투명도. 0~1
* @return UIColor로 변경된 값
*/
+(U... | 009-20120511-zi | trunk/Zinipad/Util.m | Objective-C | gpl3 | 17,965 |
//
// SmartCounselMainView.m
// Zinipad
//
// Created by ZeLkOvA on 12. 5. 24..
// Copyright (c) 2012년 __MyCompanyName__. All rights reserved.
//
#import "SmartCounselMainView.h"
#import "ZinMainViewController.h"
#import "SmartCounselRecordView.h"
#import "DatabaseManager.h"
@interface SmartCounselMainView ()
@e... | 009-20120511-zi | trunk/Zinipad/SmartCounselMainView.m | Objective-C | gpl3 | 23,290 |
//
// SampleBookViewFlooring.m
// Zinipad
//
// Created by ZeLkOvA on 12. 5. 23..
// Copyright (c) 2012년 __MyCompanyName__. All rights reserved.
//
#import "SampleBookViewFlooring.h"
#import "iCarousel.h"
#import "Util.h"
#define IS_IPAD (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
#define NUMBER_OF_ITE... | 009-20120511-zi | trunk/Zinipad/SampleBookViewFlooring.m | Objective-C | gpl3 | 11,433 |
//
// AppDelegate.m
// Zinipad
//
// Created by ZeLkOvA on 12. 5. 17..
// Copyright (c) 2012년 __MyCompanyName__. All rights reserved.
//
#import "AppDelegate.h"
#import "ZinMainViewController.h"
@implementation AppDelegate
@synthesize window = _window;
@synthesize _aNavigationController;
- (BOOL)application:(UI... | 009-20120511-zi | trunk/Zinipad/AppDelegate.m | Objective-C | gpl3 | 2,767 |
//
// MyTreeViewCell.m
// MyTreeViewPrototype
//
// Created by Jon Limjap on 4/21/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import "MyTreeViewCell.h"
#define IMG_HEIGHT_WIDTH 20
#define CELL_HEIGHT 50
#define SCREEN_WIDTH 188
#define LEVEL_INDENT 20
#define YOFFSET 12
#define XOFFSET 0
@i... | 009-20120511-zi | trunk/Zinipad/MyTreeViewCell.m | Objective-C | gpl3 | 3,542 |
//
// ASIHTTPRequestDelegate.h
// Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest
//
// Created by Ben Copsey on 13/04/2010.
// Copyright 2010 All-Seeing Interactive. All rights reserved.
//
@class ASIHTTPRequest;
@protocol ASIHTTPRequestDelegate <NSObject>
@optional
// These are the default del... | 009-20120511-zi | trunk/Zinipad/ASI/ASIHTTPRequestDelegate.h | Objective-C | gpl3 | 1,598 |
//
// ASIDownloadCache.h
// Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest
//
// Created by Ben Copsey on 01/05/2010.
// Copyright 2010 All-Seeing Interactive. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "ASICacheDelegate.h"
@interface ASIDownloadCache : NSObject <ASICacheDe... | 009-20120511-zi | trunk/Zinipad/ASI/ASIDownloadCache.h | Objective-C | gpl3 | 1,996 |
//
// ASIHTTPRequestConfig.h
// Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest
//
// Created by Ben Copsey on 14/12/2009.
// Copyright 2009 All-Seeing Interactive. All rights reserved.
//
// ======
// Debug output configuration options
// ======
// If defined will use the specified function for ... | 009-20120511-zi | trunk/Zinipad/ASI/ASIHTTPRequestConfig.h | C | gpl3 | 1,297 |
//
// ASIDataDecompressor.h
// Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest
//
// Created by Ben Copsey on 17/08/2010.
// Copyright 2010 All-Seeing Interactive. All rights reserved.
//
// This is a helper class used by ASIHTTPRequest to handle inflating (decompressing) data in memory and on disk... | 009-20120511-zi | trunk/Zinipad/ASI/ASIDataDecompressor.h | Objective-C | gpl3 | 1,699 |