Skip to content

Instantly share code, notes, and snippets.

View saurabhnemade's full-sized avatar
🧑‍🚀
Building Awesome Software Ideas.

Saurabh Nemade saurabhnemade

🧑‍🚀
Building Awesome Software Ideas.
View GitHub Profile
"publishConfig": {
"registry": REGISTRY_URL_HERE
}
{
"packages": [
"packages/*"
],
"version": "0.0.0",
"npmClient": "yarn",
"useWorkspaces": true
}
import React from 'react';
import logo from './logo.svg';
import './App.css';
import { Button } from 'ui-components';
import { formatDate } from 'common-utils';
function App() {
return (
<div className="App">
<div>
{
"name": "product-one",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
"@testing-library/user-event": "^7.1.2",
"react": "^16.13.1",
"react-dom": "^16.13.1",
export const formatDate = (date) => {
var d = new Date(date),
month = '' + (d.getMonth() + 1),
day = '' + d.getDate(),
year = d.getFullYear();
if (month.length < 2)
month = '0' + month;
if (day.length < 2)
day = '0' + day;
import React from 'react'
const buttonStyle = {
padding: '10px 20px'
};
const Button = (props) => {
return (
<button
className="btn btn-default"
{
"name": "root",
"private": true,
"workspaces": [
"packages/*"
],
"devDependencies": {
"lerna": "^3.20.2"
}
}
@saurabhnemade
saurabhnemade / disable-autoboot-on-lid-open.sh
Created April 3, 2020 18:29
Disabling and enabling auto boot on lid open macbook
#!/bin/bash
sudo nvram AutoBoot=%00
@saurabhnemade
saurabhnemade / cuda_10.0_installation_on_Ubuntu_18.04
Created November 1, 2019 08:58 — forked from Mahedi-61/cuda_11.8_installation_on_Ubuntu_22.04
Cuda 10.0 complete installation procedure for ubuntu 18.04 LTS
#!/bin/bash
## This gist contains step by step instructions to install cuda v10.0 and cudnn 7.5 in Ubuntu 18.04
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
###
@saurabhnemade
saurabhnemade / createStore.js
Created August 13, 2019 04:40
Dynamic Root Reducer - Final
import { createStore as _createStore, combineReducers } from 'redux';
import get from 'lodash/get';
import set from 'lodash/set';
const dynamicActionGenerator = () => {
return '@@TEST-REDUCER-VALIDITY/' + Math.random().toString(36).substring(7).split('').join('\\');
};
const isValidReducer = (reducer, throwError = false) => {