ㄱ, ㄴ 두 개의 스택을 사용하여 테이프를 구현한다.
<-- v -->
import sys; reload(sys); sys.setdefaultencoding('utf-8') | |
import sqlite3 | |
import urllib2 | |
import urllib | |
import simplejson | |
login = 'your github id' | |
token = 'your github api key' | |
repo = 'username/reponame' |
<?php | |
require_once 'Ponytail/Model.php'; | |
require_once 'Ponytail/Shortcuts.php'; | |
$urls = array( | |
'^$' => 'index.php#index', | |
'^(?P<id>[0-9]+)$' => 'article_detail', | |
); | |
$config = array(); |
# encoding: utf-8 | |
""" | |
TODO | |
---- | |
* boolean, 조건문 | |
* typing | |
* 음수, 소수, 분수 | |
* 단어 정의할 때 덮어쓰기? | |
""" |
/* array.c -- Operations on arrays | |
*/ | |
#include <stdio.h> | |
int main(void) { | |
int a[2] = {1,2}; /* The aggregates like {1,2} are literals for arrays */ | |
int b[2] = {2,3}; | |
int i; |
import gevent.monkey; gevent.monkey.patch_all() | |
import os | |
import time | |
import datetime | |
import socket | |
import logging | |
import gevent | |
import redis |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define SPACE_WIDTH 100 | |
#define SPACE_HEIGHT 100 | |
#define STACK_CAPACITY 100 | |
int space[SPACE_HEIGHT][SPACE_WIDTH]; | |
int width, height; |
// BEGIN PATCH | |
dump = console.dir; | |
msg_coordinate = "Coord: "; | |
msg_character = "Char: "; | |
msg_input_number = "Type a number. Type !!! to pause the execution."; | |
msg_input_character = "Type a character or more. Type !!! to pause the execution."; | |
// END PATCH | |
//상수, constants | |
cheossori = new Array("ㄱ", "ㄲ", "ㄴ", "ㄷ", "ㄸ", "ㄹ", "ㅁ", "ㅂ", "ㅃ", "ㅅ", "ㅆ", "ㅇ", "ㅈ", "ㅉ", "ㅊ", "ㅋ", "ㅌ", "ㅍ", "ㅎ"); |
def report(request): | |
today = datetime.datetime.now() | |
executor = Executor.objects.all() | |
queryset = Budget.objects.filter(year=today.year) | |
aggregates = {} | |
for i in xrange(1, 25+1): | |
aggregates['out%d' % i] = models.Sum('out%d' % i) | |
budget = queryset.aggregate(**aggregates) |