Skip to content

Instantly share code, notes, and snippets.

Free latex/nitrile gloves
0: ['latex_free_nitrile_gloves',
'are_nitrile_gloves_latex_free',
'nitrile_or_latex_gloves',
'latex_or_nitrile_gloves',
'is_nitrile_gloves_latex_free',
'nitrile_gloves_latex_free',
'free_latex_gloves',
'nitrile_free_gloves',
0: ['local_marketing_solutions',
'marketing_solutions_online',
'digital_marketing_solutions',
'local_digital_marketing_solutions',
'website_marketing_solutions',
'internet_marketing_solutions',
'business_marketing_solutions',
'digital_marketing_solutions_company',
'site_marketing_solutions',
'online_marketing_solution',
First Sweep of DBSCAN:
DBSCAN(eps=24.37, min_samples=10).fit(new_vectors)
Email Blasts
0: ['email_blast',
'blast_email',
'email_blast_size',
--- Main topics of ThriveHive (Semrush + Spyfu keywords) based on detected clusters ----
Main Topcis:
Email Blasts
Facebook Tagging
Email subject line
Raw Tm Ouput for "oracle_database" query
[(u'relational_database', 0.7822651624720822),
(u'rdsadmin_util', 0.7787341712211107),
(u'exec_rdsadmin', 0.7743804381040291),
(u'multitenant_architecture', 0.7698099597277153),
(u'redo_log', 0.7678954596330855),
(u'rc_droot', 0.7666727633511776),
(u'right-click_the_table', 0.7662226424822405),
(u'step-by-step_oracle', 0.7648878850923293),
"use strict";
function cache_store(callback, key, value) {
callback('store ' + value + ' to cache' );
};
function slow_provider_function(callback, key) {
const providerResult = 'provider result';
setTimeout(function() {
console.log('slow result fetched');
module Api
module V2
class ApiController < ::ApplicationController
before_action :doorkeeper_authorize!, unless: :public_endpoint?
skip_before_filter :verify_authenticity_token
skip_before_filter :ensure_locale_and_platform
skip_before_filter :store_locale_and_platform
skip_before_filter :set_user_time_zone
class AdsController < ApplicationController
before_action :require_auth, :default_params
# rubocop:disable Style/MethodLength
def index
@contest = Contest.find(@params[:contest_id], cookies, {})
query_params = 'embed[resource]=[id,image.url(:detail_preview),url(:mp4),url(:ogg)]' \
'&embed[nested][user][profile]=[email][last_name,first_name,avatar.url(:detail)]' \
'&embed[votes]=[all,rate,user_id]' \
@soeffing
soeffing / gist:78ce88f33d6538edb942
Created December 29, 2014 15:11
Drying up controllers
module Api
module V2
class AdsController < ApiController
respond_to :json
before_filter :return_attributes
before_filter :check_for_file_urls, only: [:update, :create]
def create
@object = ::Ad.new(params[:ad])
require 'open-uri'
class Ad < ActiveRecord::Base
# NOTE: These need to come before inclusion of CountsEntries module
STATES = [:uploaded, :encoded, :published, :invalid]
AVAILABLE_TYPES = %w(Video Print Radio Banner Concept)
include CountsEntries