What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-08-31 09:01:02
javascript check if dom element exists
var element = document.getElementById("test"); //If it isn't "undefined" and it isn't "null", then it exists. if(typeof(element) != 'undefined' && element != null){ alert('Element exists'); } else{ alert('Ele... Add solution -
C# 2021-08-29 19:14:01
c# get enum in list
Enum.GetValues(typeof(SomeEnum)).Cast<SomeEnum>(); Add solution -
C# 2021-08-29 10:35:02
Camera Fit: Screen Handler free download
[ExecuteInEditMode] [RequireComponent(typeof(Camera))] public class MatchWidth : MonoBehaviour { // Set this to the in-world distance between the left & right edges of your scene. public float sceneWidth = 10; Camera _camera; void St... Add solution -
C# 2021-08-29 10:27:02
wpf binding to static property in code behind
var propertyInfo = typeof(ShellWindow).GetProperty("ProgressbarVisibility"); var propertyPath = new PropertyPath("(0)", propertyInfo); var binding = new Binding() { Path = propertyPath, Mode = BindingMode.TwoWay }; Add solution -
Javascript 2021-08-27 20:14:01
get browser id using javascript
agent = {browser:{name:null,version:null,v:null,userAgent:null,app:null,os:null},mobile:false,pointlock:false}; var nVer = navigator.appVersion; var nAgt = navigator.userAgent; var browserName = navigator.appName; var fullVersion = ''+parseFloat(naviga... Add solution