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
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
int array[5] = {5,123,5,9,1}; | |
int temp = 0; | |
for(int i=0;i<5;i++) |
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
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
string sentence = "mom wow mom"; | |
string revword = ""; | |
for(int x = sentence.length(); x >= 0; x--) { | |
string letter = sentence.substr(x,1); | |
revword += letter; |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC5MZiT4Hgsi0w1YPWtG4AAJiu1jiK3uMFeTuXX40jpR3JVIsJVXzZYRvZe+ajoo70/JC0o+af7KhSKUF/uiJwo6BWkf0wg8kt3ADo3UXM2pl+1YV5Z2AyUd1tShe/j1DsQkUjSxhKH19cU2SC/VgF5VxOvSeGyPcfp5JSv1gXMldWhPgKFfCiONpRnGB0Li7ubq1fPuRG07kl+1hHTzcoq2eVFwnTAQYd05MUEJU94E/YqtbdNmtRUpmYcybfLLV1p/sgFVyi6ZD+O06nCz2GKOEsv3BHxdFMgcsvZxlO7zNWDB8cwgvAN8gl7y0JcD79RTmbFdAdIekvFPHqGfuPH mcanz@new-host.home |
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 by DBIx::Class::Schema::Loader v0.05003 @ 2013-01-12 16:33:08 | |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ojvEFzorUIClHUA4Nj9p3A | |
use Dancer::Plugin::Passphrase; | |
sub check_password | |
{ | |
my $self = shift; | |
my $password = shift; |
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
plugins: | |
DBIC: | |
balsa_skylight: | |
dsn: "dbi:mysql:database=balsa_skylight" | |
schema_class: Balsa::Skylight::Schema | |
user: "rwuser" | |
pass: "TheP4ssword" | |
options: | |
RaiseError: 1 | |
PrintError: 1 |
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 Balsa::Skylight::API::V1::Login; | |
use Dancer ':syntax'; | |
use Dancer::Plugin::REST; | |
use Dancer::Plugin::Passphrase; | |
use Dancer::Plugin::Auth::RBAC::Credentials::DBIC; | |
use Data::Printer; | |
set serializer => 'JSON'; | |
prefix '/api/v1'; |
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
# in your app code | |
my $auth = auth($login, $password); | |
if ($auth) { | |
# login successful | |
} |
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
<html> | |
<! An example of a script that contains a function to validate textboxes> | |
<head> | |
<title> JavaScript - Form-Validation</title> | |
<script> | |
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>Mike Canzoneri</title> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> | |
<style type="text/css"> | |
body { | |
background: #fff; | |
font-family: Helvetica, Verdana, Arial, sans-serif; | |
line-height: 1.2em; |
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/perl | |
use overload q(<) => sub {}; | |
my %h; | |
for (my $i=0; $i<50000; $i++) { | |
$h{$i} = bless [ ] => 'main'; | |
print STDERR '.' if $i % 1000 == 0; | |
} |