Skip to content

Instantly share code, notes, and snippets.

View nsisodiya's full-sized avatar

Narendra Sisodiya nsisodiya

View GitHub Profile
@nsisodiya
nsisodiya / App.js
Created April 12, 2019 07:26
React Hooks code
function App() {
// Declare a new state variable, which we'll call "count"
var _useState = Object(react__WEBPACK_IMPORTED_MODULE_1__["useState"])(20),
_useState2 = Object(_Users_narendrasisodiya_rivigoCode_test_my_app_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__["default"])(_useState, 2),
count = _useState2[0],
setCount = _useState2[1];
return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
__source: {
fileName: _jsxFileName,
import React from "react";
import ReactDOM from "react-dom";
import { library } from "@fortawesome/fontawesome-svg-core";
import { FontAwesomeIcon as Icon } from "@fortawesome/react-fontawesome";
var faMyCarIcon = {
prefix: "fas",
iconName: "mycar",
icon: [
@nsisodiya
nsisodiya / car.xml
Last active February 7, 2019 20:25
<?xml version="1.0" encoding="iso-8859-1"?>
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<g>
<g>
<path d="M110.933,287.834c-23.526,0-42.667,19.14-42.667,42.667c0,23.526,19.14,42.667,42.667,42.667
c23.526,0,42.667-19.14,42.667-42.667C153.6,306.975,134.46,287.834,110.933,287.834z M110.933,356.101
c-14.114,0-25.6-11.486-25.6-25.6s11.486-25.6,25.6-25.6s25.6,11.486,25.6,25.6S125.047,356.101,110.933,356.101z"/>
</g>
</g>
{
"prefix":"fas",
"iconName":"ambulance",
"icon":[
640,
512,
[
],
"f0f9",
import React from "react";
import ReactDOM from "react-dom";
import { library } from "@fortawesome/fontawesome-svg-core";
import { FontAwesomeIcon as Icon } from "@fortawesome/react-fontawesome";
import { faAmbulance } from "@fortawesome/free-solid-svg-icons";
library.add(faAmbulance);
console.log("faAmbulance", faAmbulance);
function App() {
@nsisodiya
nsisodiya / ambulance-icon.html
Created February 7, 2019 19:34
ambulance-icon
<i class="fas fa-ambulance"></i>
@nsisodiya
nsisodiya / Matrix.js
Created October 20, 2018 09:50
Find islands in Boolean Matrix
class Matrix {
constructor(n, m) {
this.numrows = n;
this.numcolumns = m;
this.generateMatrix();
}
generateMatrix() {
var rows = [];
for (var j = 0; j < this.numrows; j++) {
@nsisodiya
nsisodiya / a.html
Created January 7, 2018 19:39
Billexo Logo Work
<div class="navbar-brand" style="
color: #fd8c10;
font-size: 31px;
font-weight: bold;
">
<svg style="width: 65px;height: 100%;margin-right: 12px;" version="1.0" xmlns="http://www.w3.org/2000/svg" width="349px" height="356px" viewBox="0 0 3490 3560" preserveAspectRatio="xMidYMid meet">
<g id="layer101" fill="#fd8c10" stroke="none">
<path d="M1600 3504 c-43 -8 -280 -64 -405 -95 -158 -40 -496 -145 -665 -206 l-135 -49 -86 -255 c-169 -502 -269 -922 -269 -1129 0 -211 118 -701 281 -1170 28 -80 56 -160 62 -178 6 -18 20 -38 31 -44 75 -40 690 -230 896 -277 52 -12 133 -32 180 -44 72 -19 112 -22 265 -22 170 0 188 2 320 34 276 66 474 121 695 195 319 105 338 113 354 144 23 45 166 479 166 504 0 13 9 52 20 88 86 277 150 605 150 765 0 138 -33 330 -100 590 -28 105 -55 210 -61 235 -44 179 -172 550 -194 566 -21 16 -495 173 -658 219 -71 20 -215 56 -320 81 -177 42 -204 46 -347 49 -85 2 -166 1 -180 -1z m321 -254 c29 -6 57 -16 61 -23 15 -21 -1 -97 -33 -167 -23 -50 -51 -88 -110 -146 l-79 -79 -90 90 c-72 71 -94 101 -1
@nsisodiya
nsisodiya / PrivacyPolicy.txt
Created June 5, 2017 16:42
Privacy Policy
Privacy Policy
Global Billexo Technologies built the Play Beep app as a Free app. This SERVICE is provided by Global Billexo Technologies at no cost and is intended for use as is.
This page is used to inform website visitors regarding our policies with the collection, use, and disclosure of Personal Information if anyone decided to use our Service.
If you choose to use our Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that we collect is used for providing and improving the Service. We will not use or share your information with anyone except as described in this Privacy Policy.
The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Play Beep unless otherwise defined in this Privacy Policy.
@nsisodiya
nsisodiya / Dockerfile
Created May 18, 2017 14:10
docker-compose for node alpine with Yarn + postgresql db
FROM node:7.10.0-alpine
RUN apk add --update curl
RUN apk add --update tar
RUN rm -rf /var/cache/apk/*
RUN curl -o- -L https://yarnpkg.com/install.sh | /bin/sh
WORKDIR /billexo-graphql-server
CMD ["/bin/sh"]