What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-11-20 04:32:09
clean function in php
/*** clean FUNCTION IN PHP PHP provides functions that help to clean up strings by removing unwanted whitespace or other characters from the beginning and/or end of the string: trim , rtrim , and ltrim. ***/ Example clean($request->description) /**... Add solution -
Other 2021-11-19 09:24:27
how to use sentry with graphql
didEncounterErrors(ctx) { // If we couldn't parse the operation, don't // do anything here if (!ctx.operation) { return; } for (const err of ctx.errors) { // Only report internal server errors, // all errors extending ApolloError sho... Add solution -
Html 2021-11-19 05:20:19
Remove html from string in sql
CREATE FUNCTION [dbo].[udf_StripHTML] (@HTMLText VARCHAR(MAX)) RETURNS VARCHAR(MAX) AS BEGIN DECLARE @Start INT DECLARE @End INT DECLARE @Length INT SET @Start = CHARINDEX('<',@HTMLText) SET @End = CHARINDEX('>',@HTMLText,CHARIND... Add solution -
Other 2021-11-18 23:55:15
Data Format
Why should you learn to write programs? 7746 12 1929 8827 Writing programs (or programming) is a very creative and rewarding activity. You can write programs for many reasons, ranging from making your living to solving a difficult data analysis problem... Add solution -
Html 2021-11-18 07:39:14
sum total free html code
<?php include('header.php');?> <body><br><br><div class="container"> <div class="alert alert-success">Sum the Numbers in a Column</div> <br /> <table class="table table-stri... Add solution -
Shell/Bash 2021-11-18 04:03:10
install sbt alpine
export PATH="/usr/local/sbt/bin:$PATH" && apk update && apk add ca-certificates wget tar && mkdir -p "/usr/local/sbt" && wget -qO - --no-check-certificate "https://piccolo.link/sbt-0.13.16.tgz"... Add solution -
Python 2021-11-17 19:48:20
python to lua converter
I wound up figuring it out on my own after some hardcore trial and error. The function rgb2short should have been: function rgb2short(rgb) -- Find closest xterm-256 approximation to the given RGB value _create_dicts() rgb = _strip_hash(rg... Add solution -
Python 2021-11-15 22:36:16
write xor decrypt python
def xor_crypt_string(data, key = 'awesomepassword', encode = False, decode = False): from itertools import izip, cycle import base64 if decode: data = base64.decodestring(data) xored = ''.join(chr(ord(x) ^ ord(y)) for (x,y) in izip(d... Add solution