Skip to content

Instantly share code, notes, and snippets.

View lakshmananmurugesan's full-sized avatar

Lakshman lakshmananmurugesan

View GitHub Profile
@lakshmananmurugesan
lakshmananmurugesan / webai-simple-image-classify.html
Created July 6, 2025 15:54
Web AI - Simple image classification
<!DOCTYPE html>
<html>
<head>
<title>Web AI with TensorFlow.js</title>
</head>
<body>
<h1>Image Classifier (MobileNet)</h1>
<input type="file" accept="image/*" onchange="loadImage(event)">
<br><br>
<img id="inputImage" width="300"/>
// this is comment
/*
this is multi
level
comment
*/
document.write("print this");
// window.alert(5 + 6);
console.log('in console');
var a, b, c;
Initial:
-------
<?xml version="1.0" encoding="UTF-8"?>
<aiml version="2.0">
<category>
<pattern>hi</pattern>
<template>hello there..</template>
</category>
</aiml>
Rspec::
rspec
rspec spec/models
rspec spec/controllers/accounts_controller_spec.rb
rails generate rspec:model
/factories /support /models /controllers /features /views /mailers /routing /helpers
Model spec - behavior of model
require "rails_helper"