Skip to content

Instantly share code, notes, and snippets.

View atengberg's full-sized avatar

atengberg atengberg

  • sidereal
View GitHub Profile
@atengberg
atengberg / new_gist_file_0
Last active February 14, 2023 22:04
what is oo
What is objected orientated programming?
"Object oriented programming is a technique of writing code that encapsulates complexity by enumerating data structures with an intrinsic implementation so that they can generally interface."
@atengberg
atengberg / new_gist_file_0
Created December 15, 2014 10:19
copy file from raw resource
private void copyFile(String fromPath, String fileName, int file) {
InputStream in = null;
OutputStream out = null;
try {
in = getResources().openRawResource(file);
out = new FileOutputStream(new File(fromPath, fileName));
byte[] buffer = new byte[1024];
int read;
while ((read = in.read(buffer)) != -1) {
out.write(buffer, 0, read);
.DS_Store
# built application files
*.apk
*.ap_
# files for the dex VM
*.dex
# Java class files