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 | |
# Script that patches kubernetes kubelet with | |
# various fixes to get CephFS mounts working. | |
KUBELET_ID=$(docker ps | grep kubelet | cut -d' ' -f1) | |
KUBELET_DESC=$(docker ps | grep kubelet | awk '{print $2}') | |
echo -e "KUBELET_ID=$KUBELET_ID ($KUBELET_DESC)" |
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
document.getElementById('my_dialog_id').innerHTML = '<p>My dialog box</p>'; |
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
var template = _.template($('#my_template_id').html()); | |
this.$el.html(template()); |
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
$('#id_of_my_dialog').html('<p>This is a dialog box</p>'); |
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
{% comment "This is an example of how to replace the logo. Removed the comment block and endblock to activate" %} | |
{% block logo %} | |
<td style="text-align: left; "> | |
<span> | |
<img src="{{ STATIC_URL }}map/projects/kyle_project/mybanner.png" /> | |
</span> | |
</td> | |
{% endblock %} | |
{% endcomment %} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
{ | |
"geometry":{ | |
"type":"Polygon", | |
"coordinates":[ | |
[ | |
[ | |
-104.97221946716309, | |
40.72202247464282 | |
], | |
[ |
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
{ | |
"type":"FeatureCollection", | |
"features":[ | |
{ | |
"type":"Feature", | |
"geometry":{ | |
"type":"Polygon", | |
"coordinates":[ | |
[ | |
[ |
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 csv | |
import re | |
f = open('out.csv','w') | |
def title_case(s, exceptions=['a', 'an', 'of', 'the', 'is']): | |
word_list = re.split(' ', s) #re.split behaves as expected | |
final = [word_list[0].capitalize()] | |
for word in word_list[1:]: | |
final.append(word in exceptions and word or word.capitalize()) |
NewerOlder