Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
👨🏻‍💻

Saurav Kumar sauravtom

💭
👨🏻‍💻
View GitHub Profile
View SauravCustomNode.node.ts
import { IExecuteFunctions } from 'n8n-core';
import {
INodeExecutionData,,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import * as http from 'http'
View n8n_env
# Folder where data should be saved
DATA_FOLDER=/root/n8n/
# The top level domain to serve from
DOMAIN_NAME=example.com
# The subdomain to serve from
SUBDOMAIN=n8n
# DOMAIN_NAME and SUBDOMAIN combined decide where n8n will be reachable from
View n8n_setup
version: "3"
services:
traefik:
image: "traefik"
command:
- "--api=true"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
@sauravtom
sauravtom / word_count.exs
Last active Apr 22, 2019
Alchemist Challenge #2
View word_count.exs
#https://alchemist.camp/episodes/word-count
#filename = String.trim IO.gets "file to count word's from: "
filename = IO.gets("Select file: ") |> String.trim()
choice = IO.gets "What would you like to count ? [lines, words, characters] \n"
case choice |> String.trim() do
"words" -> IO.puts "you chose words"
#words = (File.read!(filename), ~r{\w}) |> String.split()
@sauravtom
sauravtom / guessing_game.exs
Created Apr 22, 2019
Alchemist Challenge #1
View guessing_game.exs
defmodule GuessingGame do
# guess between a low number and a high number - > guess the middle
#tell the user the guess
# if user say yes -> game over
# if bigger
# if smaller
# anything else
# elixr allows for multiple definitions of the same functions
def guess(a, b) when a > b do
View cdm.sol
pragma solidity ^0.4.25;
contract edm {
string public message;
constructor(string initMessage) public {
message = initMessage;
}
function update(string newMessage) public {
message = newMessage;
}
View keybase.md

Keybase proof

I hereby claim:

  • I am sauravtom on github.
  • I am saurav (https://keybase.io/saurav) on keybase.
  • I have a public key whose fingerprint is 71E3 6A60 D3C0 3401 7D77 9363 652D 9E81 9FD6 F660

To claim this, I am signing this object:

View test-ethers.js
//link to smart contract https://ethfiddle.com/Q4mg9xHlzR
let address = "0x03b6b93cf23f04a32aa94fe1ef96cae383900ea7";
let abi = [
{
"constant": false,
"inputs": [
{
"name": "newMessage",
View AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.jasonette.seed">
<application
android:name=".Launcher.Launcher"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
View bot_config.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import time
sys.path.append(os.path.join(sys.path[0], 'src'))
from check_status import check_status
from feed_scanner import feed_scanner
You can’t perform that action at this time.