Skip to content

Instantly share code, notes, and snippets.

View inovizz's full-sized avatar
🐍
Focusing

Sanchit Balchandani inovizz

🐍
Focusing
View GitHub Profile
const fs = require("fs");
const solc = require('solc')
let Web3 = require('web3');
let web3 = new Web3();
web3.setProvider(new web3.providers.HttpProvider('http://localhost:8545'));
var input = {
'strings.sol': fs.readFileSync('strings.sol', 'utf8'),
'StringLib.sol': fs.readFileSync('StringLib.sol', 'utf8'),
'use strict';
const DataStore = artifacts.require('../contracts/DataStore.sol');
const Organisation = artifacts.require('../contracts/Organisation.sol');
const sha3 = require('solidity-sha3').default;
contract('Organisation', function(accounts) {
let bookStore, memberStore, org;
@inovizz
inovizz / bobp-python.md
Created December 8, 2017 09:17 — forked from sloria/bobp-python.md
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
version: '3.8'
services:
redis:
image: redis:latest
networks:
- main
ports:
- "6379:6379"
@inovizz
inovizz / gist:afaecf9b895f04ce17c6fd2e9d257716
Created September 9, 2023 08:23
sample-python-interview-transcript
Python Technical Interview Transcript
-------------------------------------
Interviewer: Good morning! I'm Alex, a senior software engineer here at TechCorp. Can you briefly introduce yourself?
Candidate: Hi Alex! I'm Jamie. I've been working with Python for about 5 years, primarily in web development and data analysis. I have experience with various Python frameworks and libraries such as Django, Flask, and Pandas.
Interviewer: Great to meet you, Jamie. Let's dive into some technical questions. Can you explain the difference between a list and a tuple in Python?