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
| def report(request): | |
| today = datetime.datetime.now() | |
| executor = Executor.objects.all() | |
| budgets = {'management_budgets': ['out1', 'out2', 'out3', 'out4'], | |
| 'education_budgets': ['out5', 'out6', 'out7'], | |
| 'feed_budgets': ['out8', 'out9', 'out10', 'out11', 'out12', 'out13'], | |
| 'reward_budgets': ['out14', 'out15', 'out16'], | |
| 'mission_budgets': ['out17', 'out18', 'out19', 'out20', 'out21'], | |
| 'operation_budgets': ['out22', 'out23', 'out24', 'out25']} |
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
| <?xml version="1.0" encoding="UTF-8" ?> | |
| <Module> | |
| <ModulePrefs title="Derquinse Gist.GitHub Gadget"> | |
| <Require feature="dynamic-height" /> | |
| </ModulePrefs> | |
| <UserPref name="gistId" display_name="Gist ID#" required="true" /> | |
| <Content type="html"> | |
| <![CDATA[ | |
| <style type="text/css"> |
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
| # prefix key | |
| unbind-key C-b | |
| set -g prefix 'C-M-v' | |
| bind-key 'C-M-v' send-prefix | |
| set-option -g default-terminal "screen-256color" | |
| # To use mouse | |
| set -g mouse on |
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
| Internal Server Error: /admin/ogq_image/author/add/ | |
| Traceback (most recent call last): | |
| File "/var/virtualenv/backgrounds/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response | |
| response = wrapped_callback(request, *callback_args, **callback_kwargs) | |
| File "/var/virtualenv/backgrounds/local/lib/python2.7/site-packages/django/contrib/admin/options.py", line 616, in wrapper | |
| return self.admin_site.admin_view(view)(*args, **kwargs) | |
| File "/var/virtualenv/backgrounds/local/lib/python2.7/site-packages/django/utils/decorators.py", line 110, in _wrapped_view | |
| response = view_func(request, *args, **kwargs) | |
| File "/var/virtualenv/backgrounds/local/lib/python2.7/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func | |
| response = view_func(request, *args, **kwargs) |
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
| SRCS = password_reset_token-template.html | |
| OBJS = $(SRCS:-template.html=.html) | |
| all: $(OBJS) | |
| $(OBJS): | |
| ruby inliner.rb $(@:.html=-template.html) $@ | |
| clean: | |
| rm -rf $(OBJS) |
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
| # -*- coding: utf-8 -*- | |
| from __future__ import (absolute_import, division, print_function, unicode_literals) | |
| import random | |
| import datetime as dt | |
| def insert_table_to_least_bucket(table, buckets): | |
| '''가작 적게 담긴 bucket을 찾아 테이블을 담는다.''' | |
| if len(buckets) == 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
| import json | |
| import math | |
| from urllib.request import urlopen | |
| from urllib.parse import urlencode | |
| from datetime import datetime | |
| from datetime import timedelta | |
| class BoxOffice(object): | |
| base_url = 'http://www.kobis.or.kr/kobisopenapi/webservice/rest/boxoffice/'\ | |
| 'searchDailyBoxOfficeList.json' |
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
| import json | |
| import math | |
| from datetime import datetime | |
| from urllib.request import urlopen | |
| from urllib.parse import urlencode | |
| class LotteCinema(object): | |
| # base_url = 'http://www.lottecinema.co.kr' | |
| base_url = 'http://moviefriend.cafe24.com' |
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
| mkdir moviefriend | |
| cd moviefriend | |
| bothub init |
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
| from bothub_client.messages import Message | |
| from .movies import BoxOffice | |
| class Bot(BaseBot): | |
| def handle_message(self, event, context): | |
| message = event.get('content') | |
| if message == '영화순위': | |
| self.send_box_office(event) |
OlderNewer