What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2022-02-19 23:20:05
how to upgrade to latest node in ubuntu 17.04 using terminal
# Using Ubuntu curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash - sudo apt-get install -y nodejs # Using Debian, as root curl -sL https://deb.nodesource.com/setup_13.x | bash - apt-get install -y nodejs Add solution -
SQL 2022-02-15 23:55:05
sql get list of domains and the tables that use them
--Queries an sde-schema geodatabase in SQL Server DECLARE @DOMAIN_NAME NVARCHAR(MAX); SET @DOMAIN_NAME = 'Material'; DECLARE @CLASS_DEFS TABLE ( Name nvarchar(max), Definition XML ) --Insert records to temporary record set INSERT INTO @CLASS_... Add solution -
Javascript 2022-02-08 06:50:07
d3 force simulation
var width = 600, height = 400; var colorScale = ['orange', 'lightblue', '#B19CD9']; var xCenter = [100, 300, 500] var numNodes = 100; var nodes = d3.range(numNodes).map(function(d, i) { return { radius: Math.random() * 25, category: i % 3 ... Add solution -
Javascript 2022-02-02 21:05:02
Inserting HTML elements with JavaScript
function create(htmlStr) { var frag = document.createDocumentFragment(), temp = document.createElement('div'); temp.innerHTML = htmlStr; while (temp.firstChild) { frag.appendChild(temp.firstChild); } return frag; } var... Add solution -
CSS 2022-02-02 21:00:07
css select text inside div
CSS doesn't work this way. As biziclop says in the comments, text nodes can't be selected with CSS. You'll either have to wrap your text in a <span> and use .test span { cursor: pointer; } With <div class="test"> <span&g... Add solution
Best helpers
Ranking is empty