Skip to content

Commit

Permalink
add .gitignore, add requirements.txt, rename files, update extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
isac322 committed Feb 15, 2018
1 parent 2353522 commit 775955c
Show file tree
Hide file tree
Showing 6 changed files with 365 additions and 123 deletions.
205 changes: 205 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,205 @@

### Python template
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/

# Translations
*.mo
*.pot

# Django stuff:
*.log
.static_storage/
.media/
local_settings.py

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
### JetBrains template
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff:
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/dictionaries

# Sensitive or high-churn files:
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.xml
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml

# Gradle:
.idea/**/gradle.xml
.idea/**/libraries

# CMake
cmake-build-debug/
cmake-build-release/

# Mongo Explorer plugin:
.idea/**/mongoSettings.xml

## File-based project format:
*.iws

## Plugin-specific files:

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties
### Linux template
*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*
### Windows template
# Windows thumbnail cache files
Thumbs.db
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

# Windows shortcuts
*.lnk
### VirtualEnv template
# Virtualenv
# http://iamzed.com/2009/05/07/a-primer-on-virtualenv/
[Bb]in
[Ii]nclude
[Ll]ib
[Ll]ib64
[Ll]ocal
[Ss]cripts
pyvenv.cfg
pip-selfcheck.json
131 changes: 131 additions & 0 deletions extensions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
# coding: UTF-8

extension_id = {
"C++14": 88,
"C": 0,
"C++": 1,
"C++11": 49,
"C++17": 84,
"Java": 3,
"C11": 75,
"Python 2": 6,
"Python 3": 28,
"PyPy": 32,
"PyPy3": 73,
"Ruby 2.5": 68,
"Kotlin": 69,
"Swift": 74,
"C# 6.0": 62,
"Text": 58,
"node.js": 17,
"Go": 12,
"F#": 37,
"PHP": 7,
"Pascal": 2,
"Lua": 16,
"Perl": 8,
"R": 72,
"C (Clang)": 59,
"C++ (Clang)": 60,
"C++11 (Clang)": 66,
"C++14 (Clang)": 67,
"C11 (Clang)": 77,
"C++17 (Clang)": 85,
"Golfscript": 79,
"Fortran": 13,
"Scheme": 14,
"Ada": 19,
"awk": 21,
"OCaml": 22,
"Brainfuck": 23,
"Whitespace": 24,
"Tcl": 26,
"Assembly (32bit)": 27,
"D": 29,
"Clojure": 33,
"Rhino": 34,
"Cobol": 35,
"SpiderMonkey": 38,
"Pike": 41,
"sed": 43,
"Rust": 44,
"Boo": 46,
"Intercal": 47,
"bc": 48,
"Nemerle": 53,
"Cobra": 54,
"Nimrod": 55,
"VB.NET 4.0": 63,
"Algol 68": 70,
"Befunge": 71,
"FreeBASIC": 78,
"Gosu": 80,
"Haxe": 81,
"LOLCODE": 82,
"아희": 83
}

extension_name = {
"C++14": 'cpp14.cpp',
"C": 'c',
"C++": 'cpp',
"C++11": 'cpp11.cpp',
"C++17": 'cpp17.cpp',
"Java": 'java',
"C11": 'c11.c',
"Python 2": 'py2.py',
"Python 3": 'py3.py',
"PyPy": 'pypy.py',
"PyPy3": 'pypy3.py',
"Ruby 2.5": 'rb',
"Kotlin": 'kt',
"Swift": 'swift',
"C# 6.0": 'cs',
"Text": 'txt',
"node.js": 'js',
"Go": 'go',
"F#": 'fs',
"PHP": 'php',
"Pascal": 'pas',
"Lua": 'lua',
"Perl": 'pl',
"R": 'R',
"C (Clang)": 'clang.c',
"C++ (Clang)": 'clang.cpp',
"C++11 (Clang)": 'clang_pp11.cpp',
"C++14 (Clang)": 'clang_pp14.cpp',
"C11 (Clang)": 'clang11.c',
"C++17 (Clang)": 'clang_pp17.cpp',
"Golfscript": 'gs',
"Fortran": 'f95',
"Scheme": 'scm',
"Ada": 'ada',
"awk": 'awk',
"OCaml": 'ml',
"Brainfuck": 'bf',
"Whitespace": 'ws',
"Tcl": 'tcl',
"Assembly (32bit)": 'asm',
"D": 'd',
"Clojure": 'clj',
"Rhino": 'rhino.js',
"Cobol": 'cob',
"SpiderMonkey": 'spider.js',
"Pike": 'pike',
"sed": 'sed',
"Rust": 'rs',
"Boo": 'boo',
"Intercal": 'i',
"bc": 'bc',
"Nemerle": 'n',
"Cobra": 'cobra',
"Nimrod": 'nim',
"VB.NET 4.0": 'vb',
"Algol 68": 'a68',
"Befunge": 'befunge.bf',
"FreeBASIC": 'bas',
"Gosu": 'gsp',
"Haxe": 'haxe.py',
"LOLCODE": 'lol',
"아희": 'aheui',
}
Loading

2 comments on commit 775955c

@MilkClouds
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오류가 떠서 한시간 디버깅해보고 끝내고 보니
main.py에서
def analyze_problem(problem_num):
url = 'https://www.acmicpc.net/status/?'
여기에서 url을 'https://www.acmicpc.net/status?'로 고쳐주니 오류가 없네요.
허탈하기도 하고.. 다른분들 보시게 수정 반영해주세요!!

@isac322
Copy link
Owner Author

@isac322 isac322 commented on 775955c Jan 3, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MilkClouds 감사합니다. 저도 안쓴지 오래돼서 몰랐네요ㅠ

Please sign in to comment.