Skip to content

Instantly share code, notes, and snippets.

View kaushalbhardwaj's full-sized avatar

Kaushal Pratap kaushalbhardwaj

View GitHub Profile
@kaushalbhardwaj
kaushalbhardwaj / README.md
Created July 8, 2020 09:58 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@kaushalbhardwaj
kaushalbhardwaj / VideoPlayer.jsx
Created February 4, 2020 13:03 — forked from andrewserong/VideoPlayer.jsx
An example Video JS component in React, based on the Video JS docs
import React from 'react';
import videojs from 'video.js';
import 'video.js/dist/video-js.css';
// video.js player from the docs: https://github.com/videojs/video.js/blob/master/docs/guides/react.md
class VideoPlayer extends React.Component {
componentDidMount() {
// instantiate Video.js
this.player = videojs(this.videoNode, this.props, function onPlayerReady() {
@kaushalbhardwaj
kaushalbhardwaj / ContextCmder-Disable.reg
Created January 21, 2020 15:17 — forked from jojobyte/ContextCmder-Disable.reg
Cmder Context (Right-Click) Menu for Windows 7, 8 & 10
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
[-HKEY_CLASSES_ROOT\Directory\shell\Cmder]
@kaushalbhardwaj
kaushalbhardwaj / introrx.md
Created February 2, 2018 05:53 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@kaushalbhardwaj
kaushalbhardwaj / include_list_viewpager.xml
Created June 4, 2016 08:57 — forked from iPaulPro/include_list_viewpager.xml
CollapsingToolbarLayout with TabLayout
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2015 The Android Open Source Project
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software