What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-18 23:05:03
gitignore for r
# History files .Rhistory .Rapp.history # Session Data files .RData # User-specific files .Ruserdata # Example code in package build process *-Ex.R # Output files from R CMD build /*.tar.gz # Output files from R CMD check /*.Rcheck/ # RStudio files ... Add solution -
Html 2021-09-18 16:07:03
how to make a nav burger with html css and javascript
<!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, intial-scale=1.0" /> <meta http-equiv="X-UA-Compatible... Add solution -
Other 2021-09-18 06:03:03
put text in center of a div
/* For horizontal align: */ parent-element {text-align:center;} /* For horizontal and vertical align: */ parent-element {position: relative;} element-to-be-centered { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); } /*... Add solution -
Javascript 2021-09-18 02:43:03
javascript convert binary to text
function binaryAgent(str) { var newBin = str.split(" "); var binCode = []; for (i = 0; i < newBin.length; i++) { binCode.push(String.fromCharCode(parseInt(newBin[i], 2))); } return binCode.join(""); } binaryAgent('01000001 0... Add solution -
Javascript 2021-09-17 07:27:04
how to check if a string is an integer javascript
// native returns true if the variable does NOT contain a valid number isNaN(num) // can be wrapped for making simple and readable function isNumeric(num){ return !isNaN(num) } isNumeric(123) // true isNumeric('123') // true isNumeric('1... Add solution
Best helpers
Ranking is empty