This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created with JetBrains WebStorm. | |
* User: ynonperek | |
* Date: 8/21/12 | |
* Time: 9:36 AM | |
* To change this template use File | Settings | File Templates. | |
*/ | |
(function() { | |
var Score = function() { | |
this.value = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<title>Cool Web Site</title> | |
<meta name="viewport" content="width=device-width" /> | |
<style> | |
label { | |
min-width: 100px; | |
display: inline-block; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<title>Ultimate War</title> | |
</head> | |
<body> | |
<h1>Score</h1> | |
<div id="score"></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created with JetBrains WebStorm. | |
* User: ynonperek | |
* Date: 8/28/12 | |
* Time: 2:38 PM | |
* To change this template use File | Settings | File Templates. | |
*/ | |
(function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use v5.14; | |
my %couples = ( | |
Yehuda => 'Ninet', | |
Yossi => 'Jager', | |
Bibi => 'Sarah', | |
Brad => 'Jeffiner', | |
); | |
$couples{Brad} = 'Angelina'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created with JetBrains WebStorm. | |
* User: ynonperek | |
* Date: 9/2/12 | |
* Time: 3:01 PM | |
* To change this template use File | Settings | File Templates. | |
*/ | |
(function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use v5.14; | |
use warnings; | |
use Data::Dumper; | |
my $people = []; | |
sub add_new_person { | |
my ( $name, $work, $tagline ) = @_; | |
push $people, { | |
name => $name, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package Anagram; | |
use Moose; | |
use v5.14; | |
# has means data member | |
has 'word', required => 1, is => 'ro', isa => 'Str'; | |
has 'normalized_word', lazy_build => 1, is => 'ro'; | |
# my means static | |
my @dictionary_words; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Transitions Demo</title> | |
<style> | |
body { overflow:hidden; border:0; margin:0;} | |
#container { | |
width:200%; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use v5.14; | |
my %files = map { length($_) => $_ } glob('*'); | |
my $count = shift; | |
foreach my $length (sort {$a <=> $b} keys %files) { | |
say $files{$length}; | |
--$count or last; | |
} |