This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that "zquestz.id" is my Blockstack ID. https://onename.com/zquestz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"all": { | |
"assets": [ | |
{ | |
"name": "http://digital-photography-school.com/wp-content/uploads/flickr/2746960560_8711acfc60_o.jpg", | |
"tags": { | |
"ancient": [ | |
{ | |
"name": "ancient", | |
"score": 0.07079402788556059, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'thread' | |
class ThreadPool | |
attr_reader :queue, :threads | |
def initialize(size = 10) | |
@queue = Queue.new | |
@threads = [] | |
size.times do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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); | |
} |
NewerOlder