What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-21 14:40:31
code to convert rgb to hsl color
// see: https://en.wikipedia.org/wiki/RGB_color_model // see: https://en.wikipedia.org/wiki/HSL_and_HSV // expects R, G, B, Cmax and chroma to be in number interval [0, 1] // returns undefined if chroma is 0, or a number interval [0, 360] degrees functio... Add solution -
Java 2021-11-04 13:04:09
java hashmap syntax
// Import the HashMap class import java.util.HashMap; // First Example // Create a HashMap object called capitalCities HashMap<String, String> capitalCities = new HashMap<String, String>(); // Add keys and values (Country, City)... Add solution -
Javascript 2021-10-23 18:20:08
angular agm
Step 1: Creating new project Create a new project using command ng new gmaps-ng5 Step 2: Install Google Maps types for typescript support. Run command npm install --save @types/googlemaps Step 3: Link Google Maps JavaScript CDN inside index.html <scrip... Add solution -
Java 2021-10-21 12:16:09
java hashmap example
// Import the HashMap class import java.util.HashMap; // First Example // Create a HashMap object called capitalCities HashMap<String, String> capitalCities = new HashMap<String, String>(); // Add keys and values (Country, City)... Add solution -
Other 2021-09-23 21:31:03
Intermediate Algorithm Scripting: DNA Pairing
function pairElement(str) { //define a map object with all pair possibilities var map = {T:'A', A:'T', G:'C', C:'G'}; //split str into a char Array strArr = str.split(''); //replace each Array item with a 2d Array using map for (var i=0;i<... Add solution -
Python 2021-09-20 10:28:02
how to drag a box on your screen python
import win32gui import win32ui import win32con import win32api def saveScreenShot(x,y,width,height,path): # grab a handle to the main desktop window hdesktop = win32gui.GetDesktopWindow() # create a device context desktop_dc = win32gui.G... Add solution -
Javascript 2021-09-04 11:35:03
angular google maps
Step 1: Creating new project Create a new project using command ng new gmaps-ng5 Step 2: Install Google Maps types for typescript support. Run command npm install --save @types/googlemaps Step 3: Link Google Maps JavaScript CDN inside index.html <scrip... Add solution