This file contains hidden or 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
| <?xml version="1.0" encoding="utf-8"?> | |
| <resources> | |
| <!-- | |
| # Material Design Dimensions | |
| These dimensions are provided as per Material Design Guidelines | |
| to adhere to a 8 dp baseline grid. (With the exception of the | |
| toolbar and notification bar.). | |
| ## References |
This file contains hidden or 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 struct | |
| import numpy as np | |
| """ | |
| Loosely inspired by http://abel.ee.ucla.edu/cvxopt/_downloads/mnist.py | |
| which is GPL licensed. | |
| """ | |
| def read(dataset = "training", path = "."): |
This file contains hidden or 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
| from __future__ import absolute_import | |
| from __future__ import division | |
| from __future__ import print_function | |
| import gzip | |
| import os | |
| import sys | |
| import time | |
| from six.moves import urllib |
This file contains hidden or 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 numpy | |
| import random | |
| from numpy import arange | |
| #from classification import * | |
| from sklearn import metrics | |
| from sklearn.datasets import fetch_mldata | |
| from sklearn.ensemble import RandomForestClassifier | |
| from sklearn.utils import shuffle | |
| import time |
This file contains hidden or 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 struct | |
| import os | |
| from array import array as pyarray | |
| from sklearn.externals import joblib | |
| from numpy import * | |
| from pylab import * | |
| from sklearn import svm | |
| DATASET_PATH='/media/afali/Project/Projects/Projects/Python-workspace/hello-scikitlearn/Dataset/' |
This file contains hidden or 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
| <!-- Prevents TouchWiz from surrounding your app icon in a frame --> | |
| <!-- Add to your manifest inside the application tag --> | |
| <meta-data | |
| android:name="com.samsung.android.icon_container.has_icon_container" | |
| android:value="true"/> |
This file contains hidden or 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
| package me.kennydude.spending.widgets; | |
| import android.content.Context; | |
| import android.content.res.TypedArray; | |
| import android.graphics.*; | |
| import android.graphics.drawable.Drawable; | |
| import android.graphics.drawable.StateListDrawable; | |
| import android.text.Editable; | |
| import android.text.TextPaint; | |
| import android.text.TextWatcher; |
This file contains hidden or 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 android.content.Context; | |
| import android.content.res.ColorStateList; | |
| import android.graphics.Canvas; | |
| import android.graphics.ColorFilter; | |
| import android.graphics.Paint; | |
| import android.graphics.drawable.Drawable; | |
| import android.util.AttributeSet; | |
| import android.widget.EditText; | |
| /** |
This file contains hidden or 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
| /* | |
| * Copyright 2013 The Android Open Source Project | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
This file contains hidden or 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 android.app.Activity; | |
| import android.graphics.Rect; | |
| import android.os.Build; | |
| import android.view.View; | |
| import android.view.ViewTreeObserver; | |
| import android.view.inputmethod.InputMethodManager; | |
| /** | |
| * This class implements a hack to change the layout padding on bottom if the keyboard is shown | |
| * to allow long lists with editTextViews |