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
""" | |
#ws argument is a xlwt worksheet object, as in: | |
from xlwt import Workbook | |
wb = Workbook() | |
ws = wb.add.sheet('sheet 1') | |
# Example of how to wrap xlwt.Style object | |
conv = pd.io.parsers.CellStyleConverter() |
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 -*- | |
""" | |
Created on Thu Jan 10 15:14:02 2013 | |
@author: daniel.vianna | |
""" | |
from copy import deepcopy | |
from xlwt import Worksheet | |
import numpy as np |
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 -*- | |
""" | |
Created on Mon Jan 14 15:36:36 2013 | |
@author: daniel.vianna | |
""" | |
import xlwt as xlwt | |
import pandas as pd | |
conv = pd.io.parsers.CellStyleConverter() |
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
import pandas as pd | |
import xlwt as xlwt | |
import numpy as np | |
import xlwt.Style as Style | |
class XLtable(pd.DataFrame): | |
def __init__(self, df=None): | |
""" | |
pandas DataFrame with extra methods for setting location and xlwt style | |
in an Excel spreadsheet. |
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
from XLstruc2 import XLtable, XLseries | |
from xlwt import Workbook, Worksheet, Style | |
from copy import deepcopy | |
conv = pd.io.parsers.CellStyleConverter() | |
hstyle_dict = {"font": {"bold": True}, | |
"border": {"top": "thin", | |
"right": "thin", | |
"bottom": "thin", | |
"left": "thin"}, |
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
! Xft settings --------------------------------------------------------------- | |
Xft.dpi: 90 !96 | |
Xft.antialias: true | |
Xft.rgba: none | |
Xft.hinting: true | |
Xft.hintstyle: hintslight | |
!Xft.autohint: true |
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 nix in a Debian instance | |
# | |
sudo apt-get update | |
sudo apt-get -y install bzip2 gcc libdigest-sha-perl libgmp-dev libncurses5-dev libz-dev make | |
curl https://nixos.org/nix/install | sh |
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 JupyterHub in a Debian instance | |
# | |
sudo apt-get update | |
echo 'export TERM=xterm' >> $HOME/.profile | |
sudo apt-get -y install bzip2 gcc libdigest-sha-perl libgmp-dev make python3 python3-pip python3-venv npm nodejs-legacy libzmq3-dev |
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
{ | |
"parser": "babel-eslint", | |
"parserOptions": { | |
"ecmaVersion": 6, | |
"ecmaFeatures": { | |
"jsx" : true, | |
"impliedStrict": true | |
}, | |
"sourceType": "module" | |
}, |
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
import XMonad | |
main = xmonad $ def | |
{ terminal = "urxvt" | |
, normalBorderColor = "#cccccc" | |
, focusedBorderColor = "#cd8b00" | |
, modMask = mod3Mask -- depends on ~/.Xmodmap assigning Alt_R to mod3 | |
} |
OlderNewer