Skip to content
This repository was archived by the owner on Dec 28, 2018. It is now read-only.

Commit 32152a2

Browse files
committed
added jobs
1 parent e6b1b8f commit 32152a2

23 files changed

+460
-34
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,5 @@ logs
111111
npm-debug.log*
112112

113113
#these are the credentials to log in. client_secret.json
114-
src/client_secret.json
114+
src/client_secret.json
115+
env.json

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,17 @@ To run this website, you will need to have installed `python 2.7` or higher, `vi
2525
$ npm run setup
2626
```
2727

28-
4. Run server
28+
5. Modify and update env.json with your sample data
29+
30+
6. Run server
2931
To start the webserver type the following:
3032
```bash
3133
$ npm start
3234
```
3335

3436
The website should run on [localhost:5000](http://localhost:5000)
3537

36-
5. Cleanup
38+
7. Cleanup
3739
Remember to deactivate your virtual environment when you are done
3840
```bash
3941
$ deactivate

deactivate/bin/activate

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# This file must be used with "source bin/activate" *from bash*
2+
# you cannot run it directly
3+
4+
deactivate () {
5+
unset -f pydoc >/dev/null 2>&1
6+
7+
# reset old environment variables
8+
# ! [ -z ${VAR+_} ] returns true if VAR is declared at all
9+
if ! [ -z "${_OLD_VIRTUAL_PATH+_}" ] ; then
10+
PATH="$_OLD_VIRTUAL_PATH"
11+
export PATH
12+
unset _OLD_VIRTUAL_PATH
13+
fi
14+
if ! [ -z "${_OLD_VIRTUAL_PYTHONHOME+_}" ] ; then
15+
PYTHONHOME="$_OLD_VIRTUAL_PYTHONHOME"
16+
export PYTHONHOME
17+
unset _OLD_VIRTUAL_PYTHONHOME
18+
fi
19+
20+
# This should detect bash and zsh, which have a hash command that must
21+
# be called to get it to forget past commands. Without forgetting
22+
# past commands the $PATH changes we made may not be respected
23+
if [ -n "${BASH-}" ] || [ -n "${ZSH_VERSION-}" ] ; then
24+
hash -r 2>/dev/null
25+
fi
26+
27+
if ! [ -z "${_OLD_VIRTUAL_PS1+_}" ] ; then
28+
PS1="$_OLD_VIRTUAL_PS1"
29+
export PS1
30+
unset _OLD_VIRTUAL_PS1
31+
fi
32+
33+
unset VIRTUAL_ENV
34+
if [ ! "${1-}" = "nondestructive" ] ; then
35+
# Self destruct!
36+
unset -f deactivate
37+
fi
38+
}
39+
40+
# unset irrelevant variables
41+
deactivate nondestructive
42+
43+
VIRTUAL_ENV="/Users/shub/Documents/Dev/work/hackmerced/website-2017t/deactivate"
44+
export VIRTUAL_ENV
45+
46+
_OLD_VIRTUAL_PATH="$PATH"
47+
PATH="$VIRTUAL_ENV/bin:$PATH"
48+
export PATH
49+
50+
# unset PYTHONHOME if set
51+
if ! [ -z "${PYTHONHOME+_}" ] ; then
52+
_OLD_VIRTUAL_PYTHONHOME="$PYTHONHOME"
53+
unset PYTHONHOME
54+
fi
55+
56+
if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT-}" ] ; then
57+
_OLD_VIRTUAL_PS1="$PS1"
58+
if [ "x" != x ] ; then
59+
PS1="$PS1"
60+
else
61+
PS1="(`basename \"$VIRTUAL_ENV\"`) $PS1"
62+
fi
63+
export PS1
64+
fi
65+
66+
# Make sure to unalias pydoc if it's already there
67+
alias pydoc 2>/dev/null >/dev/null && unalias pydoc
68+
69+
pydoc () {
70+
python -m pydoc "$@"
71+
}
72+
73+
# This should detect bash and zsh, which have a hash command that must
74+
# be called to get it to forget past commands. Without forgetting
75+
# past commands the $PATH changes we made may not be respected
76+
if [ -n "${BASH-}" ] || [ -n "${ZSH_VERSION-}" ] ; then
77+
hash -r 2>/dev/null
78+
fi

deactivate/bin/activate.csh

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This file must be used with "source bin/activate.csh" *from csh*.
2+
# You cannot run it directly.
3+
# Created by Davide Di Blasi <[email protected]>.
4+
5+
alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PATH" && unset _OLD_VIRTUAL_PATH; rehash; test $?_OLD_VIRTUAL_PROMPT != 0 && set prompt="$_OLD_VIRTUAL_PROMPT" && unset _OLD_VIRTUAL_PROMPT; unsetenv VIRTUAL_ENV; test "\!:*" != "nondestructive" && unalias deactivate && unalias pydoc'
6+
7+
# Unset irrelevant variables.
8+
deactivate nondestructive
9+
10+
setenv VIRTUAL_ENV "/Users/shub/Documents/Dev/work/hackmerced/website-2017t/deactivate"
11+
12+
set _OLD_VIRTUAL_PATH="$PATH"
13+
setenv PATH "$VIRTUAL_ENV/bin:$PATH"
14+
15+
16+
17+
if ("" != "") then
18+
set env_name = ""
19+
else
20+
set env_name = `basename "$VIRTUAL_ENV"`
21+
endif
22+
23+
# Could be in a non-interactive environment,
24+
# in which case, $prompt is undefined and we wouldn't
25+
# care about the prompt anyway.
26+
if ( $?prompt ) then
27+
set _OLD_VIRTUAL_PROMPT="$prompt"
28+
set prompt = "[$env_name] $prompt"
29+
endif
30+
31+
unset env_name
32+
33+
alias pydoc python -m pydoc
34+
35+
rehash
36+

deactivate/bin/activate.fish

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# This file must be used using `. bin/activate.fish` *within a running fish ( http://fishshell.com ) session*.
2+
# Do not run it directly.
3+
4+
function deactivate -d 'Exit virtualenv mode and return to the normal environment.'
5+
# reset old environment variables
6+
if test -n "$_OLD_VIRTUAL_PATH"
7+
set -gx PATH $_OLD_VIRTUAL_PATH
8+
set -e _OLD_VIRTUAL_PATH
9+
end
10+
11+
if test -n "$_OLD_VIRTUAL_PYTHONHOME"
12+
set -gx PYTHONHOME $_OLD_VIRTUAL_PYTHONHOME
13+
set -e _OLD_VIRTUAL_PYTHONHOME
14+
end
15+
16+
if test -n "$_OLD_FISH_PROMPT_OVERRIDE"
17+
# Set an empty local `$fish_function_path` to allow the removal of `fish_prompt` using `functions -e`.
18+
set -l fish_function_path
19+
20+
# Erase virtualenv's `fish_prompt` and restore the original.
21+
functions -e fish_prompt
22+
functions -c _old_fish_prompt fish_prompt
23+
functions -e _old_fish_prompt
24+
set -e _OLD_FISH_PROMPT_OVERRIDE
25+
end
26+
27+
set -e VIRTUAL_ENV
28+
29+
if test "$argv[1]" != 'nondestructive'
30+
# Self-destruct!
31+
functions -e pydoc
32+
functions -e deactivate
33+
end
34+
end
35+
36+
# Unset irrelevant variables.
37+
deactivate nondestructive
38+
39+
set -gx VIRTUAL_ENV "/Users/shub/Documents/Dev/work/hackmerced/website-2017t/deactivate"
40+
41+
set -gx _OLD_VIRTUAL_PATH $PATH
42+
set -gx PATH "$VIRTUAL_ENV/bin" $PATH
43+
44+
# Unset `$PYTHONHOME` if set.
45+
if set -q PYTHONHOME
46+
set -gx _OLD_VIRTUAL_PYTHONHOME $PYTHONHOME
47+
set -e PYTHONHOME
48+
end
49+
50+
function pydoc
51+
python -m pydoc $argv
52+
end
53+
54+
if test -z "$VIRTUAL_ENV_DISABLE_PROMPT"
55+
# Copy the current `fish_prompt` function as `_old_fish_prompt`.
56+
functions -c fish_prompt _old_fish_prompt
57+
58+
function fish_prompt
59+
# Save the current $status, for fish_prompts that display it.
60+
set -l old_status $status
61+
62+
# Prompt override provided?
63+
# If not, just prepend the environment name.
64+
if test -n ""
65+
printf '%s%s' "" (set_color normal)
66+
else
67+
printf '%s(%s) ' (set_color normal) (basename "$VIRTUAL_ENV")
68+
end
69+
70+
# Restore the original $status
71+
echo "exit $old_status" | source
72+
_old_fish_prompt
73+
end
74+
75+
set -gx _OLD_FISH_PROMPT_OVERRIDE "$VIRTUAL_ENV"
76+
end

deactivate/bin/activate_this.py

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
"""By using execfile(this_file, dict(__file__=this_file)) you will
2+
activate this virtualenv environment.
3+
4+
This can be used when you must use an existing Python interpreter, not
5+
the virtualenv bin/python
6+
"""
7+
8+
try:
9+
__file__
10+
except NameError:
11+
raise AssertionError(
12+
"You must run this like execfile('path/to/activate_this.py', dict(__file__='path/to/activate_this.py'))")
13+
import sys
14+
import os
15+
16+
old_os_path = os.environ.get('PATH', '')
17+
os.environ['PATH'] = os.path.dirname(os.path.abspath(__file__)) + os.pathsep + old_os_path
18+
base = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
19+
if sys.platform == 'win32':
20+
site_packages = os.path.join(base, 'Lib', 'site-packages')
21+
else:
22+
site_packages = os.path.join(base, 'lib', 'python%s' % sys.version[:3], 'site-packages')
23+
prev_sys_path = list(sys.path)
24+
import site
25+
site.addsitedir(site_packages)
26+
sys.real_prefix = sys.prefix
27+
sys.prefix = base
28+
# Move the added items to the front of the path:
29+
new_sys_path = []
30+
for item in list(sys.path):
31+
if item not in prev_sys_path:
32+
new_sys_path.append(item)
33+
sys.path.remove(item)
34+
sys.path[:0] = new_sys_path

deactivate/bin/easy_install

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/Users/shub/Documents/Dev/work/hackmerced/website-2017t/deactivate/bin/python2.7
2+
3+
# -*- coding: utf-8 -*-
4+
import re
5+
import sys
6+
7+
from setuptools.command.easy_install import main
8+
9+
if __name__ == '__main__':
10+
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
11+
sys.exit(main())

deactivate/bin/easy_install-2.7

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/Users/shub/Documents/Dev/work/hackmerced/website-2017t/deactivate/bin/python2.7
2+
3+
# -*- coding: utf-8 -*-
4+
import re
5+
import sys
6+
7+
from setuptools.command.easy_install import main
8+
9+
if __name__ == '__main__':
10+
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
11+
sys.exit(main())

deactivate/bin/pip

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/Users/shub/Documents/Dev/work/hackmerced/website-2017t/deactivate/bin/python2.7
2+
3+
# -*- coding: utf-8 -*-
4+
import re
5+
import sys
6+
7+
from pip import main
8+
9+
if __name__ == '__main__':
10+
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
11+
sys.exit(main())

deactivate/bin/pip2

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/Users/shub/Documents/Dev/work/hackmerced/website-2017t/deactivate/bin/python2.7
2+
3+
# -*- coding: utf-8 -*-
4+
import re
5+
import sys
6+
7+
from pip import main
8+
9+
if __name__ == '__main__':
10+
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
11+
sys.exit(main())

deactivate/bin/pip2.7

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/Users/shub/Documents/Dev/work/hackmerced/website-2017t/deactivate/bin/python2.7
2+
3+
# -*- coding: utf-8 -*-
4+
import re
5+
import sys
6+
7+
from pip import main
8+
9+
if __name__ == '__main__':
10+
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
11+
sys.exit(main())

deactivate/bin/python

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python2.7

deactivate/bin/python-config

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
#!/Users/shub/Documents/Dev/work/hackmerced/website-2017t/deactivate/bin/python
2+
3+
import sys
4+
import getopt
5+
import sysconfig
6+
7+
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
8+
'ldflags', 'help']
9+
10+
if sys.version_info >= (3, 2):
11+
valid_opts.insert(-1, 'extension-suffix')
12+
valid_opts.append('abiflags')
13+
if sys.version_info >= (3, 3):
14+
valid_opts.append('configdir')
15+
16+
17+
def exit_with_usage(code=1):
18+
sys.stderr.write("Usage: {0} [{1}]\n".format(
19+
sys.argv[0], '|'.join('--'+opt for opt in valid_opts)))
20+
sys.exit(code)
21+
22+
try:
23+
opts, args = getopt.getopt(sys.argv[1:], '', valid_opts)
24+
except getopt.error:
25+
exit_with_usage()
26+
27+
if not opts:
28+
exit_with_usage()
29+
30+
pyver = sysconfig.get_config_var('VERSION')
31+
getvar = sysconfig.get_config_var
32+
33+
opt_flags = [flag for (flag, val) in opts]
34+
35+
if '--help' in opt_flags:
36+
exit_with_usage(code=0)
37+
38+
for opt in opt_flags:
39+
if opt == '--prefix':
40+
print(sysconfig.get_config_var('prefix'))
41+
42+
elif opt == '--exec-prefix':
43+
print(sysconfig.get_config_var('exec_prefix'))
44+
45+
elif opt in ('--includes', '--cflags'):
46+
flags = ['-I' + sysconfig.get_path('include'),
47+
'-I' + sysconfig.get_path('platinclude')]
48+
if opt == '--cflags':
49+
flags.extend(getvar('CFLAGS').split())
50+
print(' '.join(flags))
51+
52+
elif opt in ('--libs', '--ldflags'):
53+
abiflags = getattr(sys, 'abiflags', '')
54+
libs = ['-lpython' + pyver + abiflags]
55+
libs += getvar('LIBS').split()
56+
libs += getvar('SYSLIBS').split()
57+
# add the prefix/lib/pythonX.Y/config dir, but only if there is no
58+
# shared library in prefix/lib/.
59+
if opt == '--ldflags':
60+
if not getvar('Py_ENABLE_SHARED'):
61+
libs.insert(0, '-L' + getvar('LIBPL'))
62+
if not getvar('PYTHONFRAMEWORK'):
63+
libs.extend(getvar('LINKFORSHARED').split())
64+
print(' '.join(libs))
65+
66+
elif opt == '--extension-suffix':
67+
ext_suffix = sysconfig.get_config_var('EXT_SUFFIX')
68+
if ext_suffix is None:
69+
ext_suffix = sysconfig.get_config_var('SO')
70+
print(ext_suffix)
71+
72+
elif opt == '--abiflags':
73+
if not getattr(sys, 'abiflags', None):
74+
exit_with_usage()
75+
print(sys.abiflags)
76+
77+
elif opt == '--configdir':
78+
print(sysconfig.get_config_var('LIBPL'))

0 commit comments

Comments
 (0)