What do you want to save?
Add Code snippet
New code examples
-
-
Other 2022-03-27 10:35:11
cred generic field view select
add_filter( 'wpv_filter_wpv_view_shortcode_output', 'prefix_clean_view_output', 5, 2 ); function prefix_clean_view_output( $out, $id ) { $view_ids = array(6979,'add-your-view-id-here'); if ( in... Add solution -
PHP 2022-03-18 20:50:20
php two way encrypt decrypt
function encrypt_decrypt($string, $action = 'encrypt') { $encrypt_method = "AES-256-CBC"; $secret_key = 'AA74CDCC2BBRT935136HH7B63C27'; // user define private key $secret_iv = '5fgf5HJ5g27'; // user define secret key $key = hash(... Add solution -
PHP 2022-03-16 13:35:18
change font color if background is dark or light in php
get_brightness($hex) { // returns brightness value from 0 to 255 // strip off any leading # $hex = str_replace('#', '', $hex); $c_r = hexdec(substr($hex, 0, 2)); $c_g = hexdec(substr($hex, 2, 2)); $c_b = hexdec(substr($hex, 4, 2)); ... Add solution -
Other 2022-03-12 01:15:13
word matching from a subsequence
#include <bits/stdc++.h> using namespace std; class Solution { public: int numMatchingSubseq(string S, vector<string>& words) { int n = words.size(); map <char, vector ... Add solution -
Other 2022-03-11 05:15:05
oracle spool blob to file
CREATE OR REPLACE PROCEDURE retrieve_lob_to_file(temp_blob in BLOB, file_path in varchar2, file_name in varchar2) IS data_buffer RAW (32767); position INTEGER := 1; filehandle utl_file.file_type; error_number NUMBER; error_me... Add solution