Skip to content

Instantly share code, notes, and snippets.

View kissarat's full-sized avatar
🏠
Working from home

Taras Labiak kissarat

🏠
Working from home
View GitHub Profile
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "SurveyJS Library json schema",
"type": "object",
"properties": {
"pages": {
"type": "array",
"items": {
"$ref": "#/definitions/page"
}
@kissarat
kissarat / postman.js
Created November 3, 2018 14:55 — forked from labiak/postman.js
This is a script for applying changes to base Postman import file. Use node merge-postman.js <source> <target> Where <source> - is a base JSON import file for applying changes And <target> - file with new request to add to <source> file
/**
* This is a script for applying changes to base Postman import file.
* Use
* node merge-postman.js <source> <target>
* Where <source> - is a base JSON import file for applying changes
* And <target> - file with new request to add to <source> file
* @author Taras Labiak <taras.labiak@indeema.com>
* {@link https://indeema.com Indeema}
*/
pragma solidity ^0.4.24;
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(address _who) public view returns (uint256);
function transfer(address _to, uint256 _value) public returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
const symbols = [];
function quantify(data) {
for(const change of data) {
if (symbols.indexOf(change.symbol) < 0) {
symbols.push(change.symbol)
symbols.sort()
// console.log(change.symbol, symbols.join('\n'))
}
}
@kissarat
kissarat / remove-php-storm-2017.sh
Last active April 27, 2017 06:53 — forked from istepanov/gist:3950977
Remove PHPStorm settings from macOS 10.12.1 Sierra
#!/usr/bin/sh
rm -rf $HOME/Library/Preferences//PhpStorm201*
rm -rf $HOME/Library/Caches/PhpStorm201*
rm -rf $HOME/Library/Application\ Support/PhpStorm201*
rm -rf $HOME/Library/Logs/PhpStorm201*
@kissarat
kissarat / xcarchive2ipa
Created October 16, 2016 17:20 — forked from samma835/xcarchive2ipa
How to convert .xcarchive to .ipa
xcodebuild -exportArchive -exportFormat ipa -archivePath {PATH}/MyApp.xcarchive -exportPath ~/Desktop/MyApp.ipa
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Registration</title>
</head>
<body>
<header>
<h1>Registration</h1>