Skip to content

Instantly share code, notes, and snippets.

View nairihar's full-sized avatar
😎
Always busy

Nairi Harutyunyan nairihar

😎
Always busy
View GitHub Profile
@nairihar
nairihar / index.html
Created March 24, 2020 15:33
JavaScript Armenia | Tic Tac Toe | LIVE session #2 | Building and discussing a simple Tic Tac Toe game via HTML, CSS, and JavaScript !!!
<html>
<head>
<title>Tic Tac Toe</title>
<link rel="stylesheet" type="text/css" href="./style.css" />
</head>
<body>
<div id="Board"></div>
</body>
<script src="./script.js"></script>
</html>
@nairihar
nairihar / LiveCode.js
Last active December 22, 2021 02:49
JavaScript Armenia | Triangle patterns | LIVE session #1 | Building and discussing 4 triangles via JavaScript !!!
/*
*
**
***
****
*****
*/
@nairihar
nairihar / index.js
Created November 7, 2018 19:01
Running across NPM
function isString(val) {
return typeof val === 'string';
}
function isNumber(val) {
return typeof val === 'number';
}
module.exports = {
isString,
@nairihar
nairihar / package.json
Last active November 7, 2018 18:24
Running across NPM
{
"name": "library-like-lodash-for-article",
"version": "1.0.0",
"description": "My custom library for article.",
"main": "index.js",
"dependencies": {},
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
@nairihar
nairihar / index.js
Created November 7, 2018 17:49
Running across NPM
function isString(val) {
return typeof val === 'string';
}
module.exports = {
isString,
};
@nairihar
nairihar / package.json
Created July 20, 2018 20:35
Setup React App - Organizing React Application Part 1
{
"name": "react-application",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "webpack-dev-server --open --config webpack.dev.js",
"build": "webpack --config webpack.prod.js"
},
"keywords": [],
@nairihar
nairihar / .babelrc
Created July 20, 2018 20:19
Setup React App - Organizing React Application Part 1
{
"presets":[ "env", "react" ]
}
@nairihar
nairihar / index.html
Created July 20, 2018 20:17
Setup React App - Organizing React Application Part 1
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Setup React App - Organizing React Application Part 1</title>
</head>
<body>
<div id="root"></div>
</body>
</html>
@nairihar
nairihar / index.js
Last active July 26, 2018 13:32
Setup React App - Organizing React Application Part 1
import React from 'react';
import { render } from 'react-dom';
const App = () => <h1>Hello World</h1>;
render(<App />, document.getElementById('root'));
@nairihar
nairihar / webpack.prod.js
Last active July 20, 2018 19:59
Setup React App - Organizing React Application Part 1
const webpack = require('webpack');
const merge = require('webpack-merge');
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
const common = require('./webpack.common.js');
module.exports = merge(common, {
mode: 'production',
plugins: [
new webpack.SourceMapDevToolPlugin({
filename: '[name].js.map',