Skip to content

Instantly share code, notes, and snippets.

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

Constantine Antonakos ConAntonakos

🏠
Working from home
View GitHub Profile
import React from 'react';
import has from 'lodash.has';
class GoogleMaps extends React.Component {
constructor(props){
super(props);
this.state = {
mapReady: this.props.mapReady
};
}
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script>
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body ng-app="categoryBids">
<div ng-controller="CategoryBidsController">
@ConAntonakos
ConAntonakos / youtube_playlist_downloader.php
Created August 1, 2014 22:47
Downloads YouTube playlists.
<?php
$playlist_id= 'PLzJZ3ahfm9Q_VSVXmANa8s6v99t3uRkkL';
$api_key = 'AIzaSyAL7YE_8oGFPPWJ6pgQVbAYF-G7tsbf15I';
$base_url = 'https://www.googleapis.com/youtube/v3/';
$playlist_items_url = 'playlistItems?part=contentDetails%2Csnippet&maxResults=50&playlistId='.$playlist_id.'&key='.$api_key;
$playlist_url = $base_url . 'playlists?part=contentDetails%2Csnippet&id='.$playlist_id.'&key='.$api_key;
$playlist_output = curl_get($playlist_url);
!!! 5
%html
%head
%title Example HAML
/[if IE]
%link{ :rel => "stylesheet", :href => "/css/ie.css" }
%body
#container
%header
%h2 Our Awesome HTML5 Template