Skip to content

Instantly share code, notes, and snippets.

View abhirathore2006's full-sized avatar

Abhimanyu Singh Rathore abhirathore2006

View GitHub Profile
@abhirathore2006
abhirathore2006 / .htaccess
Created September 24, 2021 13:14
htaccess for react app with exception
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/tps/.*$ [NC]
RewriteRule ^ index.html [QSA,L]
<script>
var smscript = document.createElement('script');
smscript.type = 'text/javascript';
smscript.async = true;
smscript.src = 'https://smartasset.com/snippet.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(smscript, s);
</script>
// above script is equivalent to
@abhirathore2006
abhirathore2006 / debugcss.css
Created November 3, 2019 09:54
css to debug css
/*! debug.css | MIT License | zaydek.github.com/debug.css */
*:not(path):not(g) {
color: hsla(210, 100%, 100%, 0.9) !important;
background: hsla(210, 100%, 50%, 0.5) !important;
outline: solid 0.25rem hsla(210, 100%, 100%, 0.5) !important;
box-shadow: none !important;
}
console.log("yayy!!, i am loded);

Dear ,

I am writing in regard to your job opening of . As a candidate with extensive experience in , I am highly skilled in . My solid background in has allowed me to manage teams with exceptional performance.

The opportunity to join greatly interests me because . As a holder of <Degrees, Certs>I can competently execute . I believe that I would make a valuable asset to your team and I offer my resume for your review.

As per my professional summary, my qualities and experience make me highly suitable for the role of . I am highly regarded for . I am proficient in .

@abhirathore2006
abhirathore2006 / css-bg-hack-for-testing.css
Created September 12, 2019 06:10
CSS background hack for testing
* { background-color: rgba(255,0,0,.2); }
* * { background-color: rgba(0,255,0,.2); }
* * * { background-color: rgba(0,0,255,.2); }
* * * * { background-color: rgba(255,0,255,.2); }
* * * * * { background-color: rgba(0,255,255,.2); }
* * * * * * { background-color: rgba(255,255,0,.2); }
* * * * * * * { background-color: rgba(255,0,0,.2); }
* * * * * * * * { background-color: rgba(0,255,0,.2); }
* * * * * * * * * { background-color: rgba(0,0,255,.2); }
var webpack = require('webpack');
var path = require('path');
var fs = require('fs');
var nodeModules = {};
fs.readdirSync('node_modules')
.filter(function(x) {
return ['.bin'].indexOf(x) === -1;
})
.forEach(function(mod) {
location /test {
root /usr/share/nginx/html;
try_files $uri $uri/ /index.html;
}
@abhirathore2006
abhirathore2006 / Image to require
Created July 25, 2017 10:07
Image to require
https://www.npmjs.com/package/ndpack-image
{
"compileOnSave": false,
"buildOnSave": false,
"compilerOptions": {
"module": "es6",
"jsx": "react",
"target": "es6",
"moduleResolution": "node",
"preserveConstEnums": true,
"emitDecoratorMetadata": true,