What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-21 09:09:04
d flip flop vhdl test bench code
library IEEE; use IEEE.STD_LOGIC_1164.ALL; use IEEE.STD_LOGIC_ARITH.ALL; use IEEE.STD_LOGIC_UNSIGNED.ALL; entity DFF_tb is end entity; architecture tb of DFF_tb is component D_FLIPFLOP_SOURCE is Port ( D, CLK, RST : in STD_LOGIC; Q, Qb : out STD_LOGIC)... Add solution -
Python 2021-09-21 08:38:02
python add labels to seaborn heatmap
# Basic syntax: sns.heatmap(df, xticklabels=x_labels, yticklabels=y_labels) # Example usage: import seaborn as sns flight = sns.load_dataset('flights') # Load flights datset from GitHub # seaborn repository # Reshape flights dataeset to creat... Add solution -
Java 2021-09-21 03:56:01
picasso circle transformation android
import com.squareup.picasso.Transformation; public class CircleTransform implements Transformation { @Override public Bitmap transform(Bitmap source) { int size = Math.min(source.getWidth(), source.getHeight()); int x = (source.g... Add solution -
Javascript 2021-09-20 23:30:03
Convert a string to numbers in an array and define by even and odd values
// Convert a string to numbers in an array and define by even and odd values function reverseOdd(str) { let odd = []; let even = []; let arrayStr = str.split(" ").map(function(element){return element.length;}); for (var i = 0; i < array... Add solution -
Javascript 2021-09-20 18:42:04
javascript sum of all the multiples of 3 or 5 below 1000 running total
(() => { // sum35 :: Int -> Int const sum35 = n => { // The sum of all positive multiples of // 3 or 5 below n. const f = sumMults(n); return f(3) + f(5) - f(15); }; // sumMults ... Add solution -
Javascript 2021-09-20 18:05:04
javascript average of float array
Array.prototype.avg=function(fn){ fn =fn || function(e,i){return e}; return (this.map(fn).reduce(function(a,b){return parseFloat(a)+parseFloat(b)},0) / this.length ) ; }; [ 1 , 2 , 3].avg() ; //-> OUT : 2 [{age:25},{age:26},{age:27}].avg(fu... Add solution
Best helpers
Ranking is empty