What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-13 04:45:06
javascript touch scroll event
var lastTouch = null window.addEventListener('touchstart', function (event) { lastTouch = event.touches[0] }) window.addEventListener('touchend', function (event) { lastTouch = null }) window.addEventListener('touchmove', function (event) { var c... Add solution -
Java 2022-03-13 04:15:04
ClickableSpan multiple
1 private void makeTagLinks(final String text, final TextView tv) { 2 if (text == null || tv == null) { 3 return; 4 } 5 final SpannableString ss = new SpannableString(text); 6 final List items = Arrays.asList(text.split("\\s*,\\s 7 int start =... Add solution -
Python 2022-03-13 00:45:08
guess the word python
import random # Put words to guess inside the array words = [] word = random.choice(words) n = len(word) print("Guess the word") guesses = '' #number of turn is equal to the legnth of the word stored in 'n' turns = n while turns > 0... Add solution -
C# 2022-03-12 20:00:13
string $ c#
string string1 = "Today is " + DateTime.Now.ToString("D") + "."; Console.WriteLine(string1); string string2 = "This is one sentence. " + "This is a second. "; string2 += "This is a third sentence.&qu... Add solution