Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3 from szabgab/main
Browse files Browse the repository at this point in the history
merge from main
  • Loading branch information
EitanSchuler committed Jun 15, 2014
2 parents 5aebde2 + 468f4c0 commit ebbbdf6
Show file tree
Hide file tree
Showing 26 changed files with 175 additions and 22 deletions.
1 change: 1 addition & 0 deletions data/people/aaron-crane
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
name: Aaron Crane
2 changes: 2 additions & 0 deletions data/people/andrew-ford
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: Andrew Ford
home: http://ford-mason.co.uk/
2 changes: 2 additions & 0 deletions data/people/brett-estrado
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: Brett Estrado

1 change: 1 addition & 0 deletions data/people/przemek-wesoek
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
name: Przemek Wesołek
1 change: 1 addition & 0 deletions data/people/stanisaw-romaski
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
name: Stanisaw Romaski
2 changes: 2 additions & 0 deletions data/people/ukasz-lipski-blindluke
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: Ukasz Lipski
nickname: blindluke
8 changes: 8 additions & 0 deletions data/sources/london-perl-workshop-2011
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: London Perl Workshop 2011
format: markdown


__DESCRIPTION__

* [LPW 2011](http://conferences.yapceurope.org/lpw2011/)

2 changes: 1 addition & 1 deletion data/sources/london-perl-workshop-2013
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ format: markdown

__DESCRIPTION__

[LPW 2013](http://act.yapc.eu/lpw2013/)
* [LPW 2013](http://act.yapc.eu/lpw2013/)

9 changes: 5 additions & 4 deletions data/sources/plpw2013
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: PLPW - Polish Perl Workshop
name: PLPW - Polish Perl Workshop 2013
format: markdown

__DESCRIPTION__


<a href="http://act.yapc.eu/plpw2013/">PLPW 2013</a>
<a href="https://www.youtube.com/user/polishperl">YouTube channel</a>
* [PLPW](href="http://act.yapc.eu/)
* [PLPW 2013](href="http://act.yapc.eu/plpw2013/)
* [YouTube channel](https://www.youtube.com/user/polishperl)
8 changes: 8 additions & 0 deletions data/sources/plpw2014
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: PLPW - Polish Perl Workshop 2014
format: markdown

__DESCRIPTION__

* [PLPW](href="http://act.yapc.eu/)
* [PLPW 2014](href="http://act.yapc.eu/plpw2014/)
* [YouTube channel](https://www.youtube.com/user/polishperl)
13 changes: 13 additions & 0 deletions data/videos/all-together---lighting-talks-plpw2014
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
id: 6LJ_LMSnIe0
src: youtube
title: All Together - Lighting talks PLPW2014
speaker: many
source: plpw2014
view_count: 3
favorite_count: 0
length: 46:14
date: 2014-05-17
format: markdown

__DESCRIPTION__

14 changes: 14 additions & 0 deletions data/videos/closures-in-perl-why-when-and-how-to-use
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
id: TOK40mUL-zE
src: youtube
title: Closures in Perl: why, when and how to use
speaker: stanisaw-romaski
source: plpw2014
view_count: 88
favorite_count: 0
length: 26:12
date: 2013-05-26
format: markdown

__DESCRIPTION__

[abstract](http://act.yapc.eu/plpw2013/talk/4795)
18 changes: 18 additions & 0 deletions data/videos/creating-epub-documents-from-latex
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
id: esgiHbyqWhk
src: youtube
title: Creating EPub Documents from LaTex
speaker: andrew-ford
source: london-perl-workshop-2011
view_count: 517
favorite_count: 0
length: 46:51
date: 2011-11-12
format: markdown

__DESCRIPTION__

Recorded at the London Perl Workshop 2011

Will discuss what ePub is (in its own right and as an input format for conversion to Kindle books) and describe how Perl can be used to convert from LaTeX (using LaTeXML and EBook::EPUB), along with the pitfalls and work-arounds for converting 10-year old book LaTeX sources, originally written with print media in mind.

[abstract](http://conferences.yapceurope.org/lpw2011/talk/3865)
1 change: 1 addition & 0 deletions data/videos/how-to-code-like-larry-wall
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ favorite_count: 0
length: 06:05
date: 2011-06-13
format: markdown
featured: 2014-06-15

__DESCRIPTION__

Expand Down
16 changes: 16 additions & 0 deletions data/videos/indexing-stuff-and-things-with-sphinx-and-perl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
id: Ku4tIsxmeXw
src: youtube
title: Indexing stuff and Things with Sphinx and Perl
speaker: brett-estrado
source: houston-perl-mongers
view_count: 16
favorite_count: 0
length: 51:36
date: 2014-05-08
format: markdown
tags: Sphinx

__DESCRIPTION__

[Shinx](http://sphinxsearch.com/)

15 changes: 15 additions & 0 deletions data/videos/mandarin-chinese-the-good-parts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
id: jR0_dmMWkqg
src: youtube
title: Mandarin Chinese: the good parts
speaker: carl-masak
source: plpw2014
view_count: 3
favorite_count: 0
length: 39:09
date: 2014-05-17
format: markdown

__DESCRIPTION__

[abstract](http://act.yapc.eu/plpw2014/talk/5275)

22 changes: 22 additions & 0 deletions data/videos/monkey-patching-subclassing-and-accidental-overwriting
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
id: NnUlCyg-io8
src: youtube
title: Monkey Patching, Subclassing and Accidental OverWriting
speaker: aaron-crane
source: london-perl-workshop-2011
view_count: 312
favorite_count: 0
length: 22:43
date: 2011-11-12
format: markdown

__DESCRIPTION__

Recorded at the London Perl Workshop 2011

We all know that CPAN is one of Perl's biggest advantages. But sometimes, you find yourself using a CPAN class that doesn't have quite enough features for what you're trying to do. What's the best way to deal with that sort of situation?

One option would be to monkey-patch new code into the CPAN class you're using - just add extra subroutines to the original namespace. But unconstrained monkey-patching has consequences that make it extremely hard to use in practice. So the usual alternative recommendation is to subclass the CPAN code, add the new methods in the subclass, and then ensure that the rest of your program always uses the subclass in place of the original. But that approach has two flaws. First, it can be awkward to make sure your subclass is always used in the right places. Second, it doesn't actually fix the problem: you can still experience all the same issues as with monkey-patching!

This talk examines the problems with this sort of reuse, whether you're trying to use monkey-patching or subclassing. It also offers some solutions that take advantage of Perl's flexibility to make it both easy and safe, regardless of whether you're using Perl's built-in OO or a full-featured object system like Moose.

[abstract](http://conferences.yapceurope.org/lpw2011/talk/3707)
1 change: 1 addition & 0 deletions data/videos/reactive-programming-in-perl-6
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ length: 43:26
date: 2014-04-25
format: markdown
tags: Perl 6
featured: 2014-06-14

__DESCRIPTION__

Expand Down
15 changes: 15 additions & 0 deletions data/videos/twists-and-turns-of-turn-based-games
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
id: MVoOlHKsXJY
src: youtube
title: Twists and turns of turn based games
speaker: ukasz-lipski-blindluke
source: plpw2014
view_count: 5
favorite_count: 0
length: 13:03
date: 2014-05-17
format: markdown

__DESCRIPTION__

[abstract](http://act.yapc.eu/plpw2014/talk/5477)

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
id: oS-aAoJYoU4
src: youtube
title: When TeX met Perl: two crazy languages and their sane marriage
speaker: przemek-wesoek
source: plpw2014
view_count: 2
favorite_count: 0
length: 26:57
date: 2014-05-17
format: markdown

__DESCRIPTION__

[abstract](http://act.yapc.eu/plpw2014/talk/5409)

4 changes: 4 additions & 0 deletions lib/PerlTV.pm
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ hook before_template => sub {
$t->{statistics} = 1;
}

if ($t->{videos}) {
$t->{show_toggles} = 1;
}

return;
};

Expand Down
14 changes: 3 additions & 11 deletions public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ body {
margin: 0;
margin-bottom: 25px;
padding: 0;
background-color: #ddd;
background-repeat: no-repeat;
background-position: top left;

background-color: #FFF;
font-family: "Lucida Grande", "Bitstream Vera Sans", "Verdana";
font-size: 13px;
color: #333;
Expand All @@ -23,7 +20,7 @@ a {
text-decoration: none;
}
a:hover {
text-decoration: underline;
background-color: #EEE;
}

#page {
Expand All @@ -36,9 +33,7 @@ a:hover {
}

#content {
background-color: white;
border: 3px solid #aaa;
border-top: none;
background-color: #FFF;
padding: 0px;
float: left;
width: 70%;
Expand All @@ -47,7 +42,6 @@ a:hover {
#sidebar {
float: left;
width: 220px;
/* border: 1px solid;*/
padding-left: 20px;
top 0;
right 0;
Expand All @@ -58,7 +52,6 @@ a:hover {
padding-right: 30px;
background-repeat: no-repeat;
background-position: top left;
border-top: 1px solid #ccc;
padding-top: 15px;
max-width: 700px;
}
Expand All @@ -76,7 +69,6 @@ a:hover {
margin-top: 25px;
font-size: 16px;
padding-bottom: 10px;
border-bottom: 1px solid #ccc;
}
#sidebar li {
list-style-type: none;
Expand Down
1 change: 0 additions & 1 deletion views/index.tt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<div id="text">
<h1>Welcome to the <a href="/">Perl TV</a></h1>
<% INCLUDE incl/embed.tt %>

<h2><a href="/v/<% video.path %>"><% video.title %></a></h2>
Expand Down
8 changes: 6 additions & 2 deletions views/layouts/main.tt
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@
<div id="page">
<div id="content">
<% content %>

</div>

<div id="sidebar">
<h1><a href="/">Perl TV</a></h1>
<ul id="sidebar-items">
<li>
<% INCLUDE incl/thumbnail.tt %>
Expand All @@ -27,9 +29,11 @@
<li><a href="http://videos.missbarbell.co.uk/">2006 and 2007 Perl event videos</a></li>
</ul>

<% IF show_toggles %>
<h3>Toggles</h3>
<button id="show_date">date</button>
<button id="show_featured">featured</button>
<% END %>

<h3>Featured videos</h3>
<a href="/atom.xml"><img src="/images/feed-icon32.png" /></a><br>
Expand All @@ -54,11 +58,11 @@
</div>
</div>


<div id="footer">
<a href="https://github.com/szabgab/perltv.org">Source code</a> | <a href="/legal">Legal</a> | <a href="/daily.atom">RSS</a> | <a href="http://perlmaven.com/">Perl programming</a> | <a href="/about">About</a>
<a href="https://github.com/szabgab/perltv.org">Source code</a> | <a href="/legal">Legal</a> | <a href="/atom.xml">RSS</a> | <a href="http://perlmaven.com/">Perl programming</a> | <a href="/about">About</a>
</div>


<% INCLUDE incl/statistics.tt %>
</body>
</html>
Expand Down
1 change: 0 additions & 1 deletion views/list.tt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<div id="text">
<h1>Welcome to the <a href="/">Perl TV</a></h1>
Total <% videos.size %><br>

<% IF tag %>
Expand Down
3 changes: 1 addition & 2 deletions views/page.tt
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<div id="text">
<h1>Welcome to the <a href="/">Perl TV</a></h1>
<h1><% video.title %></h1>
<% INCLUDE incl/embed.tt %>

<% IF video.language %>
This video is in <b><% video.language_in_english %>.</b>
<% END %>

<h1><a href="/v/<% video.path %>"><% video.title %></a></h1>
Length: <% video.length %> <a href="/source/<% video.source %>"><% video.source_name %></a><br>
<% INCLUDE incl/speaker.tt %>
<br>
Expand Down

0 comments on commit ebbbdf6

Please sign in to comment.