From 025d95e3d482b6939a91d58263e03a52ac8b2731 Mon Sep 17 00:00:00 2001 From: Lee Olayvar Date: Fri, 21 Nov 2014 06:03:29 +0000 Subject: [PATCH 1/6] Removed no-name example --- README.md | 2 +- Teams/TeamKoders/team.json | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/README.md b/README.md index 5fc591c..2115dde 100644 --- a/README.md +++ b/README.md @@ -19,4 +19,4 @@ SUPPORT YOUR FAVORITE TEAM BY CLICKING THE TWEET LINK! GOOD LUCK TO ALL TEAMS! L | #TeamNameTeam | Team Lead | Team Members | Team Page | |---------------|-----------|--------------|-----------| -| #Team Koders |[Sinan Yasar](https://koding.com/sinan) |[First Last](https://koding.com/koding-username) City, two digit country code
[Emre Durmus](https://koding.com/emre) Istanbul, TR
[Sinan Yasar](https://koding.com/sinan)
[Devrim Yasar](https://koding.com/devrim) SF, US
[Stefan Cosma](https://koding.com/stefanbc) Romania
| [Team Koders](./Teams/TeamKoders/ABOUT.md) | +| #Team Koders |[Sinan Yasar](https://koding.com/sinan) |[Emre Durmus](https://koding.com/emre) Istanbul, TR
[Sinan Yasar](https://koding.com/sinan)
[Devrim Yasar](https://koding.com/devrim) SF, US
[Stefan Cosma](https://koding.com/stefanbc) Romania
| [Team Koders](./Teams/TeamKoders/ABOUT.md) | diff --git a/Teams/TeamKoders/team.json b/Teams/TeamKoders/team.json index ce7bd84..c424e4f 100644 --- a/Teams/TeamKoders/team.json +++ b/Teams/TeamKoders/team.json @@ -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", From 231b386262775a6e3fa69eb2b41b390161dc2302 Mon Sep 17 00:00:00 2001 From: Lee Olayvar Date: Fri, 21 Nov 2014 06:05:37 +0000 Subject: [PATCH 2/6] Removed formatted the requires --- gulpfile.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gulpfile.coffee b/gulpfile.coffee index cc8111b..5c35101 100644 --- a/gulpfile.coffee +++ b/gulpfile.coffee @@ -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' From a3496101cfbdcd4bcca2e2dd65e63db08b96ca85 Mon Sep 17 00:00:00 2001 From: Stefan Cosma Date: Fri, 21 Nov 2014 07:26:32 +0000 Subject: [PATCH 3/6] New Instagram sample code --- Samples/instagram.php | 54 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Samples/instagram.php diff --git a/Samples/instagram.php b/Samples/instagram.php new file mode 100644 index 0000000..63c8ad3 --- /dev/null +++ b/Samples/instagram.php @@ -0,0 +1,54 @@ + 'YOUR_APP_KEY', + 'apiSecret' => 'YOUR_APP_SECRET', + 'apiCallback' => 'YOUR_APP_CALLBACK' +)); + +$result = $instagram->getPopularMedia(); + +foreach ($result->data as $media) { + $content = "
  • "; + // output media + if ($media->type === 'video') { + // video + $poster = $media->images->low_resolution->url; + $source = $media->videos->standard_resolution->url; + $content .= ''; + } else { + // image + $image = $media->images->low_resolution->url; + $content .= ''; + } + // create meta section + $avatar = $media->user->profile_picture; + $username = $media->user->username; + $comment = (!empty($media->caption->text)) ? $media->caption->text : ''; + $content .= '
    +
    +

    ' . $username . '

    +
    ' . $comment . '
    +
    '; + // output media + echo $content . "
  • "; +} +?> \ No newline at end of file From 9a3ef7b4fb740f3813e378bbf0bd9ba49ece0aad Mon Sep 17 00:00:00 2001 From: Stefan Cosma Date: Fri, 21 Nov 2014 07:58:00 +0000 Subject: [PATCH 4/6] New Flickr sample code --- Samples/flickr.rb | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Samples/flickr.rb diff --git a/Samples/flickr.rb b/Samples/flickr.rb new file mode 100644 index 0000000..bdf88f1 --- /dev/null +++ b/Samples/flickr.rb @@ -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 \ No newline at end of file From e71b7f70efc5b58486f2459306cd98035c31c3e8 Mon Sep 17 00:00:00 2001 From: Lee Olayvar Date: Fri, 21 Nov 2014 18:13:59 +0000 Subject: [PATCH 5/6] Updated readme with Nitin's readme --- README.md | 32 +++++++++++++++++++------------- README.template.md | 32 +++++++++++++++++++------------- 2 files changed, 38 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index 2115dde..91e0c87 100644 --- a/README.md +++ b/README.md @@ -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 | |---------------|-----------|--------------|-----------| diff --git a/README.template.md b/README.template.md index 3065a6a..ebf83cb 100644 --- a/README.template.md +++ b/README.template.md @@ -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 | |---------------|-----------|--------------|-----------| From 51d2da2ccac1f15e08b5b2ca2e9519ec974a9354 Mon Sep 17 00:00:00 2001 From: Lee Olayvar Date: Fri, 21 Nov 2014 18:14:58 +0000 Subject: [PATCH 6/6] Removed APIs dir As per Nitin's request --- APIs/README.md | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 APIs/README.md diff --git a/APIs/README.md b/APIs/README.md deleted file mode 100644 index 502dae9..0000000 --- a/APIs/README.md +++ /dev/null @@ -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.