Skip to content

Instantly share code, notes, and snippets.

Ege Kuzubasioglu egek92

Block or report user

Report or block egek92

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@hleinone
hleinone / CreditCardNumberFormattingTextWatcher.kt
Created Jul 8, 2016
Android EditText TextWatcher for formatting credit card number made with Kotlin
View CreditCardNumberFormattingTextWatcher.kt
class CreditCardNumberFormattingTextWatcher : TextWatcher {
private var current = ""
override fun onTextChanged(s: CharSequence, start: Int, before: Int, count: Int) {
}
override fun beforeTextChanged(s: CharSequence, start: Int, count: Int, after: Int) {
}
override fun afterTextChanged(s: Editable) {
@Ferrmolina
Ferrmolina / SomeActivityClass.java
Created May 24, 2016
Get Name, ID and Email - Facebook SDK - Android
View SomeActivityClass.java
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
callbackManager.onActivityResult(requestCode, resultCode, data);
GraphRequest request = GraphRequest.newMeRequest(
accessToken,
new GraphRequest.GraphJSONObjectCallback() {
@Override
public void onCompleted(
@FrantisekGazo
FrantisekGazo / StatefulRecyclerView.java
Last active Aug 14, 2019
Retain & restore recycler view scroll position
View StatefulRecyclerView.java
package eu.f3rog.ui.custom;
import android.content.Context;
import android.os.Bundle;
import android.os.Parcelable;
import android.support.annotation.Nullable;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;
/**
@aggrolite
aggrolite / redditbot.md
Last active Aug 13, 2019
Writing a reddit bot with Go and OAuth2
View redditbot.md
@egslava
egslava / WrapContentHeightViewPager.java
Created Aug 12, 2014
Wrap content height ViewPager (Android)
View WrapContentHeightViewPager.java
package org.cnii.layoutloader.ui;
import android.content.Context;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.view.View;
/**
* Special thanks to Daniel López Lacalle for his response
* (http://stackoverflow.com/questions/8394681/android-i-am-unable-to-have-viewpager-wrap-content/20784791#20784791)
@staltz
staltz / introrx.md
Last active Oct 15, 2019
The introduction to Reactive Programming you've been missing
View introrx.md
@jxson
jxson / README.md
Created Feb 10, 2012
README.md template
View README.md

Synopsis

At the top of the file there should be a short introduction and/ or overview that explains what the project is. This description should match descriptions added for package managers (Gemspec, package.json, etc.)

Code Example

Show what the library does as concisely as possible, developers should be able to figure out how your project solves their problem by looking at the code example. Make sure the API you are showing off is obvious, and that your code is short and concise.

Motivation

@jimbojsb
jimbojsb / gist:1630790
Created Jan 18, 2012
Code highlighting for Keynote presentations
View gist:1630790

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2:

You can’t perform that action at this time.