This file contains hidden or 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
# Place this file inside your ~/.idlerc/ folder | |
# or paste its contents inside | |
# /path/to/python/idlelib/config-highlight.def | |
# Adapted from SublimeText's Monokai | |
[monokai] | |
normal-foreground= #F8F8F2 | |
normal-background= #272822 | |
keyword-foreground= #F92672 | |
keyword-background= #272822 |
This file contains hidden or 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
""" | |
Experimental wrapper to use Chimera's Python directly from console. | |
You can `import chimera` with no errors! | |
Usage | |
===== | |
1. Alias your /path/to/chimera/bin/python binary to something more user-friendly, like `chimerapy`. | |
2. Download these two files and put them together | |
3. Run `chimerapy -i chimera_cli.py`. (Tip: Realias `chimerapy` to this command). |
This file contains hidden or 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
###################################################################### | |
### Center multi-unit protein in pbc box with VMD | |
### Make sure you are in first frame of MD | |
###################################################################### | |
# Join separate units for this first frame only | |
pbc join connected -now | |
pbc join residue -now | |
# Join the protein for all MD |
This file contains hidden or 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
# Autocompletions for conda commands | |
# Place this file in ~./config/fish/completions/ | |
# Original implementations, but slow | |
# function __fish_conda_commands | |
# command conda help | awk '/^ \S/ {print $1}' | |
# end | |
# function __fish_conda_envs | |
# command conda env list | awk 'NR > 2 {print $1}' | |
# end |
This file contains hidden or 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 python | |
# encoding: utf-8 | |
""" | |
Download your entire Fotolog to disk, comments included | |
@jaimergp, 2016 | |
Dependencies: requests, beautifulsoup4 | |
""" |
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 hidden or 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 python | |
import os | |
from shutil import copy | |
from pprint import pprint | |
path = os.path.expanduser("~/.chimera/preferences") | |
copy(path, path + ".bak") # just in case | |
with open(path) as f: | |
data = f.read() |
This file contains hidden or 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 python | |
# -*- coding: utf-8 -*- | |
from __future__ import print_function | |
import pychimera | |
import os | |
# os.environ['CHIMERADIR'] = '/path/to/headless/chimera' | |
pychimera.patch_environ() | |
pychimera.enable_chimera() |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer