Skip to content

Instantly share code, notes, and snippets.

Mohammed Imtiyaz wpgeek922

Block or report user

Report or block wpgeek922

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
# coding=UTF-8
from __future__ import division
import nltk
from collections import Counter
# This is a simple tool for adding automatic hashtags into an article title
# Created by Shlomi Babluki
# Sep, 2013
wpgeek922 / set_header.php
Created Feb 17, 2016
Set headers in file_get_contents() for basic authorization
View set_header.php
$strm_context = stream_context_create(array(
'http' => array(
'method' => 'GET', // GET,POST (HTTP METHODS)
'header' => "Authorization: Bearer ACCESS_TOKEN OR API_KEY\r\n"
$result = file_get_contents(SOURCE_URL, false, $strm_context);
$data = json_decode($result);
You can’t perform that action at this time.