Skip to content

Instantly share code, notes, and snippets.

View Himujjal's full-sized avatar
🏠
Working from home

Himujjal Upadhyaya Himujjal

🏠
Working from home
View GitHub Profile
@Himujjal
Himujjal / module1.html
Created April 26, 2018 03:27
Medium article on HTML-components module 1 file
<h2>
<% props.prop1 %>
</h2>
@Himujjal
Himujjal / index1.html
Created April 26, 2018 03:24
Medium.com HTML Modules - 1
<div>
<h1>Hello World!</h1>
<div>
<% import(module1.html), props = {prop1:"Using HTML-modules!"}%>
</div>
</div>
@Himujjal
Himujjal / VectorAdditionGPU.js
Last active May 6, 2018 12:10
Vector Addition program for node-cl ()
const CL = require("node-cl");
const context = CL.getBestContext();
const queue = CL.createCommandQueue();
function VectorAdditionGPU (array1, array2) {
const kernel = CL.createKernel({
name: "vecadd",
args: [
{ arg: "A", type: "array", prop: array1 },
@Himujjal
Himujjal / guide-to-freelancing.md
Last active May 3, 2021 15:34
This guide intends to provide the process of learning Programming (Web and mobile) so that anyone willing to start with freelancing can get started
// importing electron
const electron = require('electron')
const url = require('url')
const path = require('path')
// app is the main app
// BrowserWindow is basically the window that loads your HTML file
const {app, BrowserWindow, ipcMain } = electron;
@Himujjal
Himujjal / a-simple-linear-regression.js
Last active November 27, 2017 06:04
Add the following to Creating table function and creating chart
import "../styles/a-simple-linear-regression.less";
// Start Writing Javascript below this line
import math from 'mathjs'
import FusionCharts from 'fusioncharts'
require("fusioncharts/fusioncharts.charts")(FusionCharts);
// This is where we will write the algorithms
const $ = (id) => document.getElementById(id),
cE = (ele) => document.createElement(ele),
@Himujjal
Himujjal / a-simple-linear-regression.ejs
Last active November 27, 2017 05:41
Linear Regression start
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>a-simple-linear-regression</title>
</head>
<body class="a-simple-linear-regression">
@Himujjal
Himujjal / index.ejs
Last active November 27, 2017 04:45
Setting up boilerplate for machine learning tutorial
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Machine Learning using JavaScript</title>
<style>
.index {text-align:center;}
</style>
@Himujjal
Himujjal / header.ejs:
Last active November 27, 2017 04:36
Settting up boilerplate for machine learning tutorial.
<div class="header">
<!--Start writing your HTML here-->
<p><a href="index.html">Go to Home Page</a></p>
<h1><%= title %></h1>
<hr/><hr>
</div>
@Himujjal
Himujjal / simple-regression-A.html
Last active November 24, 2017 17:06
Making a function which takes in an array and then creates a table out of it
<html>
<head>
<title>Simple Linear Regression</title>
</head>
<body style="text-align:center;">
<h1>Simple Linear Regression</h1>
<table id="original-dataset"></table>
</body>
<script src="simple-regression-A.js"></script>
</html>