- @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
#!/bin/bash | |
cd ~ | |
pip freeze --user --exclude-editable > REQUIREMENTS.txt | |
cd $WORKON_HOME # or wherever you store your virtualenvs | |
for activate in ./*/bin/activate | |
do | |
source $activate | |
echo $VIRTUAL_ENV |
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
# Copyright 2022 Ashwin V. Mohanan | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. | |
{ pkgs ? import <nixpkgs> {} }: |
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() |
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 |
Loading
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
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. |
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 | |
# Set up CPAN | |
# Append the following lines to .bashrc / .profile | |
# PERL_DIR=$HOME/.perl | |
# export PERL_LOCAL_LIB_ROOT=$PERL_DIR:${PERL_LOCAL_LIB_ROOT} | |
# export PATH=$PERL_DIR/bin:$PATH | |
# export PERL5LIB=$PERL_DIR/lib/perl5 | |
# PERL_MB_OPT="--install_base \"${PERL_DIR}\""; export PERL_MB_OPT; | |
# PERL_MM_OPT="INSTALL_BASE=${PERL_DIR}"; export PERL_MM_OPT; |
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(): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder