This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Script to fetch all repos under a git organization | |
# Returns last committer to master and date of commit | |
# Results sorted by commit date | |
# Replace ORG_NAME, USERNAME, and PASSWORD variables | |
import urllib2 | |
import requests | |
import json | |
ORG_NAME = 'my-org' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// example call: http://localhost/largest.php?url_without_http=bbc.co.uk | |
$url = $_GET['url_without_http']; | |
$largest = get_largest_img("http://" . $url); | |
$embed = empty($largest) ? "Suitable image not found" : "<img src='" . $largest . "'>"; | |
echo("<html><body>" . $embed . "</body></html>"); | |
function get_largest_img($url) { |