Skip to content

Instantly share code, notes, and snippets.

View zquestz's full-sized avatar

Josh Ellithorpe zquestz

View GitHub Profile
<?php
function check_terms($line, $search_terms) {
$retval = true;
$matrix = array();
foreach ($search_terms as $term) {
if (strpos(strtolower($line), strtolower($term)) > 0) {
array_push($matrix, true);
} else {
array_push($matrix, false);
}
@zquestz
zquestz / thread_pool.rb
Last active May 12, 2019 03:08
threadpool
require 'thread'
class ThreadPool
attr_reader :queue, :threads
def initialize(size = 10)
@queue = Queue.new
@threads = []
size.times do
Verifying that "zquestz.id" is my Blockstack ID. https://onename.com/zquestz

Keybase proof

I hereby claim:

  • I am zquestz on github.
  • I am zquestz (https://keybase.io/zquestz) on keybase.
  • I have a public key ASDRkDKb7OFOZv4n1__n19QkfCnlljPn1fPkOQBHI_PMrQo

To claim this, I am signing this object: