Skip to content

Instantly share code, notes, and snippets.

View huseyinbarin's full-sized avatar

Huseyin Barin huseyinbarin

View GitHub Profile
@huseyinbarin
huseyinbarin / android-screen-to-gif.sh
Created January 15, 2016 08:07 — forked from lorenzos/android-screen-to-gif.sh
Captures screen from Android device via ADB and makes a 180x320 GIF
#!/bin/bash
# How to install:
# exo-open "http://developer.android.com/sdk/index.html#Other"
# sudo apt-get install libav-tools imagemagick
# wget https://gist.githubusercontent.com/lorenzos/e8a97c1992cddf9c1142/raw/android-screen-to-gif.sh
# chmod a+x android-screen-to-gif.sh
# Help message
function usage() {
package barin.com.soundcloudapp.services;
import android.app.IntentService;
import android.content.ContentValues;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v4.content.LocalBroadcastManager;
import android.util.Log;
@sholfen
sholfen / PermCheck.cs
Created November 9, 2015 07:03
for Codility PermCheck
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PermCheck
{
class Program
{
@SureshCS-50
SureshCS-50 / SlidingTabLayout.java
Last active May 21, 2018 19:00
SlidingTabLayout with both ImageView and TextView support.
/*
/**
* Created by Windows on 16-01-2015.
*/
/*
* Copyright 2014 Google Inc. All rights reserved.
*
* 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
@erdimeola
erdimeola / est3d.py
Last active September 1, 2023 18:25
Python - EST 3D Secure Integration
#!/usr/bin/python
# -*- coding: utf-8 -*-
from django.shortcuts import redirect
from django.http import HttpResponse
import requests, hashlib, base64, time
EST_MERCHANT_ID = "400000200"
EST_3D_KEY = "TRPS0200"
EST_RETURN_URL = "http://test.domain.com/basarili"
EST_FAIL_URL = "http://test.domain.com/basarisiz"
@stkent
stkent / android_studio_shortcuts.md
Last active November 1, 2023 11:58
Android Studio Shortcuts (Mac)

Android Studio Shortcuts (Mac)

Notes:

  • Two of the most useful shortcuts utilize the Fn (function) keys. It is therefore recommended that you enable the "Use all F1, F2, etc. keys as standard function keys" option [System Preferences > Keyboard].
  • Be sure to enable the Mac OS X 10.5+ keymap in Android Studio [Preferences > Keymap].
  • A fairly complete shortcut list can be found here.

Useful symbols: