Skip to content

Instantly share code, notes, and snippets.

View RAMTO's full-sized avatar
🦉

Martin Dobrev RAMTO

🦉
View GitHub Profile
@RAMTO
RAMTO / hardhat.config.js
Last active August 18, 2022 06:05
Hardhat configuration file
require('@nomicfoundation/hardhat-toolbox');
require('dotenv').config();
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
version: '0.8.9',
settings: {
optimizer: {
enabled: true,
@RAMTO
RAMTO / settings.json
Created August 18, 2022 05:49
VSCode settings file
{
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[solidity]": {
"editor.defaultFormatter": "JuanBlanco.solidity"
}
}
@RAMTO
RAMTO / .editorconfig
Created August 18, 2022 05:42
Editor config settings file
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
{
"arrowParens": "avoid",
"bracketSpacing": true,
"printWidth": 100,
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all",
"useTabs": false
}
@RAMTO
RAMTO / .gitignore
Created October 1, 2020 06:50 — forked from santoshpy/.gitignore
gitignore file for django project
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging

FWIW: I'm not the author of the content presented here (which is an outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

Display Docker version and info

docker --version

docker info

Execute Docker image

docker run hello-world

@RAMTO
RAMTO / iris-tensorflow-js.js
Created June 19, 2018 18:55 — forked from learncodeacademy/iris-tensorflow-js.js
Solving Iris with Tensorflow.js and Iris JSON dataset
import * as tf from "@tensorflow/tfjs"
import "@tensorflow/tfjs-node"
import iris from "./iris.json"
import irisTesting from "./iris-testing.json"
// convert/setup our data
const trainingData = tf.tensor2d(iris.map(item => [
item.sepal_length, item.sepal_width, item.petal_length, item.petal_width,
]))
const outputData = tf.tensor2d(iris.map(item => [
@RAMTO
RAMTO / package.json
Created June 7, 2016 17:42
npm-starter-pack
{
"name": "npm-test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"gulp": "./node_modules/.bin/gulp --help",
"test": "./node_modules/.bin/lite-server --help"
},
"keywords": [],