Using Codeception Test with CodeIgniter
- PHP >= 5.3
- PHP CURL extension enabled
javascript: (function () { | |
function c() { | |
var e = document.createElement("link"); | |
e.setAttribute("type", "text/css"); | |
e.setAttribute("rel", "stylesheet"); | |
e.setAttribute("href", f); | |
e.setAttribute("class", l); | |
document.body.appendChild(e) | |
} | |
function h() { |
/* The API controller | |
Exports 3 methods: | |
* post - Creates a new thread | |
* list - Returns a list of threads | |
* show - Displays a thread and its posts | |
*/ | |
var Thread = require('../models/thread.js'); | |
var Post = require('../models/post.js'); |
var express = require('express') | |
, http = require('http') | |
, connect = require('connect') | |
, io = require('socket.io'); | |
var app = express(); | |
/* NOTE: We'll need to refer to the sessionStore container later. To | |
* accomplish this, we'll create our own and pass it to Express | |
* rather than letting it create its own. */ | |
var sessionStore = new connect.session.MemoryStore(); |
var requirejs = require('requirejs'); | |
requirejs.config({ | |
nodeRequire: require | |
}); | |
requirejs(['express', 'connect', 'connect-redis'], function(express, connect, ConnectRedis) { | |
var app = express.createServer(); | |
var RedisStore = new ConnectRedis(express); |
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Encode 'encode_utf8'; | |
my $s = ' ' . encode_utf8(pack 'U', 0x2605); | |
my $f = encode_utf8(pack 'U', 0xFF0F); | |
my $b = encode_utf8(pack 'U', 0xFF3C); | |
my $o = [ map { encode_utf8(pack 'U', $_) } ( | |
0x0069, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, |
/** | |
* Module dependencies. | |
*/ | |
var express = require('express') | |
, routes = require('./routes') | |
, http = require('http') | |
, mongoose = require('mongoose') | |
, path = require('path'); |
// Pikachu.js | |
// 테러범들에겐 백만볼트! | |
// 사용법__________________________ | |
// 사용법은 간단하다. "var pikachu = require("Pikachu.js");"로 초기화 한 후 http.createServer에다가 붙여주면 된다. | |
// req와 res는 알다시피 request와 response. :) | |
// 특정 사이트에서 공격이 들어온다거나 할 때 http referer를 바탕으로 검열(?!) 쯤 해준다고 보면 된다. | |
// 차단하기 쉽도록 유명한 사이트들은 미리 정규표현식을 만들어놨다. 필요할 때 요긴하게 쓸 수 있다. | |
exports.dcinside = '/(.+?)dcinside.com/'; |
$(function () { | |
"use strict"; | |
// for better performance - to avoid searching in DOM | |
var content = $('#content'); | |
var input = $('#input'); | |
var status = $('#status'); | |
// my color assigned by the server | |
var myColor = false; |
<html> | |
<head> | |
<title>jsonp test</title> | |
<script src="http://code.jquery.com/jquery-1.6.2.min.js"></script> | |
<script type="text/javascript"> | |
$(function(){ | |
$('#select_link').click(function(e){ | |
e.preventDefault(); | |
console.log('select_link clicked'); | |