# Get the latest package info
sudo apt-get update
# Fetch files for managing vendor source
sudo apt-get install software-properties-common -y
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
sub fullname { | |
my $self = shift; | |
return $self->firstname . ' ' . $self->lastname; | |
} |
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
mkdir -p dbix-proj/{lib,scripts,t} && \ | |
touch dbix-proj/{cpanfile,t/basic.t,scripts/{schema.sql,make_schema.pl}} |
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
function toCamelCase(str) { | |
//get the words from the string, would use \w but it includes underscores. | |
var words = str.match(/([a-zA-Z0-9]+)/g); | |
words = words.map(function(word, i){ | |
//ignore the first word otherwise its first letter will be capitalised. | |
if(i == 0) return word; | |
//capitalise first letter in each word and concatenate it onto the rest of itself. E.g. C + ode |
NewerOlder