What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-25 22:24:02
mapbox data markers
// add markers to map geojson.features.forEach(function(marker) { // create a HTML element for each feature var el = document.createElement('div'); el.className = 'marker'; // make a marker for each feature and add to the map new mapboxgl.Mark... Add solution -
Javascript 2021-09-25 15:57:04
d3 violin plot with points
<script> // set the dimensions and margins of the graph var margin = {top: 10, right: 30, bottom: 30, left: 40}, width = 460 - margin.left - margin.right, height = 400 - margin.top - margin.bottom; // append the svg object to the body of t... Add solution -
C 2021-09-25 15:51:04
BlockChain in c
int hash(); void printStruct(); void printChain(); void printWallet(); void setLocation(); int Random(); int rand(); int getBlock(); void printNewChain(); struct Block{ int locationBefore; int machineID; int locationCurrent; }; int Random(int lower, int u... Add solution -
Javascript 2021-09-25 13:53:02
embed jquery
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> // Put this script in the head of your index.html to load jQuery // The Google Hosted Libraries is a stable, reliable, high-speed, // globally... Add solution -
SQL 2021-09-25 09:39:03
Converting mysql tables to charset utf8mb4
--For each database: ALTER DATABASE database_name CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci; --For each table: ALTER TABLE table_name CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; --For each co... Add solution -
VBA 2021-09-25 06:57:02
excel vba initialize or detect NaN infinity infinity special values
'VBA function to create and detect IEEE 754 Floating-Point Arithmetic 'special values in the Double data type. 'To create a special value: MsgBox SpecialVal("PosQNaN") 'displays: 1.#QNAN MsgBox SpecialVal("NegMin") 'displays: -1.... Add solution -
Other 2021-09-25 00:15:05
Auto Size Listbox Columns
Function ControlsResizeColumns(LBox As MSForms.Control, Optional ResizeListbox As Boolean) Application.ScreenUpdating = False Dim ws As Worksheet If sheetExists("ListboxColumnWidth", ThisWorkbook) = False Then Set ws = ThisWorkb... Add solution