Skip to content

Instantly share code, notes, and snippets.

View bantya's full-sized avatar
🎯
Focussing

Rahul Thakare bantya

🎯
Focussing
  • http://127.0.0.1:4200
  • http://127.0.0.1:8080
  • 01:10 (UTC +05:30)
  • X @rkkth
View GitHub Profile
@bantya
bantya / object-watch.js
Created January 23, 2023 18:17 — forked from eligrey/object-watch.js
object.watch polyfill in ES5
/*
* object.watch polyfill
*
* 2012-04-03
*
* By Eli Grey, http://eligrey.com
* Public Domain.
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
*/
@bantya
bantya / perlin-noise-classical.js
Created June 2, 2022 12:57 — forked from banksean/perlin-noise-classical.js
two Perlin noise generators in javascript. The simplex version is about 10% faster (in Chrome at least, haven't tried other browsers)
// Ported from Stefan Gustavson's java implementation
// http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf
// Read Stefan's excellent paper for details on how this code works.
//
// Sean McCullough [email protected]
/**
* You can pass in a random number generator object if you like.
* It is assumed to have a random() method.
*/
@bantya
bantya / changelog.rb
Created January 2, 2022 11:13 — forked from ttscoff/changelog.rb
Generate release notes from git commit messages
#!/usr/bin/ruby
# A script to automate changelog generation from Git commit messages
#
# For use with a git-flow workflow, it will take changes from the last tagged release
# where commit messages contain NEW, FIXED, and IMPROVED keywords and sort and fromat
# them into a Markdown release note list.
#
# The script takes version information from the macOS command agvtool and bases
# the product name on the first matching Xcode Info.plist found
@bantya
bantya / barchart.rb
Created January 2, 2022 10:40 — forked from ttscoff/barchart.rb
Command line bar chart from JSON data (for GeekTool, et al)
#!/usr/bin/env ruby
# encoding: utf-8
# Brett Terpstra 2013, WTF license <http://www.wtfpl.net/txt/copying/>
# Outputs a vertical bar chart from date-based JSON data
# Requires the JSON rubygem: `[sudo] gem install json`
require 'date'
require 'open-uri'
require 'rubygems'
require 'json'
@bantya
bantya / hhrc.bat
Created June 2, 2021 14:07
A utility to create htmlhint rc file.
A utility to create htmlhint rc file
@bantya
bantya / af.bat
Created June 2, 2021 09:39
Create Angular modules and components.
:: af utility to create Angular modules and components. (af = angular file)
::
:: syntax: af [m|c] <name> <c:module name>
::
:: e.g: > af m utils
:: = create module named utils
:: > af c search utils
:: = create a search component in utils module
::
:: author: github.com/bantya
@bantya
bantya / angular-filename
Created May 29, 2021 13:44
VS Code Angular snippet filename transformation
{
// https://github.com/microsoft/vscode/issues/78110#issuecomment-524676592
"f-filename": {
"prefix": "f-filename",
"body": [
"${TM_FILENAME_BASE/((^[a-z])|[-.]([a-z]))/${2:/upcase}${3:/upcase}/g}"
],
"description": "filename"
}
}
@bantya
bantya / Randoms.cs
Created February 2, 2021 06:42
C# Random String Generator
// www.github.com/bantya
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace Utils
@bantya
bantya / youtube-dl-download-pluralsight-videos.md
Created December 25, 2020 09:12 — forked from ivanskodje/youtube-dl-download-pluralsight-videos.md
youtube-dl for downloading pluralsight videos

Downloading Videos from Pluralsight

Disclaimer

Pluralsight do not permit users to download their videos.
If you are an user of pluralsight you have agreed with their ToS,
and are thusly refrained from doing so.
Use this knowledge at your own risk.

youtube-dl for Windows

@bantya
bantya / profiles.json
Created January 15, 2020 06:35
Terminal: My config file.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
"requestedTheme": "system",
"profiles":