Welcome To Snipplr


Everyone's Recent Snippets



Using foreach to loop over each character letter in a string. Microsoft Official Reference: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/foreach-in Explanations from other websites: https://www.dotnetperls.com/loop-...
0 1606 posted 8 years ago by clinaq
Microsoft Official Documentation: https://msdn.microsoft.com/en-us/library/8s62fh68(v=vs.110).aspx
0 1713 posted 8 years ago by clinaq
This snippet allows you to get random record from given table by weight. To run it, it must have a field named "weight". The more "weight" is assigned, the more often the record is selected. The value of "weight" should be an integer between 1 and 10...
0 1515 posted 8 years ago by apphp-snippets
This snippet allows you to insert new record into table. In case a unique key already exists - it updates appropriate fields only, leaving other fields untouched.
0 1477 posted 8 years ago by apphp-snippets
This example is a full HTML5 article structure. Just copy/paste it into your page to check.
0 1529 posted 8 years ago by apphp-snippets
To send data into iFrame you don't need JavaScript or anything. You just have the form's target attribute match the iframe's name attribute. The outer page doesn't even reload. Copy this code and test it.
0 2377 posted 8 years ago by apphp-snippets
If using transparency on a block element it makes the text inside transparent as well. Is there a way you can prevent that from happening? Yes, you may do it by putting the text in another div and setting the opacity to 100%, but that didn't do the j...
0 1539 posted 8 years ago by apphp-snippets
You may align background image not only to left or top corner, but also use an offset for alignment.
0 1596 posted 8 years ago by apphp-snippets
Some configurations for mysql 5.7
0 1143 posted 8 years ago by ironcrema
This snippet code allows you to prevent the viewer from being able to right-click on your page. This can discourage the average user from borrow images or code from your site.
0 1447 posted 8 years ago by apphp-snippets
This code allows to calculate the full size of a directory using PHP.
0 1396 posted 8 years ago by apphp-snippets
This code allows to perform a query to WhoIs service in PHP.
0 1340 posted 8 years ago by apphp-snippets
A few examples of the COS function.
0 1280 posted 8 years ago by bbrumm
A few examples of the VARIANCE function.
0 1327 posted 8 years ago by bbrumm
The below code has 2 snippets. to find the time difference from the current zone and the other is to find the timezone of the server
0 1326 posted 8 years ago by sankarwaits
Set headers for file download
0 1173 posted 8 years ago by macodev
Following steps to be completed to configure an email account and send email from SQL Server
0 1353 posted 8 years ago by sankarwaits
A few examples of the CORR function.
0 1386 posted 8 years ago by bbrumm
An example of the DBTIMEZONE function.
0 1279 posted 8 years ago by bbrumm
A few examples of the BFILENAME function.
0 1368 posted 8 years ago by bbrumm
A few examples of the SESSIONTIMEZONE function.
0 1241 posted 8 years ago by bbrumm
A few examples of the BIN_TO_NUM function.
0 1392 posted 8 years ago by bbrumm
A few examples of the CUME_DIST function.
0 1310 posted 8 years ago by bbrumm
https://www.chrisjmendez.com/2017/03/18/bash-ec2-script/
0 1402 posted 8 years ago by chrisaiv
A few examples of the CHARTOROWID function.
0 1336 posted 8 years ago by bbrumm
A few examples of the ASIN, function.
0 1230 posted 8 years ago by bbrumm
A few examples of the GROUP_ID function.
0 1275 posted 8 years ago by bbrumm
A few examples of the EMPTY_CLOB function.
0 1314 posted 8 years ago by bbrumm
A few examples of the EMPTY_BLOB function.
0 1234 posted 8 years ago by bbrumm
A few examples of the NEW_TIME function.
0 1294 posted 8 years ago by bbrumm