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
### ------- Module dependencies. ------ ### | |
# Webアプリの立ち上げに必要なモジュール | |
express = require 'express' | |
cluster = require 'cluster' | |
app = express() | |
### ------- Class. -------------------- ### | |
class AppConfig | |
setViewEngine : (app, express) -> | |
app.engine(@template_name, @template) |
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
### ------- Module dependencies. --------- ### | |
# webアプリの起動に必要なモジュール | |
express = require 'express' | |
cluster = require 'cluster' | |
sessionstore = require('session-mongoose')(express) | |
app = express() | |
### ------- Class ------------------------ ### | |
class AppConfig | |
setViewEngine : (app, express) -> |
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
#include <stdio.h> | |
int main(void) | |
{ | |
printf("Hello World\n"); | |
return (0); | |
} |
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
exports.SocketServerClass = class SocketServerClass | |
_sioListenPort = 8080 | |
constructor : (@app, @node_modules, @appOption) -> | |
@sio = @node_modules.sio | |
@http = @node_modules.http | |
@appServer = @http.createServer(@app) | |
setup : () -> | |
# socketioの起動 |
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
exports.SocketServerClass = class SocketServerClass | |
_sioListenPort = 8080 | |
constructor : (@app, @node_modules, @appOption) -> | |
@sio = @node_modules.sio | |
@http = @node_modules.http | |
@appServer = @http.createServer(@app) | |
# session -------------------- | |
@mongoose = require 'mongoose' |
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
#include <stdio.h> | |
#include <string.h> | |
#define NUM_LEN (100) | |
int main(void) | |
{ | |
int i; | |
int count; | |
char num[NUM_LEN]; |
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
module.exports = (SessionConfig, app, express) -> | |
sio = require "socket.io" | |
# Session Class | |
Session = express.session.Session | |
# sessionStore | |
# new RedisStore() | |
sessionStore = SessionConfig.getSessionStore().store |
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
// | |
// ScrollViewController.swift | |
// ScrollView | |
// | |
// Created by PxP_ss on 2014/10/08. | |
// Copyright (c) 2014年 pxp_ss. All rights reserved. | |
// | |
import UIKit |
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
func setupAssetMovieContents() { | |
let file = NSURL(string: "assets-library:// ~ hogehuga ~ ") | |
let assetLibrary = ALAssetsLibrary() | |
assetLibrary.assetForURL( | |
file | |
, resultBlock: { | |
(asset: ALAsset!) in | |
if asset != nil { | |
let rep: ALAssetRepresentation = asset.defaultRepresentation() | |
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
// | |
// ThemeColorPicker.swift | |
// | |
// Created by PxP_ss on 2014/11/05. | |
// Copyright (c) 2014年 pxp_ss. All rights reserved. | |
// | |
import UIKit | |
protocol ThemeColorPickerDelegate { |
OlderNewer