What do you want to save?
Add Code snippet
New code examples
-
Kotlin 2022-03-16 13:50:04
okhttp kotlin example
val BASE_URL = "https://api.unsplash.com" val ACCESS_KEY = "..." val path = "/photos/$id" val uri = Uri.parse(BASE_URL) .buildUpon() .appendEncodedPath(path) //.appendPath(path) .build() val client = OkHttpC... Add solution -
Python 2022-03-16 12:25:11
python hoe to make a text box
import tkinter as tk root= tk.Tk() canvas1 = tk.Canvas(root, width = 400, height = 300, relief = 'raised') canvas1.pack() label1 = tk.Label(root, text='Calculate the Square Root') label1.config(font=('helvetica', 14)) canvas1.create_window(200, 25, wi... Add solution -
C++ 2022-03-13 06:15:02
static inside local scope in c++
#include<iostream> //Singleton class is a class having only one instance class SingleTon { public: static SingleTon& Get() { static SingleTon s_Instance; return s_Instance; }//there is only one instance of static functions and variables a... Add solution -
Javascript 2022-03-12 20:20:10
match height jquery
var matchHeight = function(classe, perLine) { var peeps = $(String(classe)+":visible").css('height','auto').get(); var line = isNaN(perLine) ? peeps.length : parseInt(perLine); for(var i = 0;i<peeps.length;i=i+line) { var height = 0... Add solution -
Other 2022-03-02 10:35:01
immediateFuture to test classes
@Test public void completeExceptionallyOnCallbackFailure() { ListenableFuture<UserRecordResult> failureResponse = Futures.immediateFailedFuture(new RuntimeException()); CompletableFuture future = new CompletableFuture(); handleResponse(... Add solution