Skip to content

Instantly share code, notes, and snippets.

openapi: 3.0.0
info:
title: Test API
version: 0.0.1
servers:
- url: 'localhost:3000/api'
description: Local API URL.
paths:
/test:
post:
@awsum
awsum / ERC20Interface.sol
Created December 3, 2018 18:10
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.21+commit.dfe3193c.js&optimize=false&gist=
pragma solidity ^0.4.21;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
*/
interface ERC20 {
function balanceOf(address who) external view returns (uint256);
function transfer(address to, uint256 value) external returns (bool);
}
swagger: "2.0"
info:
version: "1"
title: "Admin notification preferences"
consumes:
- "application/json"
produces:
- "application/json"
paths:
/notifications/:account-id:
swagger: "2.0"
info:
version: "1"
title: "User KYC"
consumes:
- "application/json"
produces:
- "application/json"
paths:
/users:
#include <stdio.h>
const int GRID_SIZE = 9;
void print(int grid[GRID_SIZE][GRID_SIZE]) {
for (int i=0;i<GRID_SIZE;i++) {
for (int j=0;j<GRID_SIZE;j++) {
printf("%d", grid[i][j]);
if (j < GRID_SIZE-1) {
printf(" ");
if (today.getDayOfYear() == 0x100) {
celebrate();
}
------------------------------------
if (today.getDayOfYear() == 0x100) {
printf("Поздравляю, %s!", "%username%");
while (!isDead()) {
celebrate();