Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This the base code for creating adapter class which is used for filling recyclerview in android.
This snippet is written in kotlin but it is same to the java version
0
16207
posted 3 years ago by m3000
<p><div id="calc">
<p><b>VAT rate:</b>
<input type="text" id="vat_rate" placeholder="20" size="10" value>
<p><b>Net price:</b>
<input type="text" id="net_price" size="10" value>
<p><b>Gross price:</b>
<input type="text" id="gross_price" size="1...
0
12262
posted 3 years ago by antonykidless
The examples use real providers that launch real resources. That means they can cost money to experiment with. To avoid unexpected charges, be sure to understand the price of resources before launching them, and verify any unneeded resources are clea...
0
11258
posted 4 years ago by NehaBharti5825
This is used to validate a date in a specific format. The code example is to validate whether it is a valid dd/MM/yyyy Date Format.
1
17797
posted 4 years ago by jlustre
Always gives me perfect date.
Sample Output
Current Day is: 1
Current Month is: 2
Current Year is: 2020
Current Hour is: 17
Current Minute is: 3
Current Second is: 8
Current Microsecond is: 556483
2
12832
posted 4 years ago by johnwalsh1
Count For Human is a short cut for long digits to short human readable. E.g. 2045 the result is 2k.
0
11229
posted 4 years ago by RhynelAlgopera4316
Laravel provides several different ways to validate your application incoming data.By default Laravel’s base controller class uses a ValidatesRequests trait which provides a convenient method to validate all incoming HTTP requests coming from client....
0
10603
posted 4 years ago by devquora
To display events from The Events Calendar Pro organized by taxonomy
0
10396
posted 4 years ago by reflectiondigital
fixes the dropdown li menu in Divi after shrinking header scroll to keep the li elements the correct color
0
10425
posted 4 years ago by sharkpuck
In this article, we will show you how to create a Hibernate Application using Java configuration without using hibernate.cfg.xml to connect the MySQL database.
Below diagram shows Java code for Hibernate settings equivalent to hibernate.cfg.xml's...
0
15001
posted 4 years ago by priyagchaudhary
JavaScript is a client-side as well as server side scripting language that can be inserted into HTML pages and is understood by web browsers. JavaScript is also an Object based Programming language.
Example
Note: This is an example, you can change...
0
10492
posted 4 years ago by priyagchaudhary
CSS gradients help you to display transitions between more than two colors. In order to create a linear gradient, you must represent at least two color stops. Color stops are the colors you desire to render smooth transitions among. In addition to th...
0
10090
posted 4 years ago by devquora
Typoscript fields are not exported by default in Powermail. If you want them to be exported you need to add this line in the Page TSConfig of your root page or form page:
0
9605
posted 4 years ago by xtine777
Function for obfuscate Text in html pages. good for making screenshot and mind data protection if needed. changes Text into many small divs with different bgcolor.
0
10827
posted 4 years ago by PietKeizer
installed in a special folder /wp-content/mu-plugins and disabled auto-update plugins and core WP
0
10398
posted 4 years ago by cerxx
A quick snippet to rotate a series of words on page load using PHP.
1
10378
posted 4 years ago by danparks
How to set the PHP maximum execution time and script memory limit in an .htaccess file
0
11104
posted 4 years ago by cerxx
With this snippet you will have the ability to deliver the most recent version of any file.
When dealing with a browser's cache you can't be certain your viewers are getting the most recent copy. By appending a GET value (the UNIX timestamp) to, f...
0
9420
posted 4 years ago by daemondevin
With this snippet you will have the ability to display the `<DOCTYPE>` while sending the correct headers with support for content type negotiation.
It also will correct itself for the W3C validator which does not send the correct Accept header for...
0
9051
posted 4 years ago by daemondevin