Skip to content

Instantly share code, notes, and snippets.


ararog ararog

  • Brazil
View GitHub Profile
ararog / defi.json
Last active Jul 14, 2021
DeFi platform products descriptor
View defi.json
"name": "Uniswap USDT-USDC",
"type": "farm|pool|vault|single-vault",
"contractAddress": "",
"platform": "Uniswap",
"provider": "Yield Aggregator",
"startBlock": 1111000,
"endBlock": 2121210,
"status": "Active|Retired|Paused",
"dateRetired": "05/05/2021 01:01:01"

Keybase proof

I hereby claim:

  • I am ararog on github.
  • I am ararog ( on keybase.
  • I have a public key ASCAsRnWCcKlMxhKQfcJ9fNMHsJQovIKFoDRS_UoAlB3Dgo

To claim this, I am signing this object:

ararog / plot1.jl
Last active Nov 26, 2015
Sample code that ilustrastes how plotting is done with Julia programming language.
View plot1.jl
# Installing and loading libraries if needed
using Gadfly
using DataFrames
using DataFramesMeta
using ZipFile
using HTTPClient.HTTPC
# Read computer available memory
#available_memory = memory.limit()
ararog /
Created Oct 23, 2014
MessagePack converter for retrofit
package br.eti.faces.retrofit.converter;
import org.msgpack.MessagePack;
import org.msgpack.packer.Packer;
import org.msgpack.unpacker.Unpacker;
import java.lang.reflect.Type;
View nginx for websockets
events {
worker_connections 4096; ## Default: 1024
http {
upstream backend {
server web1:3000;
server web2:3000;
server web3:3000;
View itranslate.go
package main
import (
ararog / helpers.js
Last active Dec 30, 2015
Javascript version of Days360 excel function.
View helpers.js
function days360(initialDate, currentDate) {
var dateA = initialDate;
var dateB = currentDate;
var dayA = dateA.getDate();
var dayB = dateB.getDate();
ararog / DateTimeExtensions.cs
Created Dec 2, 2013
A C# version of Days360 excel function.
View DateTimeExtensions.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Project.Helpers
public static class DateTimeExtensions
public static int Days360(this DateTime? date, DateTime? initialDate)
ararog / site_checker.ps1
Created Nov 5, 2013
A powershell script that can be used to check if a site is up and running, full description can be found at:
View site_checker.ps1
function Show-MessageBox ($title, $msg) {
[System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null
[Windows.Forms.MessageBox]::Show($msg, $title, [Windows.Forms.MessageBoxButtons]::OK, [System.Windows.Forms.MessageBoxIcon]::Warning, [System.Windows.Forms.MessageBoxDefaultButton]::Button1, [System.Windows.Forms.MessageBoxOptions]::DefaultDesktopOnly) | Out-Null
[string] $url = ''
[net.httpWebRequest] $req = [net.webRequest]::create($url)
$req.Method = "HEAD"
ararog / TransformXml.groovy
Created Nov 5, 2013
A tool to apply a xml stylesheet into a source file and output the styled version to another file.
View TransformXml.groovy
import javax.xml.transform.TransformerFactory
def cli = new CliBuilder( usage: 'groovy TransformXml.groovy -h -i inputfile -o output -x xsltfile...')
cli.h(longOpt:'help', 'usage information')
cli.i(argName:'input', longOpt:'input', args:1, required:true, type:GString, 'Directory/file for input')
cli.o(argName:'output', longOpt:'output', args:1, required:true, type:GString, 'Direcoty/file for output')
cli.x(argName:'xsltfile', longOpt:'xsltfile', args:1, required:true, type:GString, 'The transformation file')