├── LICENSE.md ├── README.md ├── environment.yml ├── images ├── reward_neurosynth_cluster_labels_PCA=100_k=2.nii.gz └── social_neurosynth_cluster_labels_PCA=100_k=2.nii.gz └── python-tips-and-tricks.ipynb /LICENSE.md: -------------------------------------------------------------------------------- 1 | --- 2 | layout: page 3 | title: "Licenses" 4 | permalink: /license/ 5 | --- 6 | 7 | ## Instructional Material 8 | 9 | All Neurohackweek instructional material is made available under the [Creative Commons Attribution license][cc-by-human]. The following is a human-readable 10 | summary of (and not a substitute for) the [full legal text of the CC BY 4.0 license][cc-by-legal]. 11 | 12 | You are free: 13 | 14 | * to **Share**---copy and redistribute the material in any medium or format 15 | * to **Adapt**---remix, transform, and build upon the material 16 | 17 | for any purpose, even commercially. 18 | 19 | The licensor cannot revoke these freedoms as long as you follow the 20 | license terms. 21 | 22 | Under the following terms: 23 | 24 | * **Attribution**---You must give appropriate credit (mentioning that 25 | your work is derived from work that is Copyright © Neurohackweek and, where 26 | practical, linking to http://neurohackweek.github.io/), provide a [link to the 27 | license][cc-by-human], and indicate if changes were made. You may do 28 | so in any reasonable manner, but not in any way that suggests the 29 | licensor endorses you or your use. 30 | 31 | **No additional restrictions**---You may not apply legal terms or 32 | technological measures that legally restrict others from doing 33 | anything the license permits. With the understanding that: 34 | 35 | Notices: 36 | 37 | * You do not have to comply with the license for elements of the 38 | material in the public domain or where your use is permitted by an 39 | applicable exception or limitation. 40 | * No warranties are given. The license may not give you all of the 41 | permissions necessary for your intended use. For example, other 42 | rights such as publicity, privacy, or moral rights may limit how you 43 | use the material. 44 | 45 | ## Software 46 | 47 | Except where otherwise noted, the example programs and other software 48 | provided by Neurohackweek are made available under the 49 | [OSI][osi]-approved 50 | [MIT license][mit-license]. 51 | 52 | Permission is hereby granted, free of charge, to any person obtaining 53 | a copy of this software and associated documentation files (the 54 | "Software"), to deal in the Software without restriction, including 55 | without limitation the rights to use, copy, modify, merge, publish, 56 | distribute, sublicense, and/or sell copies of the Software, and to 57 | permit persons to whom the Software is furnished to do so, subject to 58 | the following conditions: 59 | 60 | The above copyright notice and this permission notice shall be 61 | included in all copies or substantial portions of the Software. 62 | 63 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 64 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 65 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 66 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 67 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 68 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 69 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 70 | 71 | 72 | ## Templates 73 | 74 | The templates used to create these lessons were created by [Software 75 | Carpentry](http://software-carpentry.org/). See AUTHORS for a list of contributors to the template. In accordance with the terms of the 76 | original license, the changes made are documented in the version control history 77 | of this repository, and other repositories in [the neurohackweek github website][nhw-github]. 78 | 79 | [cc-by-human]: https://creativecommons.org/licenses/by/4.0/ 80 | [cc-by-legal]: https://creativecommons.org/licenses/by/4.0/legalcode 81 | [mit-license]: http://opensource.org/licenses/mit-license.html 82 | [osi]: http://opensource.org 83 | [nhw-github]: http://github.com/neurohackweek -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Python tips and tricks 2 | 3 | [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/neurohackweek/python-tips-and-tricks/master) 4 | 5 | > A selected list of tips and tricks for improving your Python code 6 | 7 | Presented by [Tal Yarkoni](http://github.com/tyarkoni) at The University of Washington eScience Institute's [Neurohackweek 2016](https://neurohackweek.github.io/nhw2016/) course. 8 | 9 | All content can be found in [this Jupyter notebook](python-tips-and-tricks.ipynb). You can either view the rendered notebook online, or clone/download the notebook to your local machine and run it interactively with Jupyter. 10 | 11 | Alternatively, checkout the [Binder](https://mybinder.org/v2/gh/neurohackweek/python-tips-and-tricks/master) for this notebook and run the examples in your browser :smiley_cat: 12 | -------------------------------------------------------------------------------- /environment.yml: -------------------------------------------------------------------------------- 1 | name: rise-environment 2 | channels: 3 | - damianavila82 4 | - conda-forge 5 | dependencies: 6 | - python 7 | - numpy 8 | - matplotlib 9 | - rise 10 | - scipy 11 | - pip: 12 | - nibabel 13 | - nilearn 14 | - sklearn 15 | 16 | -------------------------------------------------------------------------------- /images/reward_neurosynth_cluster_labels_PCA=100_k=2.nii.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/neurohackweek/python-tips-and-tricks/4022f405612533ca23790818cbcc013b92572a19/images/reward_neurosynth_cluster_labels_PCA=100_k=2.nii.gz -------------------------------------------------------------------------------- /images/social_neurosynth_cluster_labels_PCA=100_k=2.nii.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/neurohackweek/python-tips-and-tricks/4022f405612533ca23790818cbcc013b92572a19/images/social_neurosynth_cluster_labels_PCA=100_k=2.nii.gz --------------------------------------------------------------------------------