Skip to content

Instantly share code, notes, and snippets.

@VitalJeevanjot
VitalJeevanjot / Moving object.fs
Last active November 8, 2023 03:17
Moving object with Bounds
namespace FabulousCanvasImageMove
open System
open Avalonia
open Avalonia.Layout
open Avalonia.Controls
open Avalonia.Controls.Shapes
open Fabulous
open Fabulous.Avalonia
@VitalJeevanjot
VitalJeevanjot / FL.sol
Created October 21, 2020 15:30
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.5.12+commit.7709ece9.js&optimize=false&gist=
pragma solidity ^0.5.0;
pragma experimental ABIEncoderV2;
import "./dydxbase.sol";
import "./ICallee.sol";
import {IERC20 as ERC20} from "./IERC20.sol";
import "https://raw.githubusercontent.com/0xProject/0x-monorepo/development/contracts/utils/contracts/src/LibEIP712.sol";
import "./LibOrder.sol";
@VitalJeevanjot
VitalJeevanjot / Dockerfile
Created June 21, 2020 08:28
Plain Dockerfile that have quasar and cordova frameworks.
FROM node:10
WORKDIR /app
RUN apt-get update
RUN npm install -g http-server live-server @quasar/cli
@VitalJeevanjot
VitalJeevanjot / Dockerfile
Created June 21, 2020 00:31
Dockerfile includes, Android build tools, Quasar and Cordova Frameworks, tools for windows development in same image etc.
FROM quay.io/bitriseio/bitrise-base:alpha
ENV ANDROID_HOME /opt/android-sdk-linux
# ------------------------------------------------------
# --- Install required tools
RUN apt-get update -qq
apiVersion: v1
kind: ConfigMap
metadata:
name: uni-mastodon
labels:
app: uni-mastodon
data:
REDIS_HOST: "redis.mastodon-genievot.svc.cluster.local"
REDIS_PORT: "6397"
DB_HOST: "postgresql.mastodon-genievot.svc.cluster.local"
@VitalJeevanjot
VitalJeevanjot / mastodon
Created December 19, 2019 15:12
mastodon instace nginx confs
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=CACHE:10m inactive=7d max_size=1g;
server {
if ($host = blog.funcoin.io) {
return 301 https://$host$request_uri;
{
bounce_fees: { base: 10000 },
init: `{
$small_cup = 100000;
$medium_cup = 250000;
$large_cup = 500000;
$your_address = ''; // Enter your obyte address form GUI wallet.
}`,
messages: {
cases: [
['autonomous agent', {
messages: [
{
app: 'data',
payload: {
feed_name: "{trigger.data.feed_name}",
feed_value: "{trigger.data.feed_value}"
}
},
{
['autonomous agent', {
messages: [
{
app: 'data_feed',
payload: {
"{trigger.data.feed_name}": "{trigger.data.feed_value}"
}
}
]
}]
['autonomous agent', {
messages: [
{
app: 'data',
payload: {
feed_name: 'waterfall',
feed_value: "is Beautiful"
}
},
{