Skip to content

Instantly share code, notes, and snippets.

View AnneTheAgile's full-sized avatar

AnneTheAgile

  • Fan of http://www.CodeTriage.com
View GitHub Profile
@AnneTheAgile
AnneTheAgile / talk-battle-playbook.yml
Created August 16, 2014 00:19
talk-battle-playbook-gist
---
- hosts: workstation
# https://dl.dropboxusercontent.com/u/622216/battleschool/playbooks/playbook.yml
# via
# https://github.com/spencergibb/battleschool
tasks:
- name: print from playbook
debug: msg="in Examples ! playbooks/playbook.yml"
@AnneTheAgile
AnneTheAgile / talk-battle-config-help-page.yml
Last active August 29, 2015 14:05
talk-battle-config-gist
---
cache_dir: ~/Library/Caches/battleschool
# Originally, SpencerGibb: https://dl.dropboxusercontent.com/u/622216/battleschool/config.yml
# 2014-08-15Fri Change to AnneTheAgile
sources:
# local:
# - playbook.yml
url:
---
# Empty Battleschool config.yml.
sources:
local:
#- playbook.yml
url:
#- name: playbook.yml
# url: https://db.tt/VcyI9dvr
[workstation]
localhost ansible_connection=local
# no ssh needed with local ansi connection, aka -c local, but couldn't get cli to work.
The usual easy way of LibreOffice aka Excel translating a column by editing its contents.
Formulae;
=SUBSTITUTE(D2,"HDR ","",1) # Necessary
=FIND("HDR ",D1) # FYI
EX.:
# Format row; Label row, Data row
# Used 3 tabs here on gist to delimit
[out-as-str] [out-as-calc] [other-field] [input]
CategoryCalc CategoryCalc Concept Category0
# It is very easy to read a clean CSV with pandas.
In [2]: import pandas
In [3]: db = pandas.read_csv("/path/fn.csv")
In [7]: db
Out[7]:
<class 'pandas.core.frame.DataFrame'>
Int64Index: 528 entries, 0 to 527
# HERE-NOW type of long long String with embedded CR's;
# REF: https://github.com/wikimedia/pywikibot-core/blob/master/generate_user_files.py
from textwrap import wrap
msg = wrap("""WARNING: Your user files will be created in the directory
'%(new_base)s' you have chosen. To access these files, you will either have
to use the argument "-dir:%(new_base)s" every time....""" % locals(), width=76)
for line in msg:
print line
@AnneTheAgile
AnneTheAgile / keybase.md
Last active January 27, 2016 23:06
Keybase proof PGP

Keybase proof

I hereby claim:

  • I am AnneTheAgile on github.
  • I am annetheagile (https://keybase.io/annetheagile) on keybase.
  • I have a public key whose fingerprint is B29F D370 500E 63F9 937B 2B9B 6FB0 7974 4741 54C7

To claim this, I am signing this object:

@AnneTheAgile
AnneTheAgile / ipadtip
Created September 5, 2014 22:43
iPad
git