import this
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## General stuff | |
## Uncomment if pip cache takes up too much space | |
# alias pip="python -m pip --no-cache-dir" | |
## or even better simply symlink ~/.cache/pip | |
alias spyder='env python /usr/bin/spyder' | |
alias spyder3='env python3 /usr/bin/spyder3' | |
alias jupyter-clean-checkpoints='find -name ".ipynb_checkpoints" -type d | xargs rm -rf' | |
alias ipcluster-mpi='ipcluster start -n 2 --engines=MPIEngineSetLauncher' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
""" | |
Ref | |
--- | |
* https://pygithub.readthedocs.io/en/latest/introduction.html#very-short-tutorial | |
If you are using an access token to circumvent 2FA, make sure you have | |
enabled "repo" scope | |
Troubleshooting |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lookup = {3: "Fizz", 5: "Buzz"} | |
def is_multiple(n, m): | |
return n % m == 0 | |
def fizzbuzz(n): | |
output = "" | |
for m, string in lookup.items(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
escape_char / | |
comment_char % | |
% This file was generated by taking the LC_TIME section from en_US and | |
% replacing date/time representation with that of sv_SE from the glibc | |
% locale sources | |
% (http://sourceware.org/git/?p=glibc.git;a=tree;f=localedata/locales;hb=HEAD) | |
% (https://www.gnu.org/software/libc/manual/html_node/Formatting-Calendar-Time.html) | |
% This file is part of the GNU C Library and contains locale data. |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
conda env export > environment.yml | |
# exclude pure python packages | |
grep -v .*=py..$ environment.yml > conda_environment.yml | |
# extract pure python packages under - pip: | |
grep .*=py..$ environment.yml | awk -F= '{print " "$1"=="$2}' >> conda_environment.yml |
- @ashwinvis
- https://reddit.com/user/salamipull
- @quantum5
- @Vusys
- @jaszhix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env xonsh | |
# Requires: xonsh, awk | |
# git clone https://github.com/carpentries/glosario | |
# cd glossario | |
# xonsh already_included_in_glossario.xsh | |
slugs = [ | |
name.strip() |