Skip to content

Instantly share code, notes, and snippets.

View JamesKingdom's full-sized avatar
:shipit:

James Kingdom JamesKingdom

:shipit:
View GitHub Profile
@smdabdoub
smdabdoub / merge_git_repo_as_subdir
Created June 9, 2015 14:02
Merge one git repository into another repository as a sub-directory
# based on the following:
# http://saintgimp.org/2013/01/22/merging-two-git-repositories-into-one-repository-without-losing-file-history/
# http://blog.caplin.com/2013/09/18/merging-two-git-repositories/
git clone repo_main
git clone repo_sub
cd repo_main
git remote add repo_sub ../repo_sub
git fetch repo_sub
@8lane
8lane / gist:8197213
Last active December 12, 2019 21:20
Get number of twitter followers API 1.1
<?php
function getTwitterFollowers($screenName = 'wpbeginner')
{
// some variables
$consumerKey = 'YIQPxqfqQto5yaskourlA';
$consumerSecret = 'OH3xiYM4oN3mjGK3as9m37zkKeyiHgKhBIgiNhoM';
$token = get_option('cfTwitterToken');
// get follower count from cache