Skip to content

Instantly share code, notes, and snippets.


Tanvir Raj tanvirraj

Block or report user

Report or block tanvirraj

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View unfollow.js
// ====================
// UPDATED JULY 31, 2019
// ====================
// Unfollow everyone, by Eric Olszewski (
// 1. Go to
// 2. Open the Developer Console. (COMMAND+ALT+I on Mac)
// 3. Paste this into the Developer Console and run it
// Note: Twitter
View axios.js
// @flow
import axios, { AxiosRequestConfig, AxiosError } from "axios";
import { message, Modal } from "antd";
import ENV from "../utils/config";
import browser from "browser-detect";
import moment from "moment-timezone";
// TODO: find a way to call custom modals programmaticaly
// See:
// import { ErrorModal } from "../components/Modal/Modal";

Folder Structure


  • Clear feature ownership
  • Module usage predictibility (refactoring, maintainence, you know what's shared, what's not, prevents accidental regressions, avoids huge directories of not-actually-reusable modules, etc)
tanvirraj /
Created May 12, 2019 — forked from sw-yx/
Learn In Public - 7 opinions for your tech career

1. Learn in public

If there's a golden rule, it's this one, so I put it first. All the other rules are more or less elaborations of this rule #1.

You already know that you will never be done learning. But most people "learn in private", and lurk. They consume content without creating any themselves. Again, that's fine, but we're here to talk about being in the top quintile. What you do here is to have a habit of creating learning exhaust. Write blogs and tutorials and cheatsheets. Speak at meetups and conferences. Ask and answer things on Stackoverflow or Reddit. (Avoid the walled gardens like Slack and Discourse, they're not public). Make Youtube videos or Twitch streams. Start a newsletter. Draw cartoons (people loooove cartoons!). Whatever your thing is, make the thing you wish you had found when you were learning. Don't judge your results by "claps" or retweets or stars or upvotes - just talk to yourself from 3 months ago. I keep an almost-daily dev blog written for no one else but me.

Guess what? It

View test.js
// @flow
import React, { PureComponent } from "react";
import styles from "./MerchantCatalogScreen.module.scss";
import { connect } from "react-redux";
import { List, Modal, message } from "antd";
import { select } from "../../../../store/store";
import { withNamespaces } from "react-i18next";
import BrowserMeta, {
View redux
// There area lot more checks in the Redux lib but this gets the point across.
function createStore(reducer, initialState) {
let currentState = initialState;
const listeners = [];
function getState() {
return currentState;
function subscribe(listener) {
View gist:87f342d2a8daefcce460f9cbb55afa80
"editor.fontFamily": "Dank Mono", //"Operator Mono",
"editor.fontSize": 16,
"editor.fontLigatures": true,
"window.zoomLevel": 1,
"editor.minimap.enabled": false,
// Controls the cursor style, accepted values are 'block', 'line' and 'underline'
// Set the default
"editor.formatOnSave": true,
// axios
// .post(baseURL + '/auth/local/register', {
// username: username,
// email: email,
// password: password
// })
// .then(response => {
// window.localStorage.setItem('jwt',;
// if (response.statusText === 'OK') {
// this.setState(() => ({
View auth.html
<div className="signin-form">
<form onSubmit={this.handleSubmit}>
<div className="form-group">
View track-my-mac
# A simple time tracker for Mac OS X by Nat Friedman (
# Written May 6, 2010 in Munich, while a soft rain fell.
# Run this script in a terminal. It displays activity statistics
# from the last 24 hours, like this:
You can’t perform that action at this time.