What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-01-28 17:25:23
browser detect javascript
//gets the type of browser function detectBrowser() { if((navigator.userAgent.indexOf("Opera") || navigator.userAgent.indexOf('OPR')) != -1 ) { return 'Opera'; } else if(navigator.userAgent.indexOf("Chrome") != -1 ... Add solution -
Javascript 2022-01-28 05:55:22
callback without duplicates javascript
function myFunction(myArray, callBack){ var unique = myArray.filter(function(item, pos) { //validates whether the first occurrence of current item in array // equals the current position of the item (only return those items) return myArray.ind... Add solution -
C# 2022-01-26 16:31:12
c# get username of process
//----------------------------------------- // Very fast non-WMI process username search // import System.Security.Principal // and System.Runtime.InteropServices // for this to work //----------------------------------------- private static string GetP... Add solution -
Html 2022-01-24 03:20:28
how to change font size on button click in javascript
<script type="text/javascript"> var fontSizes = [ "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large" ]; function ... Add solution -
Javascript 2022-01-23 15:56:40
marketo landing page locked content
//FORM PAGE CUSTOM HEADER HTML <script src="forms2.min.js"></script><script>MktoForms2.whenReady(function(form){form.onSuccess(function(vals,tyURL){document.location.href = 'MYURL?CHECKSTRING=VALUE';return false;});});</scri... Add solution -
C# 2022-01-23 05:50:52
find first occurrence of character in string
// applies to C# string S = "Any String At All" int Sindex = S.indexOf("A") // accepts string or char arguments. // "Sindex" would be equal to "0", as the indexOf(); meathod returns // the index position of the fi... Add solution