Skip to content

Instantly share code, notes, and snippets.

@anvit
anvit / langs.csv
Last active July 5, 2023 17:15 — forked from sevein/langs.csv
Code Language
af Afrikaans
ak Akan
am Amharic
ar Arabic
as Assamese
az Azerbaijani
be Belarusian
bg Bulgarian
bm Bambara
@anvit
anvit / generate-diff.sh
Created December 9, 2022 22:26
Generate diffs for every author in a git repo
#!/bin/bash
read -p "Enter repo url: " url
git clone $url && cd "$(basename "$_" .git)"
mkdir -p ../diffs
git log --format='%aN' | sort -u | xargs -I % sh -c 'git log --author "%" -p > "../diffs/%.diff"'
@anvit
anvit / new-gulpfile.js
Created June 20, 2022 20:04
Gulpfile with module style imports
import gulp from 'gulp'; // Load Gulp!
import terser from 'gulp-terser'; //to uglify the code
import rename from 'gulp-rename'; // to rename
import eslint from 'gulp-eslint'; // chescks for lynt warnings and errors
import browserSync from 'browser-sync';
import dartSass from 'sass';
import gulpSass from 'gulp-sass';
import autoPrefixer from 'gulp-autoprefixer'; //older version support
import cssnano from 'gulp-cssnano'; //minify the css
import prettyError from 'gulp-prettyerror'; // looks for errors before compiling
@anvit
anvit / gulpfile.js
Created March 11, 2021 16:45
Starter gulpfle with linting, sass, and minification
const gulp = require("gulp"), // Load Gulp!
// Now that we've installed the terser package we can require it:
terser = require("gulp-terser"), //to uglify the code
rename = require("gulp-rename"), // to rename
browserSync = require("browser-Sync").create(), //syncs the files to the browser
eslint = require("gulp-eslint"), // chescks for lynt warnings and errors
sass = require("gulp-sass"), // sass compiler
autoPrefixer = require("gulp-autoprefixer"), //older version support
cssnano = require("gulp-cssnano"), //minify the css
prettyError = require("gulp-prettyerror"), // looks for errors before compiling
@anvit
anvit / .gitignore
Last active May 3, 2022 00:00
My default gitignore
# Ignore system files
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
*[Tt]humbs.db
*.Trashes
@anvit
anvit / .tmux.conf
Last active February 25, 2024 08:52
Dotfiles
# Set Default Shell
set-option -g default-shell /bin/zsh
# Set C-a as prefix
unbind C-b
set -g prefix C-a
# split panes using | and -
bind | split-window -h
bind \\ split-window -v