Works fine with pewho/browserSyncSuzy for testing
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
################################################################### | |
# General | |
################################################################### | |
# Appropriate terminal colors | |
set -g default-terminal "xterm-256color" | |
set -ga terminal-overrides ",xterm-256color:Tc" | |
# Start tabs at index 1 | |
set -g base-index 1 |
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
<snippet> | |
<content><![CDATA[ | |
Rails.logger.tagged('${1}') { Rails.logger.${2:info} "${3}" } | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>log</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<scope>source.ruby</scope> | |
</snippet> |
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
def extract_unique_row_for_col(df, colname): | |
with_col = df[df[colname].isnull() == False] | |
whithout_col = df[df[colname].isnull() == True] | |
grouped = with_col.groupby(colname) | |
index_unique = [grp_keys[0] for grp_keys in grouped.groups.values() if len(grp_keys) == 1] | |
index_non_unique = [groupkey for grp_keys in grouped.groups.values() for groupkey in grp_keys if len(grp_keys) > 1] | |
unique = with_col.reindex(index_unique) |
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 python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Parse as SF id 15 to 18 | |
""" | |
__author__ = pewho | |