Skip to content

Instantly share code, notes, and snippets.

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

Nitish Kumar Singh nitishk72

🏠
Working from home
View GitHub Profile
<template>
<div>
<input type="number" v-model="count" placeholder="Number" ref="counter" />
<button @click="addRow">Add</button>
<table>
<div v-for="index in rowsCount" :key="index">
<tr>
<td>
<input placeholder="Name" :ref="'name' + index" />
</td>
@nitishk72
nitishk72 / remove-node-modules.md
Created July 27, 2020 10:56 — forked from lmcneel/remove-node-modules.md
How to remove node_modules after they have been added to a repo

How to remove node_modules

  1. Create a .gitignore file in the git repository if it does not contain one

touch .gitignore 2. Open up the .gitignore and add the following line to the file

node_modules 3. Remove the node_modules folder from the git repository

void main(){
print('Comment Lesson'); // This line has code as well as comment.
}
[
{
"_id": "5e664e638f8ab1de98cf8e57",
"picture": "http://placehold.it/32x32",
"name": "Velasquez Clemons",
"about": "Aliquip culpa do irure eu exercitation commodo. Fugiat duis excepteur sint nostrud nostrud sint reprehenderit laboris. Enim elit enim tempor excepteur velit magna exercitation culpa enim culpa excepteur pariatur. Voluptate incididunt Lorem voluptate nisi reprehenderit nisi.\r\n"
},
{
"_id": "5e664e63a87f0e873670344c",
"picture": "http://placehold.it/32x32",
import 'package:flutter/material.dart';
void main() {
runApp(new MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
[
{
"sourcePath": "lib/src/material/floating_action_button.dart",
"sourceLine": 122,
"id": "material.FloatingActionButton.1",
"serial": "1",
"package": "flutter",
"library": "material",
"element": "FloatingActionButton",
"file": "material.FloatingActionButton.1.dart",
@nitishk72
nitishk72 / index.html
Created July 22, 2019 12:07
Theme Switch using CSS only
<!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>Document</title>
<link rel="stylesheet" href="style.css">
</head>
import 'package:flutter/material.dart';
// Usage
// Navigator.push(context,AppScaleRoute(widget: DetailScreen(),),);
class AppScaleRoute extends PageRouteBuilder {
final Widget widget;
AppScaleRoute({this.widget})
: super(pageBuilder: (BuildContext context, Animation<double> animation,
Animation<double> secondaryAnimation) {
return widget;
import 'package:flutter/material.dart';
// Usage
// Navigator.push(context,AppSlideRightRoute(widget: DetailScreen(),),);
class AppSlideRightRoute extends PageRouteBuilder {
final Widget widget;
AppSlideRightRoute({this.widget})
: super(
pageBuilder: (BuildContext context, Animation<double> animation,
Animation<double> secondaryAnimation) {