View AndroidStringsXmlPrettifier.py
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 os | |
import platform | |
import xml.etree.ElementTree as ET | |
class CommentedTreeBuilder(ET.TreeBuilder): | |
def comment(self, data): | |
self.start(ET.Comment, {}) | |
self.data(data) | |
self.end(ET.Comment) |
View GooglePhotosDateSorter.py
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 os, shutil, sys | |
from googleapiclient.discovery import build | |
from httplib2 import Http | |
from oauth2client import file, client, tools | |
from googleapiclient.http import MediaIoBaseUpload | |
from requests import get, post | |
from io import BytesIO |
View BaseActivity.java
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
// Make all activities in your app extend BaseActivity | |
public class BaseActivity extends AppCompatActivity { | |
@Nullable | |
private FirebaseListenerHandler firebaseListenerHandler; | |
@Override | |
protected void onCreate(final Bundle savedInstanceState) { | |
firebaseListenerHandler = new FirebaseListenerHandler(this); | |
super.onCreate(savedInstanceState); |