What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-01-24 03:41:34
Write a shell script that takes two strings as input and determines whether two strings are the anagram.
function isAnagram(stringA, stringB) { // Sanitizing stringA = stringA.toLowerCase().replace(/[\W_]+/g, ""); stringB = stringB.toLowerCase().replace(/[\W_]+/g, ""); // sorting const stringASorted = stringA.split(""... Add solution -
Javascript 2022-01-22 06:15:57
example of a traditional NetSuite search
var filters = []; filters.push(new nlobjSearchFilter('item', null, 'anyof', item)); filters.push(new nlobjSearchFilter('location', null, 'noneof', '@NONE@')); var columns = []; columns.push(new nlobjSearchColumn('internalid')); columns.push(new nlobjSearc... Add solution -
TypeScript 2021-12-23 18:11:22
script to see what tkinter fonts installed on system
from tkinter import * from tkinter import font root = Tk() root.title('Font Families') fonts=list(font.families()) fonts.sort() def populate(frame): '''Put in the fonts''' listnumber = 1 for item in fonts: label = "listlabel&quo... Add solution -
C++ 2021-12-23 16:19:06
use macro in competitive programing c++
#include <bits/stdc++.h> // Include every standard library using namespace std; #define FASTIO ios::sync_with_stdio(false); cin.tie(0); cout.tie(0) #define MULTIPLE_TEST int t; cin>>t; while(t--) //for multilple cases problems #define bit(x,i... Add solution -
Python 2021-11-21 12:33:28
how to sort a list in python
# sort() will change the original list into a sorted list vowels = ['e', 'a', 'u', 'o', 'i'] vowels.sort() # Output: # ['a', 'e', 'i', 'o', 'u'] # sorted() will sort the list and return it while keeping the original sortedVowels = sorted(vowels) # Output... Add solution -
Python 2021-11-14 22:47:12
tkinter canas can you use other fonts
from tkinter import * from tkinter import font root = Tk() root.title('Font Families') fonts=list(font.families()) fonts.sort() def populate(frame): '''Put in the fonts''' listnumber = 1 for item in fonts: label = "listlabel&quo... Add solution