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
| # Call REST API | |
| $SecurePassword = Get-Content httpbin_creds.txt | ConvertTo-SecureString -Key (1..16) | |
| $Username = "johnlopez" | |
| $cred = New-Object System.Management.Automation.PSCredential ($Username, $SecurePassword) | |
| Invoke-RestMethod -Uri "http://httpbin.org/basic-auth/$Username/password123456789" ` | |
| -Method Get -Credential $cred -ContentType "application/json" -Body $json |
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 com.sigag.scheduler.jobs; | |
| import io.reactivex.Observable; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.stereotype.Service; | |
| import java.math.BigDecimal; | |
| import java.text.DateFormat; |
Solido boilerplate
- Listen for .sol changes
- Compile
- Compile ABI export
- Hot reload webpack
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
| public initWallet = async () => { | |
| const local = localStorage ? localStorage.getItem("walletconnect") : null; | |
| if (local) { | |
| let session; | |
| try { | |
| session = JSON.parse(local); | |
| } catch (error) { | |
| throw error; |
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
| uint buyBookOffersCount; | |
| uint pairsAmountBuyPrices; | |
| // Contains a buy book order offers | |
| // dict[pairIndex, price, offerIndex] | |
| mapping (uint => mapping(uint => mapping(uint => Offer))) buyBookOffers; | |
| // TokenPairInfo eg ETH/PAX, ETH/PAX | |
| mapping (uint => TokenPairInfo) pairs; |
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
| <!-- Main --> | |
| <script lang="ts"> | |
| import Table from "./AccountingTable.svelte"; | |
| export let accountingGroupByPairs = {}; | |
| </script> | |
| <svelte:head> | |
| <link | |
| rel="stylesheet" |
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 { validate } from './Utils'; | |
| import { IMethodOrEventCall } from '../types'; | |
| import { SolidoContract } from '../core/SolidoContract'; | |
| export type TrackStateBy = 'polling' | 'storeUpdates' | 'push'; | |
| // TODO: Add to SolidoContract | |
| // subjects - RxJS subjects for methods |
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
| CREATE DEFINER=`root`@`localhost` PROCEDURE `calc_depreciacion_2`() | |
| BEGIN | |
| DECLARE finished INTEGER DEFAULT 0; | |
| DECLARE depre INTEGER DEFAULT 0; | |
| DECLARE valor_original DECIMAL(10,2); | |
| DECLARE porc_depreciacion DECIMAL(10,2); | |
| DECLARE codigo_cuenta VARCHAR(25); | |
| DECLARE estado INTEGER DEFAULT 0; | |
| DECLARE id_activo INTEGER DEFAULT 0; | |
| DECLARE fecha_compra DATE; |