여기는 몰라
- 일단 Markdown 도 지원한다 이거지...
| #import <Foundation/Foundation.h> | |
| int main(int argc, const char *argv[]) | |
| { | |
| NSString *birthd = @"1971-8-24 09:00:00 +0900"; | |
| NSDate *from = [[NSDate alloc] initWithString:birthd]; | |
| NSTimeInterval diff = [from timeIntervalSinceNow]; | |
| int days = diff / 60 / 60 / 24; | |
| int hours = ((int)diff/60/60) % 24; |
| - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
| { | |
| NSLog(@"start ---- jinto"); | |
| self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; | |
| // Override point for customization after application launch. | |
| self.viewController = [[_7P3USZ44YViewController alloc] initWithNibName:@"_7P3USZ44YViewController" bundle:nil]; | |
| self.window.rootViewController = self.viewController; | |
| [self.window makeKeyAndVisible]; | |
| oEditors.getById["content"].exec("MSG_EDITING_AREA_RESIZE_STARTED", []); | |
| oEditors.getById["content"].exec("RESIZE_EDITING_AREA_BY", [newidth, newheight]); | |
| oEditors.getById["content"].exec("MSG_EDITING_AREA_RESIZE_ENDED", []); |
| express.post('/api/create-post-head', auth.filter.login(), function (req, res, next) { | |
| prepareRoleAndForm(req, function (role, form) { | |
| checkCategoryWritable(res, role, form.categoryId, function (category) { | |
| checkFormThreadAndPost(res, form, function () { | |
| insertThread(form, function (err, thread) { | |
| if (err) return next(err); | |
| insertPost(req, form, thread, function (err, post) { | |
| if (err) return next(err); | |
| res.json(200, {threadId: thread._id, postId: post._id}); | |
| }); |
| require 'rubygems' | |
| require 'sinatra' | |
| #require "sinatra/reloader" if development? | |
| require "sinatra/reloader" | |
| require 'RMagick' | |
| require 'watir-webdriver' | |
| require 'base64' | |
| # 웹사이트 썸네일 만들기. 시나트라에서 테스트완료. | |
| #set :server, :thin |
| brew install rds-command-line-tools | |
| rds-create-db-parameter-group mysql-utf-param --db-parameter-group-family mysql5.5 --description "MySQL 5.5 configured for UTF-8" --region us-west-1 | |
| rds-modify-db-parameter-group mysql-utf-param \ | |
| --parameters="name=character_set_server, value=utf8, method=immediate" \ | |
| --parameters="name=character_set_client, value=utf8, method=immediate" \ | |
| --parameters="name=character_set_results,value=utf8,method=immediate" \ | |
| --parameters="name=collation_server, value=utf8_general_ci, method=immediate" \ |
여기는 몰라
| source 'https://rubygems.org' | |
| gem 'rails', '3.2.8' | |
| # Bundle edge Rails instead: | |
| # gem 'rails', :git => 'git://github.com/rails/rails.git' | |
| gem 'pg' | |
| gem 'devise' | |
| gem 'omniauth' |
| import com.sun.net.httpserver.*; | |
| HttpServer server = HttpServer.create(new InetSocketAddress(2222),0) | |
| server.createContext('/', { HttpExchange exchange -> | |
| exchange.sendResponseHeaders(200,0); | |
| exchange.responseBody.write("hello from groovy land.".bytes) | |
| exchange.responseBody.close(); | |
| i++; | |
| } as HttpHandler) | |
| server.start(); |
| @Grapes([ | |
| @Grab(group='postgresql', module='postgresql', version='8.4-701.jdbc4'), | |
| @GrabConfig(systemClassLoader = true) | |
| ]) | |
| import groovy.sql.Sql | |
| def sql = Sql.newInstance("jdbc:postgresql://localhost/ebsa_dev", "jinto", "", "org.postgresql.Driver") | |
| i = 0; |