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
def format_filename(s): | |
"""Take a string and return a valid filename constructed from the string. | |
Uses a whitelist approach: any characters not present in valid_chars are | |
removed. Also spaces are replaced with underscores. | |
Note: this method may produce invalid filenames such as ``, `.` or `..` | |
When I use this method I prepend a date string like '2009_01_15_19_46_32_' | |
and append a file extension like '.txt', so I avoid the potential of using | |
an invalid filename. | |
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
- name: configure instances | |
hosts: ec2-servers | |
vars: | |
work_dir: /vol/src/application | |
user: ec2-user | |
sudo: yes | |
tasks: | |
- name: update machine with latest packages | |
action: command yum -y update | |
- name: install xfsprogs |
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
require "mkmf" | |
$srcs = [ | |
'hypergeometric.c' | |
] | |
#if have_header("gsl/gsl_sf_exp.h", ["/usr/local/Cellar/gsl/1.15/include/"]) | |
# have_library("gsl") | |
#end |
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
You can copy & paste this ascii graphic and use it e.g. as mail signature | |
Font: all Fonts Reflection: no Adjustment: left Stretch: no Width: 80 Text: SymEngine | |
Font: 3-d | |
******** ******** ** | |
**////// ** ** /**///// ***** // | |
/** //** ** ********** /** ******* **///** ** ******* ***** | |
/********* //*** //**//**//**/******* //**///**/** /**/**//**///** **///** | |
////////** /** /** /** /**/**//// /** /**//******/** /** /**/******* |