What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-19 18:55:05
what is a global state?
let space = UIBarButtonItem(barButtonSystemItem: .flexibleSpace, target: nil, action: nil) let doneButton = UIBarButtonItem(title: buttonTitle, style: .done, target: self, action: #selector(doneButtonAction)) let cancelButton = UIBarButtonItem(title: canc... Add solution -
C++ 2021-09-19 14:18:02
c++ print 3d cube
#include<gl/freeglut.h> double rot = 0;float matCol[] = {1,0,0,0}; void display(){ glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT); glPushMatrix(); glRotatef(30,1,1,0); glRotatef(rot,0,1,1); glMaterialfv(GL_FRONT,GL_DIFFUSE,matCol);... Add solution -
Javascript 2021-09-19 12:23:02
[React Intl] Missing message for locale: "en"
// Disable missing translation message as translations will be added later. // We can add a toggle for this later when we have most translations. // eslint-disable-next-line const consoleError = console.error.bind(console); // eslint-disable-next-line co... Add solution -
Python 2021-09-19 10:32:06
python google translate api
# pip3 install pandas # pip3 install google_trans_new import pandas as pd from google_trans_new import google_translator translator = google_translator() translate_text = translator.translate('Hola mundo!', lang_src='es', lang_tgt='en') print(tran... Add solution -
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
Best helpers
Ranking is empty