Skip to content

Instantly share code, notes, and snippets.

View Bhavdip's full-sized avatar
🎯
Focusing

bhavdip Bhavdip

🎯
Focusing
View GitHub Profile
@Bhavdip
Bhavdip / CLITIPS.md
Last active September 20, 2017 07:22
Angular CLI

For Angular4 need node_modules

  • This will add the node_modules into the existing angular project
npm install

  • For create a new component
@Bhavdip
Bhavdip / Angula.md
Last active September 19, 2017 13:08
AngularTopics

Project Structure

E2E => for End To End Testing

.ts => Typescript

Module Name: App

  1. Component
@Bhavdip
Bhavdip / tips.txt
Last active August 21, 2017 09:07
PHP Laravel Tipes
PHP Laravel Tipes
composer update
https://stackoverflow.com/questions/43408604/php7-install-ext-dom-issue
How to kill a process on a port on ubuntu
https://stackoverflow.com/questions/9346211/how-to-kill-a-process-on-a-port-on-ubuntu
@Bhavdip
Bhavdip / RunKanban.java
Last active July 21, 2017 13:04
Personal Kanban
This note is related to the Kanban using Trello. We will see how we can use the trello that help us to run the kanban development process in our personal or daily ongoing project.I will seaching numbers of blog that can help me to find the best practicies that fith with my team. Later we will choose the best that help us.
https://hackernoon.com/personal-kanban-11f6a5196b00
Inbox (or backlog) : collect here every idea, feature request, bugs or all the unprocessed “stuff”. Means you don’t have to prioritize or put it into a specific category. It’s just a place to dump whatever is coming your way for later review. So you don’t have to deal with it now. This list could contain an unlimited amount of items. But you should review and purge regularly everything you don’t really need anymore.
Next Up(5-10) = All the things which you want to do next. This is a kind of general action list. Put here the stuff, which is important in near term for you and which you have “validated” as something worth doing. You can pu
@Bhavdip
Bhavdip / ls: command not found
Created May 30, 2017 08:04
[ls: command not found] #tags:Linux
https://superuser.com/questions/1061765/getting-the-following-error-when-using-ls-in-mac-terminal-bash-ls-command-no
cd & exit are shell builtins. ls is typically installed in /bin. /bin is missing from your path.
export PATH=/bin:/usr/bin:$PATH
should fix it.
@Bhavdip
Bhavdip / YouTubeDownloader.java
Last active May 19, 2017 05:32
[YouTube Downloader For Ubuntu 10.04] #tags:Ubuntu
//YouTubeDownloader
//https://www.tecmint.com/install-youtube-dl-command-line-video-download-tool/
$ sudo add-apt-repository ppa:nilarimogard/webupd8
$ sudo apt-get update
$ sudo apt-get install youtube-dl
$ sudo curl https://yt-dl.org/latest/youtube-dl -o /usr/local/bin/youtube-dl
OR
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
@Bhavdip
Bhavdip / TextViewClickable.java
Last active May 18, 2017 10:05
[TextView Clickable] #tags:Android
//how-to-set-the-part-of-the-text-view-is-clickable
SpannableString ss = new SpannableString("Android is a Software stack");
ClickableSpan clickableSpan = new ClickableSpan() {
@Override
public void onClick(View textView) {
startActivity(new Intent(MyActivity.this, NextActivity.class));
}
@Override
public void updateDrawState(TextPaint ds) {
@Bhavdip
Bhavdip / ChatHeadService.java
Last active May 15, 2017 06:22
[On Top Of Other Application] #tags:Android
public class ChatHeadService extends Service {
private WindowManager windowManager;
private ImageView chatHead;
@Override public IBinder onBind(Intent intent) {
// Not used
return null;
}
@Bhavdip
Bhavdip / Notes.java
Created May 15, 2017 06:10
[Android Intent Filter] tags:Android
//http://stackoverflow.com/questions/3473168/clear-the-entire-history-stack-and-start-a-new-activity-on-android
In API level 11 a new Intent Flag was added just for this: Intent.FLAG_ACTIVITY_CLEAR_TASK
Just to clarify, use this:
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
Unfortunately for API lvl <= 10, I haven't yet found a clean solution to this. As per @Ben Pearson's comment, for API <=10 now one can use IntentCompat class for the same. One can use IntentCompat.FLAG_ACTIVITY_CLEAR_TASK flag to clear task. So you can support pre API level 11 as well.
Intent newIntent = new Intent(D.this,B.class);
newIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
newIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
@Bhavdip
Bhavdip / Notes.java
Last active May 12, 2017 06:13
[Android Studio2.4 Preview6] #tags:Android
/**
**1. Gradle version in alpha mode would not allow the app installed in real device.
We face the problem of App not installed into the physical device.
**/
//This is due to of you chnage the gradle version For example in my case
Error:Could not initialize class com.android.ide.common.util.ReadWriteProcessLock after updating to A.S. 2.4
classpath 'com.android.tools.build:gradle:2.4.0-alpha6'
to
classpath 'com.android.tools.build:gradle:2.3.1'