Skip to content

Instantly share code, notes, and snippets.

View CyrilNb's full-sized avatar
📱

Cyril CyrilNb

📱
View GitHub Profile
@joshisumit
joshisumit / python_request_create_gist.py
Last active April 5, 2024 17:38
Create GIST from your python code with python requests module and OAuth token.
'''
HTTP Reuests has following parameters:
1)Request URL
2)Header Fields
3)Parameter
4)Request body
'''
#!/usr/bin/env python
import requests
@tomredman
tomredman / ChromeCustomTab.java
Created September 9, 2015 19:31
A simple, reusable implementation of Chrome custom tabs for Android
package org.buffer.android.helpers.customtabs;
import android.app.Activity;
import android.content.ComponentName;
import android.net.Uri;
import android.os.Bundle;
import android.support.customtabs.CustomTabsCallback;
import android.support.customtabs.CustomTabsClient;
import android.support.customtabs.CustomTabsIntent;
import android.support.customtabs.CustomTabsServiceConnection;