Merge branch 'master' into firebase-sample
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
APIs
|
||||
=====
|
||||
|
||||
We will provide copy/paste friendly code samples that will help you communicate
|
||||
with various APIs.
|
||||
|
||||
Feel free to push code here, open a PR and we will accept if it's ready to use.
|
||||
@@ -1,22 +1,28 @@
|
||||
GLOBAL HACKATHON
|
||||
KODING'S GLOBAL VIRTUAL HACKATHON
|
||||
================
|
||||
|
||||
Welcome to the World’s First Global Virtual Hackathon!
|
||||
Welcome to the git repo for Koding's Global Virtual Hackathon! If that
|
||||
does not ring a bell, please
|
||||
[go here](https://koding.com/Hackathon). You can win more than $35,000 in
|
||||
prizes!
|
||||
|
||||
This is the repository we will all fork and work on. We will provide you with sample APIs that you can copy paste and use in your code. And provide you some sample apps that you can play with.
|
||||
The purpose of this repo is two-fold:
|
||||
* for us to share share sample code with you
|
||||
* for you to share your team details and eventually your final project
|
||||
code with us
|
||||
|
||||
https://koding.com/Hackathon
|
||||
DO THIS NOW!
|
||||
============
|
||||
Fork this repo and add a new folder in the existing "teams" folder. Name
|
||||
the folder with your team name and inside this folder, create two files:
|
||||
* team.json (see example file for details)
|
||||
* ABOUT.md (see sample file for details)
|
||||
* once the above files are done, make a pull request to get your
|
||||
information merged into the main repo
|
||||
|
||||
AWESOME TEAMS!!
|
||||
==============
|
||||
|
||||
Edit this file and fill in the information about you and your team.
|
||||
Each team member should add themselves from their own Github account.
|
||||
|
||||
If your application is not approved yet, correct your team row, click on the tweet link, tweet it - we will prioritize your application.
|
||||
|
||||
SUPPORT YOUR FAVORITE TEAM BY CLICKING THE TWEET LINK! GOOD LUCK TO ALL TEAMS! LET'S HAVE SOME FUN :)
|
||||
We will periodically run a script that will pull your info and populate
|
||||
the lower section of this README.md file.
|
||||
|
||||
| #TeamNameTeam | Team Lead | Team Members | Team Page |
|
||||
|---------------|-----------|--------------|-----------|
|
||||
| <a target='_blank' href='https://twitter.com/home?status=Go team %23TeamKoders for @koding %23hackathon led by @sinanyasar https://koding.com/Hackathon'> <img src='https://g.twimg.com/Twitter_logo_blue.png' height='14'/> #Team Koders </a> |[Sinan Yasar](https://koding.com/sinan) |[First Last](https://koding.com/koding-username) City, two digit country code<br>[Emre Durmus](https://koding.com/emre) Istanbul, TR<br>[Sinan Yasar](https://koding.com/sinan) <br>[Devrim Yasar](https://koding.com/devrim) SF, US<br>[Stefan Cosma](https://koding.com/stefanbc) Romania<br> | [Team Koders](./Teams/TeamKoders/ABOUT.md) |
|
||||
| <a target='_blank' href='https://twitter.com/home?status=Go team %23TeamKoders for @koding %23hackathon led by @sinanyasar https://koding.com/Hackathon'> <img src='https://g.twimg.com/Twitter_logo_blue.png' height='14'/> #Team Koders </a> |[Sinan Yasar](https://koding.com/sinan) |[Emre Durmus](https://koding.com/emre) Istanbul, TR<br>[Sinan Yasar](https://koding.com/sinan) <br>[Devrim Yasar](https://koding.com/devrim) SF, US<br>[Stefan Cosma](https://koding.com/stefanbc) Romania<br> | [Team Koders](./Teams/TeamKoders/ABOUT.md) |
|
||||
|
||||
+19
-13
@@ -1,21 +1,27 @@
|
||||
GLOBAL HACKATHON
|
||||
KODING'S GLOBAL VIRTUAL HACKATHON
|
||||
================
|
||||
|
||||
Welcome to the World’s First Global Virtual Hackathon!
|
||||
Welcome to the git repo for Koding's Global Virtual Hackathon! If that
|
||||
does not ring a bell, please
|
||||
[go here](https://koding.com/Hackathon). You can win more than $35,000 in
|
||||
prizes!
|
||||
|
||||
This is the repository we will all fork and work on. We will provide you with sample APIs that you can copy paste and use in your code. And provide you some sample apps that you can play with.
|
||||
The purpose of this repo is two-fold:
|
||||
* for us to share share sample code with you
|
||||
* for you to share your team details and eventually your final project
|
||||
code with us
|
||||
|
||||
https://koding.com/Hackathon
|
||||
DO THIS NOW!
|
||||
============
|
||||
Fork this repo and add a new folder in the existing "teams" folder. Name
|
||||
the folder with your team name and inside this folder, create two files:
|
||||
* team.json (see example file for details)
|
||||
* ABOUT.md (see sample file for details)
|
||||
* once the above files are done, make a pull request to get your
|
||||
information merged into the main repo
|
||||
|
||||
AWESOME TEAMS!!
|
||||
==============
|
||||
|
||||
Edit this file and fill in the information about you and your team.
|
||||
Each team member should add themselves from their own Github account.
|
||||
|
||||
If your application is not approved yet, correct your team row, click on the tweet link, tweet it - we will prioritize your application.
|
||||
|
||||
SUPPORT YOUR FAVORITE TEAM BY CLICKING THE TWEET LINK! GOOD LUCK TO ALL TEAMS! LET'S HAVE SOME FUN :)
|
||||
We will periodically run a script that will pull your info and populate
|
||||
the lower section of this README.md file.
|
||||
|
||||
| #TeamNameTeam | Team Lead | Team Members | Team Page |
|
||||
|---------------|-----------|--------------|-----------|
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
# Flickr is an image hosting and video
|
||||
# hosting website, and web services suite
|
||||
#
|
||||
# This example uses a third-party ruby library to authenticate a user
|
||||
# and output the most recent photo.
|
||||
#
|
||||
# Please see these for more information:
|
||||
#
|
||||
# https://www.flickr.com/services/developer
|
||||
# https://github.com/hanklords/flickraw
|
||||
|
||||
require 'flickraw'
|
||||
|
||||
FlickRaw.api_key="YOUR_API_KEY"
|
||||
FlickRaw.shared_secret="YOUR_APP_SECRET"
|
||||
|
||||
list = flickr.photos.getRecent
|
||||
|
||||
id = list[0].id
|
||||
secret = list[0].secret
|
||||
info = flickr.photos.getInfo :photo_id => id, :secret => secret
|
||||
|
||||
puts info.title
|
||||
puts info.dates.taken
|
||||
|
||||
sizes = flickr.photos.getSizes :photo_id => id
|
||||
|
||||
original = sizes.find {|s| s.label == 'Original' }
|
||||
puts original.width
|
||||
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
# Instagram is an online mobile photo-sharing,
|
||||
# video-sharing and social networking service that
|
||||
# enables its users to take pictures and videos,
|
||||
# and share them on a variety of social networking platforms.
|
||||
#
|
||||
# This example uses a third-party PHP library to authenticate a user
|
||||
# and to output the most popular media.
|
||||
#
|
||||
# Please see these for more information:
|
||||
#
|
||||
# http://instagram.com/developer/
|
||||
# https://github.com/cosenary/Instagram-PHP-API
|
||||
|
||||
require_once 'Instagram.php';
|
||||
use MetzWeb\Instagram\Instagram;
|
||||
|
||||
$instagram = new Instagram(array(
|
||||
'apiKey' => 'YOUR_APP_KEY',
|
||||
'apiSecret' => 'YOUR_APP_SECRET',
|
||||
'apiCallback' => 'YOUR_APP_CALLBACK'
|
||||
));
|
||||
|
||||
$result = $instagram->getPopularMedia();
|
||||
|
||||
foreach ($result->data as $media) {
|
||||
$content = "<li>";
|
||||
// output media
|
||||
if ($media->type === 'video') {
|
||||
// video
|
||||
$poster = $media->images->low_resolution->url;
|
||||
$source = $media->videos->standard_resolution->url;
|
||||
$content .= '<video width="250" height="250" poster="' . $poster . '"
|
||||
data-setup="{"controls":true, "preload": "auto"}">
|
||||
<source src="' . $source . '" type="video/mp4" />
|
||||
</video>';
|
||||
} else {
|
||||
// image
|
||||
$image = $media->images->low_resolution->url;
|
||||
$content .= '<img class="media" src="' . $image . '"/>';
|
||||
}
|
||||
// create meta section
|
||||
$avatar = $media->user->profile_picture;
|
||||
$username = $media->user->username;
|
||||
$comment = (!empty($media->caption->text)) ? $media->caption->text : '';
|
||||
$content .= '<div class="content">
|
||||
<div class="avatar" style="background-image: url(' . $avatar . ')"></div>
|
||||
<p>' . $username . '</p>
|
||||
<div class="comment">' . $comment . '</div>
|
||||
</div>';
|
||||
// output media
|
||||
echo $content . "</li>";
|
||||
}
|
||||
?>
|
||||
@@ -1,12 +1,6 @@
|
||||
{
|
||||
"teamName": "Team Koders",
|
||||
"members": [
|
||||
{
|
||||
"name": "First Last",
|
||||
"twitter": "twitter-handle",
|
||||
"koding": "koding-username",
|
||||
"location": "City, two digit country code"
|
||||
},
|
||||
{
|
||||
"name": "Emre Durmus",
|
||||
"twitter": "emre",
|
||||
|
||||
+3
-3
@@ -1,12 +1,12 @@
|
||||
#
|
||||
# # Gulpfile
|
||||
#
|
||||
path = require 'path'
|
||||
path = require 'path'
|
||||
gulp = require 'gulp'
|
||||
concat = require 'gulp-concat'
|
||||
replace = require 'gulp-replace'
|
||||
tap = require 'gulp-tap'
|
||||
util = require 'gulp-util'
|
||||
tap = require 'gulp-tap'
|
||||
util = require 'gulp-util'
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user