The program below can take one or more plain text files as input. It works with python2 and python3.
Let's say we have two files that may contain email addresses:
- file_a.txt
foo bar
ok [email protected] sup
[email protected],wyd
hello world!
<?php | |
/* Template Name: Test */ | |
/** | |
* Genesis custom loop | |
*/ | |
function be_custom_loop() { | |
global $post; | |
// arguments, adjust as needed |
The program below can take one or more plain text files as input. It works with python2 and python3.
Let's say we have two files that may contain email addresses:
foo bar
ok [email protected] sup
[email protected],wyd
hello world!
#!/bin/bash | |
# Converts audio formats in bulk | |
# requires avconv | |
fformat=m4a | |
tformat=mp3 | |
c=0 | |
t=0 | |
files=*.$fformat |
<?php | |
// filter to exclude specified post_meta from Polylang Sync ## | |
add_filter( 'pll_copy_post_metas', 'q_pll_copy_post_metas' ); | |
/** | |
* Remove defined custom fields from Polylang Sync | |
* | |
* @since 0.1 | |
* @param Array $metas |
Not all random values are created equal - for security-related code, you need a specific kind of random value.
A summary of this article, if you don't want to read the entire thing:
Math.random()
. There are extremely few cases where Math.random()
is the right answer. Don't use it, unless you've read this entire article, and determined that it's necessary for your case.crypto.getRandomBytes
directly. While it's a CSPRNG, it's easy to bias the result when 'transforming' it, such that the output becomes more predictable.uuid
, specifically the uuid.v4()
method. Avoid node-uuid
- it's not the same package, and doesn't produce reliably secure random values.random-number-csprng
.You should seriously consider reading the entire article, though - it's
USE MarkerTechV2CMS | |
GO | |
WITH Fields | |
AS | |
( | |
SELECT | |
pd.ProductDefinitionId [ChildDefinitionID] | |
, pd.ProductDefinitionId | |
, pd.Name AS [ProductDefinitionName] |
import React, { useContext, useState, useEffect, createContext } from 'react'; | |
import { supabase } from '../supabase'; | |
// create a context for authentication | |
const AuthContext = createContext(); | |
export const AuthProvider = ({ children }) => { | |
// create state values for user data and loading | |
const [user, setUser] = useState(); | |
const [loading, setLoading] = useState(true); |