Skip to content

Instantly share code, notes, and snippets.

View mohitmanuja's full-sized avatar
:atom:

Mohit Manuja mohitmanuja

:atom:
View GitHub Profile
@mohitmanuja
mohitmanuja / ActivitySwitchHelper.java
Last active October 3, 2019 06:07
Notification in Android From Firebase
public class ActivitySwitchHelper {
public static void rateApp() {
try {
final Intent rateIntent = new Intent(Intent.ACTION_VIEW);
rateIntent.setData(Uri.parse("market://details?id=" + context.getPackageName()));
context.startActivity(rateIntent);
} catch (Exception e) {
showToast("You don't have play store :) Thanks. ");

Step by step to install Scala + Play Framework in Ubuntu 14.04 with Activator.

Install Scala

sudo apt-get remove scala-library scala
wget http://www.scala-lang.org/files/archive/scala-2.11.6.deb
sudo dpkg -i scala-2.11.6.deb
sudo apt-get update
sudo apt-get install scala
@mohitmanuja
mohitmanuja / gist:3bfdaec30ee9425246013578bd1ef40c
Created November 1, 2017 17:23 — forked from bradwestfall/gist:f5a010e96fb0c4d18556
Pull Instagram Images via JavaScript
@mohitmanuja
mohitmanuja / Google-Summer-of-Code- 2017-Fossasia-phimpme-mohitmanuja.md
Last active September 4, 2017 14:54
Google Summer of Code - 2017 | Fossasia | Phimpme Image App | Mohit Manuja

GSoC 2017 Phimpme Android, Mohit Manuja - FOSSASIA

This Summer, I worked on FOSSASIA's Phimpme Android for a complete all in one Open Source Image app. The app contains the gallery where user can browse his/ her local directory, Image editor with optimized filters and other transformation and tuning features. Also you can share images to multiple platform without their standalone app installed in your phone.

Get it on Google Play
> Regular Expressions Cheat Sheet
> A regular expression specifies a set of strings that matches it. This cheat sheet is based off Python 3's Regular Expressions (http://docs.python.org/3/library/re.html) but is designed for searches within Sublime Text.
> Special Characters
\ Escapes special characters or signals a special sequence.
. Matches any single character except a newline.
^ Matches the start of the string.
$ Matches the end of the string.
* Greedily matches 0 or more repetitions of the preceding RE.
*? Matches 0 or more repetitions of the preceding RE.