Skip to content

Instantly share code, notes, and snippets.

View jayeshcp's full-sized avatar
🏎️

Jayesh Chandrapal jayeshcp

🏎️
View GitHub Profile
@jayeshcp
jayeshcp / EULA.txt
Last active December 20, 2015 11:58
EULA for Android AppUseful for developers who do not have company. Can be used for Paid or Free app. Modify "MyApp" in this text to your requirement and any other contents if required.
END USER LICENSE FOR ANDROID MyApp SOFTWARE
\nPlease read this document carefully before using this software. This license provides important information concerning the software, provides you with a license to use the software and contains warranty and liability information.
\n\nBy using the software, you are accepting the software \"AS IS\" and agreeing to be bound by the terms of this license agreement. In no event will the authors be held liable for any damages arising from the use of this software. If you do not wish to do so, do not use the software.
\n\n1. Terms of License
\nThis license allows you to:
\n(a) use the Software on a single device; and
\n(b)If you wish to use the Software on more than one device, you must license another copy of the
Software.
@jayeshcp
jayeshcp / blog_send_html_in_json.json
Last active December 21, 2015 13:39
Blog: Sending HTML in JSON using DOCTYPE
{
"htmltext": "<!DOCTYPE html><p>Indexing using Apache Lucene</p><p>In this article we will discuss about how indexing works in Lucene...<a href=\"http: //www.blogger.com/%22articles//lucene.jsp/%22\"/>Indexing using Apache Lucene</a></html>"
}
@jayeshcp
jayeshcp / AndroidFeedback.java
Last active December 21, 2015 14:28
Android: Sending App Feedback from within App itself
/**
* Open Android's standard Feedback screen for users to send app feedback
* Create options menu, and on its click event call following method.
* Show this menu item, only if Build version is greater than or equal
* to ICE_CREAM_SANDWICH (4.0)
*/
@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH)
private void OpenFeedbackForm() {
// Check if Build is higher than or equal to Ice Cream Sandwich (4.0)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
@jayeshcp
jayeshcp / javascript_resources.md
Last active August 29, 2015 13:56 — forked from jookyboi/javascript_resources.md
Javascript Libraries

Javascript Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, lo
@jayeshcp
jayeshcp / css_resources.md
Last active August 29, 2015 13:56 — forked from jookyboi/css_resources.md
CSS Libraries

CSS Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@jayeshcp
jayeshcp / CDN_Links.html
Last active May 22, 2017 12:45
CDN Links
@jayeshcp
jayeshcp / laravel-upload-resize.php
Last active August 29, 2015 13:56 — forked from sineld/laravel-upload-resize.php
Resize uploaded image in Laravel
<?php
// Resizer and Image Manipulation
// Based on: http://forums.laravel.com/viewtopic.php?id=2648
public function post_edit_logo($id)
{
$rules = array(
'image' => 'image',
);
@jayeshcp
jayeshcp / Chrome_Notification.js
Last active August 29, 2015 13:57
Show popup notification from Chrome Extension
var options = {
type: 'basic',
iconUrl: 'images/app_icon.png',
title: chrome.i18n.getMessage("appName"),
message: chrome.i18n.getMessage("notif_message"), //You haven't made entry to your diary. Want to finish now ?
buttons: [
{
title: chrome.i18n.getMessage("add_now")
}
]
@jayeshcp
jayeshcp / sublime-preferences.md
Last active September 17, 2016 15:29
Sublime Text User Preferences

In order to install packages, package control needs to be installed. Please refer to https://packagecontrol.io/installation.

{
	"bold_folder_labels": true,
	"caret_style": "phase",
	"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
	"font_size": 15,
	"highlight_color_blue": true,
	"highlight_line": true,
	"highlight_modified_tabs": true,
@jayeshcp
jayeshcp / ReadProperties.java
Last active August 11, 2016 16:43
Reading .properties file
/**
* This program reads config.properties file and displays
* all the keys and values
*
* @author Jayesh Chandrapal
* @version 1.0
*/
import java.util.Properties;
import java.io.InputStream;