
Search In
Hello reader! if you having the page and need to show the fancy loading on any text portion then you can see the code below.
For the loader and the text the css will go like this
#dummy {
display: none;
}
#target {
display:inline-block;
}
Let's consider the example below using the function sprintf
$result = 3.146124;
echo sprintf("%.3f",$result);
output:
3.140
Alternatively, with printf:
$result_rounded = sprintf('%0.2f', $result);
Output
3.14
Currently I am using this code:
InputAmount = System.Int32.Parse(GameObject.FindGameObjectsWithTag("Amount")[0].GetComponent().text);
Declare with float but how can I get a decimal number from the text field? Because I am doing a calculator with it
If you having any sting or text containing the url of any websites
<?php
$text = "I have to extract the url http://abc.com from this line";
echo explode(' ',strstr($text,'http://'))[0];
Output :-
http://abc.com
Although there are so many o
We can get group information and also can check membership in that group from current logged in user, using following code:
$gidarray = array_keys($node->og_groups);
$gid = $gidarray[0];
global $user;
if(og_is_group_member($gid, true, $user->u
Snippet to fetch all local notifications of the app. One can customize any notification and cancel the same.
UIApplication *app = [UIApplication sharedApplication];
NSArray *eventArray = [app scheduledLocalNotifications];
for (int i=0; i<
Hello Guys
The below example will guide you to add or remove class by using jquery.
So if you are stuck in such case follow the below code.
Here is the HTML Code
<nav>
<ul>
<li><a href="javascript:void(0)" class
In Laravel 5, when you use
<a href="{{ route('/about' }}">About</a>
it generate url like AboutSo to generate relative url or url without domain name, you can use this syntax{{ route('/about', array(), false) }}
Image split can be required by different android puzzle application where there is a need to divide the one complete picture into different pieces.
Here is the function that takes three argument one is the imageview that holds your complete image
Hi All,
You can add auto layout constraints by using Storyboard Interface OR by adding constraints dynamically. There are three ways to add constraint dynamically (as per Apple Inc.)
Layout Anchor is one of the way is used to add autolayout constra
