income-share agreements (ISAs)
A new way to get people into coding
income-share agreements (ISAs)
@software carpentry @scsu #python getting ready w @Gaurav Vaidya and @John Liu
#Python Programming from @Software Carpentry at St. Cloud State University
Jupyter is IDE https://en.wikipedia.org/wiki/Integrated_development_environment
JSON file format where Jupiter data is stored. HMTL and Markdown (simplified HTML).
React OS (JS) https://en.wikipedia.org/wiki/ReactOS
#git and #github
Posted by InforMedia Services on Sunday, June 3, 2018
more on Software Carpentry workshops on this iMS blog
Neal Goldstein, Dave Wilson
Object-oriented programming was originally developed to make code more maintainable, reusable, extensible, and understandable by encapsulating all the functionality behind well-defined interfaces.
It is maintained by Facebook, Instagram and a community of individual developers and corporations.
more on Java script in this IMS blog
Who contributed to the code that we use every day?
by Jimmy Daly APril 19, 2013
more on coding in this IMS bog
Minnesota State University Moorhead – Software Carpentry Workshop
Reservation code: 680510823 Reservation for: Plamen Miltenoff
Hagen Hall – 600 11th St S – Room 207 – Moorhead
Jeff – certified Bash Python, John
what is shall and what does it do. language close to computers, fast.
what is “bash” . cd, ls
shell job is a translator between the binory code, the middle name. several types of shells, with slight differences. one natively installed on MAC and Unix. born-again shell
bash commands: cd change director, ls – list; ls -F if it does not work: man ls (manual for LS); colon lower left corner tells you can scrool; q for escape; ls -ltr
arguments is colloquially used with different names. options, flags, parameters
cd .. – move up one directory . pwd : see the content cd data_shell/ – go down one directory
cd ~ – brings me al the way up . $HOME (universally defined variable
the default behavior of cd is to bring to home directory.
the core shall commands accept the same shell commands (letters)
$ du -h . gives me the size of the files. ctrl C to stop
$ clear . – clear the entire screen, scroll up to go back to previous command
man history $ history $! pwd (to go to pwd . $ history | grep history (piping)
$ cat (and the file name) – standard output
$ cat ../
how to edit and delete files
to create new folder: $ mkdir . – make directory
text editors – nano, vim (UNIX text editors) . $ nano draft.txt . ctrl O (save) ctr X (exit) .
$ vim . shift esc (key) and in command line – wq (write quit) or just “q”
$ mv draft.txt ../data . (move files)
to remove $ rm thesis/: $ man rm
copy files $cp $ touch . (touches the file, creates if new)
remove $ rm . anything PSEUDO is dangerous Bash profile: cp -i
*- wild card, truncate $ ls analyzed (list of the analyized directory)
stackoverflow web site .
head command . $head basilisk.day (check only the first several lines of a large file
$ for filename in basilisk.dat unicorn.dat . (making a loop = multiline)
> do (expecting an action) do
> head -n 3 $filename . (3 is for the first three line of the file to be displayed and -n is for the number)
for doing repetitive functions
$ for filename in *.dat ; do head -n 3$x; done
$ for filename in *.dat ; do echo $filename do head -n 3$x; done
$ echo $filename (print statement)
how to loop
$ for filename in *.dat ; do echo $filename ; echo head -n 3 $filename ; done
ctrl c or apple comd dot to get out of the loop
$ for filename in *.dat
> head -n 10 (first ten files ) $filename | tail -n 20 (last twenty lines)
$ for filename in *.dat
>> echo $filename
$ for filename in *.dat
>> cp $filename orig_$filename
history > something else
$ head something.else
another function: word count
$ wc *.pdb (protein databank)
$ head cubane.pdb
if i don;t know how to read the outpun $ man wc
the difference between “*” and “?”
$ wc -l *.pdb
wc -l *.pdb > lenghts.txs
$ cat lenghts.txt
$ for fil in *.txt
>>> wc -l $fil
by putting a $ sign use that not the actual text.
$ nano middle.sh . The entire point of shell is to automate
$ bash (exectubale) to run the program middle.sh
rwx – rwx – rwx . (owner – group -anybody)
$ file middle.sh
$ echo $PATH | tr “:” “\n”
$ export PATH=$PWD:$PATH
(this is to make sure that the last version of Python is running)
$ ls ~ . (hidden files)
$ ls -a ~
$ touch .bach_profile .bashrc
$history | grep PATH
19 echo $PATH
44 echo #PATH | tr “:” “\n”
45 echo $PATH | tr “:” “\n”
46 export PATH=$PWD:$PATH
47 echo #PATH | tr “:” “\n”
48 echo #PATH | tr “:” “\n”
55 history | grep PATH
wc -l “$@” | sort -n ($@ – encompasses eerything. will process every single file in the list of files
$ chmod (make it executable)
$ find . -type d . (find only directories, recursively, )
$ find . -type f (files, instead of directories)
$ find . -name ‘*.txt’ . (find files by name, don’t forget single quotes)
$ wc -l $(find . -name ‘*.txt’) – when searching among direcories on different level
$ find . -name ‘*.txt’ | xargs wc -l – same as above ; two ways to do one and the same
C and C++. scripting purposes in microbiology (instructor). libraries, packages alongside Python, which can extend its functionality. numpy and scipy (numeric and science python). Python for academic libraries?
going out of python $ quit () . python expect beginning and end parenthesis
new terminal needed after installation. anaconda 5.0.1
python 3 is complete redesign, not only an update.
jupyter crashes in safari. open in chrome. spg engine maybe
to start python in the terminal $ python
>> variable = 3
>> variable +10
several data types.
stored in JSON format.
command vs edit code. code cell is the gray box. a text cell is plain text
markdown syntax. format working with git and github . search explanation in https://swcarpentry.github.io/python-novice-gapminder/01-run-quit/
hackMD https://hackmd.io/ (use your GIthub account)
PANDOC – translates different data formats. https://pandoc.org/
print is a function
in what cases i will run my data trough Python instead of SPSS?
python is a 0 based language. starts counting with 0 – Java, C, P
atom_name = ‘helium ‘
print(atom_name) string slicing and indexing is tricky
muillyreb muihtil muileh
data = pandas.read_csv(‘/Users/plamen_local/Desktop/data/gapminder_gdp_oceania.csv’ , index_col=’country’)
GD plot 2 is the most well known library.
xelatex is a PDF engine. reST restructured text like Markdown. google what is the best PDF engine with Jupyter
four loops . any computer language will have the concept of “for” loop. In Python: 1. whenever we create a “for” loop, that line must end with a single colon
2. indentation. any “if” statement in the “for” loop, gets indented
Coding, more than anything, is extremely valuable.How to get started: http://empirically.co/is-learning-how-to-code-worth-it-these-celebrities-say-so/Thank you Code.org, for this amazing video!
Posted by Empirically on Thursday, May 18, 2017
more about coding in this IMS blog
p. 20 Coding as a Literacy
What Web Literacy Skills are Missing from Learning Standards? Are current learning standards addressing the essential web literacy skills everyone should know?https://medium.com/read-write-participate/what-essential-web-skills-are-missing-from-current-learning-standards-66e1b6e99c72
The American Library Association (ALA) defines digital literacy as “the ability to use information and communication technologies to find, evaluate, create, and communicate or share information, requiring both cognitive and technical skills.” While the ALA’s definition does align to some of the skills in “Participate”, it does not specifically mention the skills related to the “Open Practice.”
The library community’s digital and information literacy standards do not specifically include the coding, revision and remixing of digital content as skills required for creating digital information. Most digital content created for the web is “dynamic,” rather than fixed, and coding and remixing skills are needed to create new content and refresh or repurpose existing content. Leaving out these critical skills ignores the fact that library professionals need to be able to build and contribute online content to the ever-changing Internet.
p. 30 Rethinking the Roles of Teachers
more on NMC Horizon Reports in this IMS blog
Kids in Sweden are learning to code in math class
more on coding in this IMS blog:
Business Date of Publication: 02.08.17.
In Kentucky, mining veteran Rusty Justice decided that code could replace coal. He cofounded Bit Source, a code shop that builds its workforce by retraining coal miners as programmers. Enthusiasm is sky high: Justice got 950 applications for his first 11 positions. Miners, it turns out, are accustomed to deep focus, team play, and working with complex engineering tech. “Coal miners are really technology workers who get dirty,” Justice says.
more on coding in this IMS blog
1 2 3 Next