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
| { | |
| "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" |
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
| # 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() |
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 br.eti.faces.retrofit.converter; | |
| import org.msgpack.MessagePack; | |
| import org.msgpack.packer.Packer; | |
| import org.msgpack.unpacker.Unpacker; | |
| import java.io.ByteArrayOutputStream; | |
| import java.io.IOException; | |
| import java.lang.reflect.Type; |
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
| events { | |
| worker_connections 4096; ## Default: 1024 | |
| } | |
| http { | |
| upstream backend { | |
| server web1:3000; | |
| server web2:3000; | |
| server web3:3000; | |
| } |
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 main | |
| import ( | |
| "json"; | |
| "flag"; | |
| "fmt"; | |
| "http"; | |
| "os"; | |
| "io"; | |
| ) |
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 days360(initialDate, currentDate) { | |
| var dateA = initialDate; | |
| var dateB = currentDate; | |
| var dayA = dateA.getDate(); | |
| var dayB = dateB.getDate(); |
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
| 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) |
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 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 = 'http://www.saidosofa.com.br' | |
| [net.httpWebRequest] $req = [net.webRequest]::create($url) | |
| $req.Method = "HEAD" |
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
| import javax.xml.transform.TransformerFactory | |
| import javax.xml.transform.stream.StreamResult | |
| import javax.xml.transform.stream.StreamSource | |
| 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') |
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
| [CmdletBinding(DefaultParameterSetName="ComputerName")] | |
| param ( | |
| [Parameter(Mandatory = $FALSE, ParameterSetName="ComputerName", HelpMessage="Name of computer to check")] | |
| [String] | |
| $ComputerName | |
| ) | |
| Function InArray($element, $array, $position) { | |
| If($array.Count -eq 0) { |
NewerOlder