Skip to content

Instantly share code, notes, and snippets.

View Prithvirajbilla's full-sized avatar
🏠
Working from home

Prithviraj Billa Prithvirajbilla

🏠
Working from home
View GitHub Profile
@Prithvirajbilla
Prithvirajbilla / getfeed.php
Created October 27, 2014 12:45
Get feed From URL with Basic Authorisation
<?php
function getfromweb($url, $username = null, $password = null) {
$opts = array('http' =>
array(
'method' => 'GET',
'header' => "Authorization: Basic ".base64_encode("$username:$password")."\r\n")
);
$context = stream_context_create($opts);
$result = file_get_contents($url, false, $context);
return $result;
@Prithvirajbilla
Prithvirajbilla / index.html
Created May 21, 2013 14:34
A CodePen by PrithvirajBilla. Shape Shifter - A canvas experiment
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0">
<title>Shape Shifter</title>
<link rel="stylesheet" href="styles/normalize.css" >
<link rel="stylesheet" href="styles/style.css" >
</head>