View keybase.md

Keybase proof

I hereby claim:

  • I am vamsiikrishna on github.
  • I am vamsi (https://keybase.io/vamsi) on keybase.
  • I have a public key ASBxPOLYJb1ePgbF6wWQ_c821r9fADPnFtjiWvDezGed8Ao

To claim this, I am signing this object:

View splat_demo.php
function add($a, $b, $c) {
return $a + $b + $c;
}
$arr = [1,2,3];
echo add(...$arr);
//6
View project_euler_2.php
<?php
list($a, $b) = [1,1];
$total = 0;
while($a <= 4000000) {
if($a % 2 === 0) {
$total += $a;
}
list($a, $b) = [$b, $a+$b];
}
echo $total;
View rbenv-howto.md

Setting up and installing rbenv, ruby-build, rubies, rbenv-gemset, and bundler

This guide enables you to install (ruby-build) and use (rbenv) multiple versions of ruby, isolate project gems (gemsets and/or bundler), and automatically use appropriate combinations of rubies and gems.

TL;DR Demo

# Ensure system is in ship-shape.
aptitude install git zsh libssl-dev zlib1g-dev libreadline-dev libyaml-dev
View fact_closure.php
<?php
$factorial = function($n) use (&$factorial) {
if($n <= 1)
return 1;
else
return $n * $factorial($n -1);
};
echo $factorial(5).PHP_EOL;
View gist:636100e436db5e78774e
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
View nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
View API.md

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

View gist:72abcb2f5bd2221e05b4
:] :) :D :/ >[ :p :o >_>
It also supports the word syntax:
:happy: :aw: :cool: :kiss: :meh: :mmf: :heart:';
View gist:57be950134173f92161c
### Keybase proof
I hereby claim:
* I am vamsiikrishna on github.
* I am vamsi (https://keybase.io/vamsi) on keybase.
* I have a public key whose fingerprint is 959F DD2F ED3E 02DF F052 C407 F909 6810 9585 8817
To claim this, I am signing this object: