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
  • 11:24 (UTC +05:30)
  • X @rkkth
View GitHub Profile
@bantya
bantya / websearch.ini
Last active March 28, 2018 17:22
INI: My keypirinha websearch.ini file
[main]
enable_predefined_sites = no
item_label_format = {site_name}
[defaults]
history_keep = none
[site/PHP]
url = http://php.net/manual-lookup.php?pattern=%s
@bantya
bantya / win_utils_shortcuts.txt
Last active December 19, 2018 17:26
Windows: Windows Utilities Shortcuts
# Windows utilities shortcuts
Local Security Policy - secpol.msc
System info - msinfo32.exe
Services - services.msc
Computer Management - compmgmt.msc
Device manager - devmgmt.msc
@bantya
bantya / .zazurc.json
Created July 17, 2017 19:02
Json: My .zazurc file
{
"hotkey": "super+alt+space",
"theme": "iansinnott/zazu-dark-theme",
"displayOn": "detect",
"plugins": [
"tinytacoteam/zazu-calculator",
"tinytacoteam/zazu-file-finder",
"tinytacoteam/zazu-template",
"tinytacoteam/zazu-system",
"tinytacoteam/zazu-package-manager",
@bantya
bantya / wox_websearch.txt
Created July 25, 2017 12:07
Wox: Wox websearch urls
Twitter https://twitter.com/search?q={q}
Maps https://maps.google.com/maps?q={q}
Translate https://translate.google.com/#auto|en|{q}
Duckduckgo https://duckduckgo.com/?q={q}
Github https://github.com/search?q={q}
Gist https://gist.github.com/search?q={q}
Mail https://mail.google.com/mail/ca/u/0/#apps/{q}
GDrive https://drive.google.com/?hl=en&tab=bo#search/{q}
Wolframalpha https://www.wolframalpha.com/input/?i={q}
Stackoverflow https://stackoverflow.com/search?q={q}
@bantya
bantya / open_settings_win.sublime
Created August 14, 2017 14:14
Sublime: Shortcut for opening settings and keymap files on windows
{ "keys": [",", "s", "s"], "command": "edit_settings", "args": {"base_file": "${packages}/Default/Preferences.sublime-settings", "default": ""}},
{ "keys": [",", "k", "k"], "command": "edit_settings", "args": {"base_file": "${packages}/Default/Default ($platform).sublime-keymap", "default": ""}},
@bantya
bantya / valid_url.txt
Created August 17, 2017 21:37
URL: Valid url test data
google.com
www.google.com
http://google.com
http://www.twitter.com
google
www.google
http://google
http://www.google
<?php namespace Octopus;
use \Closure;
class MiddlewareComposer
{
protected $pipe;
protected $context;
protected $errorHandler;
protected $successHandler;
@bantya
bantya / access_private_members.php
Created August 25, 2017 13:00
php: Accessing private php class members without reflection
<?php
# A generic property reader abstraction
# https://ocramius.github.io/blog/accessing-private-php-class-members-without-reflection/
$reader = function & ($object, $property) {
$value = & Closure::bind(function & () use ($property) {
return $this->$property;
}, $object, $object)->__invoke();
@bantya
bantya / Inflect.php
Created September 19, 2017 19:26 — forked from tbrianjones/Inflect.php
A PHP Class for converting English words between Singular and Plural.
<?php
// original source: http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/
/*
The MIT License (MIT)
Copyright (c) 2015
Permission is hereby granted, free of charge, to any person obtaining a copy
@bantya
bantya / Theme - Alpenglow.sublime-settings
Last active January 11, 2020 22:52
Json: Sublime Text 3 Themes Settings
{
"sidebar_no_icon": false,
"folder_no_icon": true,
"tabs_small": true,
"sidebar_size_12": true,
"sidebar_row_padding_large": true,
"status_bar_brighter": true,
"color_inactive_tabs": true,
"tabs_padding_small": true,
"tabs_label_not_italic": true,