git add [filename]
This command updates the index using the current content found in the working tree, to prepare the content staged for the next commit.
Continue“To stage file(if not yet tracked)”
What if you want your app to look and behave differently depending on whether itÄs running…
android:gravity=”value” android:gravity lets you say where you want the view’s contents to appear inside the view…
android:layout_gravity lets you say where you want views to appear in their available space. android:layout_gravity deals…
How you specify a linear layout You specify a linear layout using <LinearLayout>. You must specify…
When Android creates and destroys an activity, the activity moves from being launched to running to…
In non-Android Java, you can perform tasks like using a background thread. In Android, that approach…
Every Android app must include a file called AndroidManifest.xml. You can find it in the app/src/main…
Add a cutom class to an Android project by going to File menu -> New ->…
string.xml is the default resource file used to hold name/value pairs of Strings sot that they…
A static variables value is the same for aALL instances of the class…The static duckCount variable…
Simple rules for building a better inheritance design. DO use inheritance when one class is a…
Remember that when one class inherits from another, we say that the subclass extends the superclass.…
An example how to design classes… Figure out what the class is supposed to do List…
XP emerged in the late 90’s and has been adopted by many Developers. The thrust of…
A method uses parameters. A caller passes arguments. Arguments are the things you pass into the…
Arrays are always objects, whether they’re declared to hold primitives…int[] nums;nums = new int[3];nums[0] = 4;nums[1]…
Variables come in two flawors: Primitives Reference Primitives Primitives hold fundamental values (think: simple bit patterns)…
Activities are the unique screen pages in Android! An activity is a single focused thing your…
SetContentView (): Set up the app’s user interface. You can consider your object or ID to…
Makes compiler aware that the following method should override a method of the same name from…
Project view has two main paths: App: Here lies the actual source code of the app,…
When creating a project, it is possible to determine whether an eAPP should be backwards compatible.…
git add [filename]
This command updates the index using the current content found in the working tree, to prepare the content staged for the next commit.
Continue“To stage file(if not yet tracked)”
git diff
Show changes between the working tree and the index or a tree, changes between the index and a tree, changes between two trees, changes between two blob objects, or changes between two files on disk.
git status
Displays paths that have differences between the index file and the current HEAD commit, paths that have differences between the working tree and the index file, and paths in the working tree that are not tracked by Git
git init
This command creates an empty Git repository – basically a .git directory with subdirectories.
/**
* Change the placeholder image
*/
add_filter('woocommerce_placeholder_img_src', 'custom_woocommerce_placeholder_img_src');
function custom_woocommerce_placeholder_img_src( $src ) {
$upload_dir = wp_upload_dir();
$uploads = untrailingslashit( $upload_dir['baseurl'] );
// replace with path to your image
$src = $uploads . '/2012/07/thumb1.jpg';
return $src;
}