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
  • 12:09 (UTC -12:00)
  • 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 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 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 / 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 / export_mysql_table_schema_to_markdown_table.php
Last active December 16, 2019 05:11 — forked from tlikai/export_mysql_table_schema_to_markdown_table.php
export mysql table schema to markdown table
#!/usr/bin/env php
<?php
if (count($argv) == 1) {
throw new InvalidArgumentException('Missing tables');
}
$tables = array_slice($argv, 1);
$db = new PDO('mysql:dbname=uniqueway_development;host=127.0.0.1;charset=utf8mb4', 'root', '');
@bantya
bantya / Container.php
Created December 16, 2019 05:07 — forked from MustafaMagdi/Container.php
PHP Dependency Injection Container
<?php
/**
* Class Container
*/
class Container
{
/**
* @var array
*/
@bantya
bantya / AppServiceProvider.php
Created November 16, 2019 12:27 — forked from JeffreyWay/AppServiceProvider.php
Laracasts Widgets Lesson
<?php
namespace App\Providers;
use Illuminate\Support\Facades\Blade;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
@bantya
bantya / docsets.json
Created August 22, 2019 18:51 — forked from ferronrsmith/docsets.json
zeal docset
[
{
"name": "ActionScript",
"title": "ActionScript",
"sourceId": "com.kapeli",
"revision": "27",
"versions": [
"3"
],
"icon": "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABwElEQVR42pyTv07bUBTGf8dOAg1xSqmSAaSCMhGEHJkFCcTABKi4khkQL8AD8AY8AhMDQ4UYGJh4gbAhMTlAVXaQYEBQSqwEJXJzOrgyiTAt6pnu+XO/e77z3SOqSkVE+Q87U5VURUS/JiQrDw+kBgdj/8JxeDo97a0RUSMJ2ZieRiyrJybz84ldJALkFhYwTbMn9sHzkLcAGEB+ZeVFoeU4UCq9oYOpKYbKZQA6jQbtqysABnI5sq77b4Ah1yWdyQBwf3DA9eZmnHu/tvbiQq8vgqyuxu7t1hY/9vfpNJsAfHQcdHT0dQCzXObTxAQA7ctLns7PodUiODkBINPXx7vFxdcB8ktL8fluby+e+u3OzrNCngciCQDpNHheNLwgINjexgIEqB8e0mk0ACjMzSFdasQA5vg4pdlZAJqPj5wND/NtZgYtFKDVon50BEB/Nkuui4bBn1e6JRoYGeHL8TGfq1Wy6+sRjd3dOJ9y3WcaNqhvWXrj+5pkN76vNdBaPq+/gkBVVcMw1FqxqDZEuyAbGxRtO/GvF22b+tgYPw2D+2o1omuahMvLkfKqyqSImn9Z2zagQLpraCHwXVV+DwDt+Z4JbwqWpAAAAABJRU5ErkJggg==",
👍 :+1:
👎 :-1:
:0: :0:
:1: :1:
:2: :2:
:3: :3:
:4: :4:
:5: :5:
:6: :6:
:7: :7: