Skip to content

Instantly share code, notes, and snippets.

View blackmann's full-sized avatar
💭
🤟

Degreat blackmann

💭
🤟
View GitHub Profile
@blackmann
blackmann / andlog.py
Created May 24, 2014 10:38
A simple log-in app in python4android
#some simple login app
from android import Android
import time
import random
a = Android()
p=0
a.dialogCreateHorizontalProgress("Loading App")
a.dialogShow()
@blackmann
blackmann / simpedit.py
Created June 14, 2014 09:09
A simple Text editor as a beginner
#Text Editor
#A simple text editor in beta mode
#as a beginner
__author__ = 'Lexis'
def checknewline(tl):
'''to check trailing newlines'''
if (len(tl)==3) and (''.join(tl[:])==''):
return True
@blackmann
blackmann / egyptmult.py
Created June 14, 2014 13:26
Egyptian Multiplier
#Egyptian multiplier
def main():
numbers = (raw_input('Enter 2 ints: ')).split(' ')
numbers = map(int, numbers)
j, k= numbers
a, b = map(abs, numbers)
result = 0
while b>0:
if b%2!=0:
print '[*]b is even...adding %s to give: %s' %(a, result)
@blackmann
blackmann / activity_base.xml
Created July 26, 2016 22:02
Base layout resource for winwin nav
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<android.support.design.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<group android:id="@+id/primary">
<!-- You could include the menu icon attribute too -->
<item
android:id="@+id/home"
android:title="@string/home" />
<item
android:id="@+id/dashboard"
import android.support.annotation.LayoutRes;
import android.support.annotation.NonNull;
import android.support.design.widget.BottomSheetBehavior;
import android.support.design.widget.NavigationView;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.LayoutInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.os.Bundle;
import android.support.annotation.Nullable;
public class MainActivity extends BaseActivity {
@Override
protected int getMenuRes() {
return R.menu.menu_main;
}
@blackmann
blackmann / ekikiyen_privacy_policy.md
Last active October 30, 2017 15:41
Ekiki Yen Privacy Policy

Privacy Policy (Ekiki Yen Mobile App)

This document contains the privacy policy regarding the use of Ekiki Yen Mobile app from Roots Inc.

Data

Data collected with the app (Ekiki Yen) is only recharge card numbers voluntaringly shared by any user. This data is collected to be share to other users of the app.

Camera

@blackmann
blackmann / index.html
Created December 6, 2017 15:19
Facebook Profile Page clone
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Girls Code Profile</title>
<!-- Add our styles -->
<link rel="stylesheet" href="https://blackmann.github.io/staticfiles/facebook-clone-styles.css">
</head>
<body>
@blackmann
blackmann / WrapContentViewPager.java
Created April 23, 2018 15:48 — forked from neilbantoc/WrapContentViewPager.java
A simple view pager that supports wrapping of content by measuring first child and setting that as the viewpager's height.
import android.content.Context;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.view.View;
/*
* A simple view pager that supports wrapping of content
* by measuring first child and setting that as the viewpager's height.
*/
public class WrapContentViewPager extends ViewPager{