Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Kishan Vaghela Kishanjvaghela

🏠
Working from home
Block or report user

Report or block Kishanjvaghela

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Kishanjvaghela
Kishanjvaghela / start_emulator.sh
Created Aug 21, 2019 — forked from itmammoth/start_emulator.sh
Start an android emulator with changing DNS server to Google public DNS
View start_emulator.sh
#!/bin/bash
EMULATOR=~/Library/Android/sdk/tools/emulator
if [ $# -ne 1 ]; then
echo "ERROR: Please specify the target AVD from the list below" 1>&2
$EMULATOR -list-avds 1>&2
exit 1
fi
$EMULATOR -avd $1 -dns-server "8.8.8.8,8.8.4.4"
@Kishanjvaghela
Kishanjvaghela / rn-cli.config.js
Created Jun 20, 2019
transformer for node modules
View rn-cli.config.js
module.exports = {
/**
* Add search paths to the packager. Equivalent to the
* `--projectRoots` command line argument.
*
* Your app project directory is the default, but you can easily add
* additional directories.
*
* This is very handy when you maintain all your software in one big
View romanToNumber
function convertToRoman(input) {
var roman = {
M: 1000,
D: 500,
C: 100,
L: 50,
X: 10,
V: 5,
I: 1
};
View Generator_Iterator.js
function *foo(x) {
console.log('x is ' + x);
const y = yield (x + 1);
console.log('y is ' + y);
var z = yield (y + 2);
console.log('z is '+ z);
return (x + y + z);
}
var it = foo( 5 );
View kaybase.md

Keybase proof

I hereby claim:

  • I am kishanjvaghela on github.
  • I am kishanjv (https://keybase.io/kishanjv) on keybase.
  • I have a public key ASB3nyeRTfEhgvPClo87yNP0zm9UbEJJ2b3_SKWJxKrplwo

To claim this, I am signing this object:

@Kishanjvaghela
Kishanjvaghela / First.sol
Created Sep 3, 2018
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&gist=
View First.sol
pragma solidity ^0.4.24;
contract First {
function add(uint256 a ,uint256 b) view returns(uint256) {
return a + b;
}
}
@Kishanjvaghela
Kishanjvaghela / network_security_config.xml
Created May 8, 2018
making charles debugging work on marshmallo and above
View network_security_config.xml
+ android:networkSecurityConfig="@xml/network_security_config">
@Kishanjvaghela
Kishanjvaghela / ubuntu-eol.md
Created Jan 21, 2018 — forked from dergachev/ubuntu-eol.md
What to do when your ubuntu distro is End-of-Life
View ubuntu-eol.md

Let's say you're using Ubuntu 13.04 (Raring Ringtail, released in April 2013) and it just went End-of-Life on you, because it's supported for only 6 months, and the deprecated packages are taken down after 12 months.

You'll probably figure this out the hard way. When you run sudo apt-get update, it will eventually report these errors:

Ign http://archive.ubuntu.com raring-updates/universe Sources/DiffIndex
Err http://security.ubuntu.com raring-security/main Sources
  404  Not Found [IP: 91.189.91.15 80]
Err http://security.ubuntu.com raring-security/universe Sources
  404  Not Found [IP: 91.189.91.15 80]
@Kishanjvaghela
Kishanjvaghela / opacity.txt
Created Dec 8, 2017 — forked from alvinthen/opacity.txt
Convert opacity values in percentage to hexadecimal
View opacity.txt
0% - 00
1% - 03
2% - 05
3% - 08
4% - 0A
5% - 0D
6% - 0F
7% - 12
8% - 14
9% - 17
@Kishanjvaghela
Kishanjvaghela / AutoLink.js
Last active Nov 29, 2017
React Native Code
View AutoLink.js
You can’t perform that action at this time.