I hereby claim:
- I am vamsiikrishna on github.
- I am vamsi (https://keybase.io/vamsi) on keybase.
- I have a public key ASDo12n_h6bo0pPX10EHjEjNmo-O1kHe1KGIGW8xN6tNfQo
To claim this, I am signing this object:
defmodule Zcex.PriceWorker do | |
use GenServer | |
def start_link(args) do | |
GenServer.start_link(__MODULE__, args, name: __MODULE__) | |
end | |
def init(state) do | |
schedule_price_fetch() | |
{:ok, state} |
I hereby claim:
To claim this, I am signing this object:
{ | |
"name": "Vamsi", | |
"description": "MY TEST POOL", | |
"ticker": "VAMSI", | |
"homepage": "https://github.com/vamsiikrishna/vamsipool" | |
} |
[alias] | |
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all | |
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all | |
lg = !"git lg1" |
I hereby claim:
To claim this, I am signing this object:
function add($a, $b, $c) { | |
return $a + $b + $c; | |
} | |
$arr = [1,2,3]; | |
echo add(...$arr); | |
//6 |
<?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; |
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.
# Ensure system is in ship-shape.
aptitude install git zsh libssl-dev zlib1g-dev libreadline-dev libyaml-dev
<?php | |
$factorial = function($n) use (&$factorial) { | |
if($n <= 1) | |
return 1; | |
else | |
return $n * $factorial($n -1); | |
}; | |
echo $factorial(5).PHP_EOL; |
<!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> |