Skip to content

Instantly share code, notes, and snippets.

View nisrulz's full-sized avatar
🌌
Coding in the MultiVerse

Nishant Srivastava nisrulz

🌌
Coding in the MultiVerse
View GitHub Profile
A good commit message looks like this:
Header line: explaining the commit in one line
Body of commit message is a few lines of text, explaining things
in more detail, possibly giving some background about the issue
being fixed, etc etc.
The body of the commit message can be several paragraphs, and
please do proper word-wrap and keep columns shorter than about
@nisrulz
nisrulz / EasyDeviceInfoPrivacyPolicy.html
Last active March 4, 2017 23:24
Privacy Policy for EasyDeviceInfo
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Privacy Policy - EasyDeviceInfo</title>
<style>
body{
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
@nisrulz
nisrulz / ZentonePrivacyPolicy.html
Last active March 5, 2017 01:28
Privacy Policy for Zentone
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Privacy Policy - Zentone</title>
<style>
body{
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
@nisrulz
nisrulz / FlashlightPrivacyPolicy.html
Last active March 5, 2017 01:29
Privacy Policy for Flashlight
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Privacy Policy - Flashlight (IntelliSense Tech)</title>
<style>
body{
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
@nisrulz
nisrulz / PackageHunterPrivacyPolicy.html
Last active March 5, 2017 01:29
Privacy Policy for PackageHunter
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Privacy Policy - PackageHunter</title>
<style>
body{
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- google's material design colours from
http://www.google.com/design/spec/style/color.html#color-ui-color-palette -->
<!--reds-->
<color name="md_red_50">#FFEBEE</color>
<color name="md_red_100">#FFCDD2</color>
<color name="md_red_200">#EF9A9A</color>
@nisrulz
nisrulz / AwesomeLibMain.java
Last active September 17, 2017 22:08
Making your Android Library, Lifecycle-Aware blog post code snippet: AwesomeLibMain class
public class AwesomeLibMain {
static final AwesomeLibMain ourInstance = new AwesomeLibMain();
public static AwesomeLibMain getInstance() {
return ourInstance;
}
private AwesomeLibMain() {
}
@nisrulz
nisrulz / MainActivity.java
Created September 17, 2017 22:12
Making your Android Library, Lifecycle-Aware blog post code snippet: MainActivity class
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// Init
AwesomeLibMain.getInstance().init();
}
@nisrulz
nisrulz / MainActivity.java
Created September 17, 2017 22:35
Making your Android Library, Lifecycle-Aware blog post code snippet: MainActivity class after lifecycle components have been integrated
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// Add Lifecycle Observer
getLifecycle().addObserver(AwesomeLibMain.getInstance());
}
@nisrulz
nisrulz / SystemUiHelper.java
Created October 28, 2017 01:55 — forked from chrisbanes/SystemUiHelper.java
SystemUiHelper
/*
* Copyright (C) 2014 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