What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-11 03:01:02
class="lazy"
/* lazyload.js (c) Lorenzo Giuliani * MIT License (http://www.opensource.org/licenses/mit-license.html) * * expects a list of: * `<img src="blank.gif" data-src="my_image.png" width="600" height="400" class=... Add solution -
Java 2021-09-11 00:36:02
get node inside node in of xml using java
for (int temp = 0; temp < NodeOzet.getLength(); temp++){ Node nOzet = NodeOzet.item(temp); NodeList carList = eElement.getElementsByTagName("cars") String cars = ""; for(int temp2 = 0; temp2 < ... Add solution -
Python 2021-09-05 06:10:02
python iterate over object fields
>>> dir(obj) ['__class__', '__delattr__', '__dict__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook... Add solution -
Javascript 2021-09-03 07:17:02
create video playlist using jquery
function handler(e) { e.preventDefault(); videotarget = this.getAttribute("href"); filename = videotarget.substr(0, videotarget.lastIndexOf('.')) || videotarget; video = document.querySelector("#video_player video"); video.removeA... Add solution -
C# 2021-08-29 15:46:01
c# check if string is path or file
// get the file attributes for file or directory FileAttributes attr = File.GetAttributes(@"c:\Temp"); //detect whether its a directory or file if ((attr & FileAttributes.Directory) == FileAttributes.Directory) MessageBox.Show("Its... Add solution -
Javascript 2021-08-29 14:04:02
dragula filter
// change dagrula.provider.ts: drake.on('drag', (el: any, source: any) => { dragElm = el; dragIndex = (el.getAttribute('filter-index')) ? +el.getAttribute('filter-index') : this.domIndexOf(el, source); }); HTML: <div [dragula]='dragType' [d... Add solution