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 strict'; | |
angular.module('foo', []) | |
.filter('substring', function() { | |
return function(str, start, end) { | |
return str.substring(start, end); | |
}; | |
}) |
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
#!/usr/bin/env perl | |
use Mojolicious::Lite; | |
push @{app->static->paths}, 'site/'; # File path | |
app->start('daemon'); | |
# Execute this script on terminal: perl daemon.pl | |
# Then, let's access to http://localhost:3000/*** |
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
#!/usr/bin/env perl | |
# Perl - Gmail IMAP Using OAuth 2.0 (XOAUTH2) | |
# I referred to: http://eatenbyagrue.org/tags/oauth/index.html Thank you. | |
use strict; | |
use warnings; | |
use utf8; | |
use Mail::IMAPClient; |
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>BGColors Sample</title> | |
<script type="text/javascript" src="bg-colors.js"></script> | |
<script type="text/javascript"> | |
function sampleDraw(){ | |
new BGColors(['red','green','blue','yellow'], document.getElementById('sample')); | |
} | |
</script> |
NewerOlder