Skip to content

Instantly share code, notes, and snippets.

@jaimergp
jaimergp / Task reports with Trello.ipynb
Created March 20, 2017 18:05
Get productivity reports from a custom Trello board
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jaimergp
jaimergp / ChimeraExtension.py
Created November 4, 2017 12:29
Blank extension for UCSF Chimera
#!/usr/bin/env python
# encoding: utf-8
# get used to importing this in your Py27 projects!
from __future__ import print_function, division
import chimera.extension
"""
This is the file that Chimera searches for to load new extensions
at runtime. Normally, you will only need to edit:
@jaimergp
jaimergp / userChrome.css
Created November 26, 2017 17:17
My Firefox Quantum userChrome.css
/* Place in ~/.mozilla/firefox/<profile_id>/chrome */
@namespace xul url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
/* Show bookmarks toolbar on New Tab only */
#PersonalToolbar {
visibility:collapse;
}
#main-window[title="Mozilla Firefox"] #PersonalToolbar,
#main-window[title="Mozilla Firefox"] #PersonalToolbar #personal-bookmarks #PlacesToolbar,
#main-window[title^="New Tab"] #PersonalToolbar,
@jaimergp
jaimergp / jaimergp.flatland-monokai-improved.json
Created June 9, 2018 17:38
Custom modifications to Flatland Monokai Improved (for markup, mainly)
{
"name": "Flatland Monokai Improved",
"colors": {
"activityBar.background": "#26292C",
"activityBarBadge.background": "#36a3d9",
"button.background": "#36a3d9",
"editor.background": "#26292C",
"editor.foreground": "#F8F8F2",
"editor.selectionBackground": "#5a5a5a",
"editorCursor.foreground": "#ff953f",
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/bin/bash
set -e
## Build all recipes in the adequate order
conda build --python=2.7 -c local -c insilichem tangram_libtangram
echo "*************************************"
echo "*************************************"
echo "*************************************"
conda build --python=2.7 -c local -c insilichem tangram_gaudiview
@jaimergp
jaimergp / CondaExampleWithOpenMM.ipynb
Last active April 22, 2021 16:32
Using OpenMMTools in Google Colab
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jaimergp
jaimergp / ghstats.py
Created November 15, 2019 14:42
Calculate some stats for all repos in a GitHub organization
#!/usr/bin/env python
# coding: utf-8
"""
PyStats
-------
Stats of Python packages. Includes data of GitHub Repository &
Anaconda downloads (if available).
@jaimergp
jaimergp / retry_magic.py
Created September 11, 2020 08:47
Jupyter IPython magic to retry cell executions - based on %timeit. This hasn't been tested thoroughly!
import ast
import time
from IPython.core.magic import (
Magics,
magics_class,
cell_magic,
needs_local_scope,
no_var_expand,
)
@jaimergp
jaimergp / tilde_backslash.json
Created December 29, 2021 12:20
Karabiner config for missing backslash keys on US keyboards with Spanish ISO layouts
{
"title": "Option+tilde to backslash",
"rules": [
{
"description": "ROption+tilde inserts backslash",
"manipulators": [
{
"type": "basic",
"from": {
"modifiers": {