Skip to content

Instantly share code, notes, and snippets.

View nandiraju's full-sized avatar
:octocat:
Geeking

Srikanth nandiraju

:octocat:
Geeking
View GitHub Profile
@nandiraju
nandiraju / SimpleChat.jsx
Created February 19, 2025 03:38
Simple Chat UI
'use client';
import { useState, useEffect, useRef } from "react";
export default function SimpleChat() {
const [messages, setMessages] = useState([
{ text: "Hello! How can I help you?", sender: "bot" }
]);
const [input, setInput] = useState("");
const chatRef = useRef(null);
@nandiraju
nandiraju / review-checklist.md
Created February 2, 2022 05:24 — forked from bigsergey/review-checklist.md
Front-end Code Review Checklist

Review checklist

General

  1. Does the code work?
  2. Description of the project status is included.
  3. Code is easily understand.
  4. Code is written following the coding standarts/guidelines (React in our case).
  5. Code is in sync with existing code patterns/technologies.
  6. DRY. Is the same code duplicated more than twice?
void main() {
//print(_showDateFormat());
var oneTask = new Task("A", _genId());
_addToMap(oneTask);
_addToList(oneTask);
oneTask = new Task("B", _genId());
_addToMap(oneTask);
_addToList(oneTask);
{
"files.associations": {
"*.js": "javascriptreact"
},
"prettier.jsxBracketSameLine": true,
"beautify.ignore": ["**/*.js", "**/*.jsx"],
"[javascript]": {
"editor.formatOnSave": true
},
"prettier.disableLanguages": ["javascript"],
@nandiraju
nandiraju / AssetRegistry.sol
Created January 16, 2019 22:07
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.24;
contract AssetRegistry{
// Vairables
struct oneasset{
string name;
uint timestamp;
}
@nandiraju
nandiraju / nandiraju
Created January 19, 2017 19:12
nandiraju
Verifying that "nandiraju.id" is my Blockstack ID. https://onename.com/nandiraju
@nandiraju
nandiraju / camera.html
Created September 6, 2016 14:14 — forked from dhavaln/camera.html
Phonegap Camera Capture Example
<!DOCTYPE html>
<html>
<head>
<title>Capture Photo</title>
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1"/>
<script type="text/javascript" charset="utf-8" src="js/phonegap.js"></script>
<script type="text/javascript" charset="utf-8">
var pictureSource; // picture source
var destinationType; // sets the format of returned value
@nandiraju
nandiraju / AWSLambdaSimpleSMS.js
Created May 5, 2016 21:47 — forked from stevebowman/AWSLambdaSimpleSMS.js
AWS Lambda Function to send an SMS message via the Twilio API
console.log('Loading event');
// Twilio Credentials
var accountSid = '';
var authToken = '';
var fromNumber = '';
var https = require('https');
var queryString = require('querystring');
@nandiraju
nandiraju / multi_dashboard.html
Created November 9, 2015 21:39 — forked from battlehorse/multi_dashboard.html
A Google Charts dashboard setup where multiple datatables are used to power a single 'logical' dashboard.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>
Google Visualization API Sample
</title>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load('visualization', '1', {packages: ['controls']});
/*global module:false*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
meta: {
banner: '/*! <%= pkg.name || pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
'<%= pkg.homepage ? "* " + pkg.homepage + "\n" : "" %>' +