What do you want to save?
Add Code snippet
New code examples
-
Python 2022-01-28 23:25:36
decoding encoding script for pythong
#novince coder, dont know if im doing this right XD EncodingValues = ['q','w','e','r','t','y','u','i','o','p','a','s','d','f','g','h','j','k','l','z','x','c','v','b','n','m','Q','W','E','R','T','Y','U','I','O','P','A','S','D','F','G','H','J','K','L','Z','... Add solution -
Other 2021-11-20 18:12:19
how to turn index(_rawBits:)into int in siwft
//swift 4-5 let text = "abc" let index2 = text.index(text.startIndex, offsetBy: 2) //will call succ 2 times let lastChar: Character = text[index2] //now we can index! let characterIndex2 = text.index(text.startIndex, offsetBy: 2) let lastChar2 ... Add solution -
Javascript 2021-10-21 16:49:09
javascript get all characters before a certain one
// say you wanted to collect all the chars before a slash (/). myString = "12345.67890"; newString = myString.substring(0, myString.indexOf('/')); console.log(newString); // returns "12345" Add solution -
Javascript 2021-09-23 17:13:02
angular browser detector
import {Injectable} from '@angular/core'; @Injectable({ providedIn: 'root' }) export class BrowserDetectorService { private browser: string; private version: number | string; private os: any; private versionSearchString: any; private dataB... Add solution -
Python 2021-08-30 19:18:02
word search puzzle python
An improved (shorter, more efficient) version of the above: #!/usr/bin/python # -*- coding: utf-8 -*- puzzle='''F Y Y H N R D R L J C I N U A A W A A H R N T K L P N E C I L F S A P E O G O T P N H P O L A N D ''' clues = ['ITALY', 'HOLLAND'... Add solution