Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focussing

Rahul Thakare bantya

🎯
Focussing
  • YetToBe Corp.
  • Pune, India
  • Twitter @rkkth
View GitHub Profile
@bantya
bantya / perlin-noise-classical.js
Created Jun 2, 2022 — 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)
View perlin-noise-classical.js
// 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 banksean@gmail.com
/**
* 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 Jan 2, 2022 — forked from ttscoff/changelog.rb
Generate release notes from git commit messages
View changelog.rb
#!/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 Jan 2, 2022 — forked from ttscoff/barchart.rb
Command line bar chart from JSON data (for GeekTool, et al)
View barchart.rb
#!/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 Jun 2, 2021
A utility to create htmlhint rc file.
View hhrc.bat
A utility to create htmlhint rc file
@bantya
bantya / af.bat
Created Jun 2, 2021
Create Angular modules and components.
View af.bat
:: 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
VS Code Angular snippet filename transformation
View angular-filename
{
// 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 Feb 2, 2021
C# Random String Generator
View Randoms.cs
// 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
View youtube-dl-download-pluralsight-videos.md

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 Jan 15, 2020
Terminal: My config file.
View profiles.json
// 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":
@bantya
bantya / wlan-passwords.bat
Created Dec 23, 2019
bat: Get connected wlan passwords in Windows
View wlan-passwords.bat
netsh wlan show profile
netsh wlan export profile folder=[PATH e.g. c:\] key=clear