Skip to content

Instantly share code, notes, and snippets.

const blacklist = [
'Brianna',
'Lexi',
'Sophia',
'Violet',
'Emily'
];
function like() {
const buttons = document.querySelectorAll("button.button");
(function() {
const hasCode = location.pathname.indexOf('/folder/') > -1;
if (!hasCode) {
alert('Not a Fshare folder, Please navigate to FShare folder');
return;
}
let code = location.pathname.replace('/folder/', '');
@annguyenwasd
annguyenwasd / minimal.vim
Created April 2, 2020 07:38 — forked from benmccormick/minimal.vim
A minimal vimrc for new vim users
" A minimal vimrc for new vim users to start with.
"
" Referenced here: http://vimuniversity.com/samples/your-first-vimrc-should-be-nearly-empty
"
" Original Author: Bram Moolenaar <[email protected]>
" Made more minimal by: Ben Orenstein
" Modified by : Ben McCormick
" Last change: 2014 June 8
"
" To use it, copy it to
{
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "none",
"arrowParens": "avoid"
}
{
"compilerOptions": {
"baseUrl": "./src"
}
}
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:react/recommended",
import { compose, createStore as reduxCreateStore } from 'redux';
const reducer = state => {
return state;
};
const initialState = {};
const windowGlobal = typeof window !== 'undefined' && window;
const devtools =
process.env.NODE_ENV === 'development' && windowGlobal.devToolsExtension
{
"devDependencies": {
"import-sort-cli": "^6.0.0",
"import-sort-style-react": "^5.1.0",
},
"scripts": {
"sort-imports": "./node_modules/import-sort-cli/lib/index.js --write ./src/**/*.js"
},
"importSort": {
".js": {
@annguyenwasd
annguyenwasd / package.json
Last active April 26, 2020 14:19
my work flow with reactjs
{
"dependencies": {
"babel-plugin-styled-components": "^1.10.7",
"prop-types": "^15.7.2",
"react": "^16.13.1",
"react-dom": "^16.12.0",
"react-helmet": "^5.2.1",
"react-responsive": "^8.0.3",
"react-spring": "^8.0.27",
"react-typography": "^0.16.19",
(() => {
const x = document.createElement("div");
x.style.height = "1px";
x.style.backgroundColor = "red";
x.style.zIndex = 100000;
x.style.position = "fixed";
x.style.top = "0px";
x.style.left = "0px";
document.body.appendChild(x);