ccslis
ccslis
create daily notices for all schools in /home/wcmckee/ccschol
Report back on all signins.
Live roll data.
Students and Staff Payroll on signinlca/usernames.
Create blog post on Nikola blog with student profile. Post profile contains student details and link to their profile blog.
Turn py file into ipynb. Seprate cells in py file with template code.
First creates blogs for every school. Creates post of each student on blog. Create blog of each student. Create blog post of every day they were enrolled at a school.
In [9]:
import os
import pandas
import arrow
walk folderr for all ipynb not in wcm.com posts folder.
Two lists 0 - .ipynb files not in wcm.com 1 - .ipynb files in wcm.com
In [10]:
arti = arrow.now()
In [11]:
arti
Out[11]:
In [23]:
opcomp = os.listdir('/home/wcmckee/github/')
In [ ]:
In [ ]:
In [24]:
opcomp
Out[24]:
In [21]:
alccs = os.listdir('/home/wcmckee/ccschol/')
In [15]:
pandas.TimeSeries(arti)
Out[15]:
In [22]:
for alc in alccs:
print(alc)
In [ ]:
In [ ]:
In [ ]:
In [19]:
pver = pandas.version
In [20]:
str(pver)
Out[20]:
In [32]:
str(arti.date())
Out[32]:
In [33]:
str(arti.time())
Out[33]:
In [37]:
for alc in alccs:
print(alc)
oprsf = open('/home/wcmckee/ccschol/' + alc + '/posts/test.rst', 'w')
oprsf.write('Hello ' + alc)
oprsf.close()
opmet = open('/home/wcmckee/ccschol/' + alc + '/posts/test.meta', 'w')
opmet.write(alc + '\n' + alc + '\n' + str(arti.date()) + ' ' + str(arti.time()))
opmet.close()
In [38]:
for alc in alccs:
print(alc)
os.chdir('/home/wcmckee/ccschol/' + alc)
os.system('nikola build')
In [ ]:
In [ ]:
In [ ]:
In [ ]:
Comments
Comments powered by Disqus