What do you want to save?
Add Code snippet
New code examples
-
Swift 2022-03-25 00:20:01
closure swift
// The basic closure syntax is: // { (parameter: Type) -> Type in <statements> } // // While closures can be assigned to a variable like in // the example below, they become much more useful once // they're passed into a function such as a list'... Add solution -
Shell/Bash 2022-03-24 23:10:26
linux basic commads
ls - list everything in current dirrectory cd directoryname - change directory to given directory cp directorynameofcopied directorynamewheretocopy - copes a file or folder mv directoryoffiletobemoved directrynameofdestinationtomove - moves a file pwd - p... Add solution -
Python 2022-03-24 23:05:02
python convert array to linked list
# credit to the Stack Overflow user in the source link linked_list = {'a':'b', 'b': 'c', 'c': 'd', 'd': None} def next_ll(state=['a']): value = state[0] if value is not None: state[0] = linked_list[value] return value [x for x in iter(next_l... Add solution -
Python 2022-03-24 18:30:25
import views
from django.shortcuts import render, redirect from django.urls import reverse_lazy from django.contrib.auth.models import User from django.contrib.auth import authenticate, login from .forms import UserRegistrationForm from django.views.generic import (C... Add solution -
Other 2022-03-24 12:45:09
kotlin join strings from list
list.joinToString(<separator>) Add solution