What do you want to save?
Add Code snippet
New code examples
-
C++ 2021-11-21 21:37:09
c++ class member initialization
class Test { private: std::string data; public: test(std::string data) : data(data) {} std::string getData() { return data; } }; int main() { Test test("This is just some random Text"); std::cout << test.getData() <<... Add solution -
CSS 2021-11-21 17:31:16
html css two column layout
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1" /> <style> body { font-family: Arial; color: white; ... Add solution -
Javascript 2021-10-27 21:10:06
vue create component
//-------------------- This is your main vue file <template> <h1>Your File Name Title</h1> <p>Random text</p> // now import your component here --- see below comments to find the component code <ComponentName /> </te... Add solution -
Javascript 2021-10-04 00:25:03
vue 3 create component
//-------------------- This is your main vue file <template> <h1>Your File Name Title</h1> <p>Random text</p> // now import your component here --- see below comments to find the component code <ComponentName /> </te... Add solution -
Swift 2021-09-18 23:54:03
swiftui textfield multiline
//You can use the .multiLineTextAlignment modifier TextField("Random text", text: $text) .multiLineTextAlignment(.leading) //This aligns the text to the left //There are more propeties besides .leading, more can be found at the source Add solution