Skip to content

Instantly share code, notes, and snippets.

View Meekohi's full-sized avatar

Michael Holroyd Meekohi

View GitHub Profile
@Meekohi
Meekohi / d3.slider.css
Created June 21, 2018 17:06 — forked from cmdoptesc/d3.slider.css
D3: Map Timeline
.d3-slider {
position: relative;
font-family: Verdana,Arial,sans-serif;
font-size: 1.1em;
border: 1px solid #aaaaaa;
z-index: 2;
}
.d3-slider-horizontal {
height: .8em;
@Meekohi
Meekohi / scenethink_tos.md
Last active January 31, 2019 15:56
SceneThink Terms of Service Agreement

Scenethink Terms and Conditions

PLEASE READ THE FOLLOWING TERMS AND CONDITIONS CAREFULLY BEFORE USING THIS SITE OR PURCHASING SERVICES.

By using the pages in this website (the “Site”), you agree to these terms and conditions (the “Terms and Conditions”) and the Site’s privacy policy statement and incorporated herein by reference (the “Privacy Policy”). SceneThink Inc (“SceneThink”) may modify these Terms and Conditions and/or the Privacy Policy from time to time. Your continued usage of the Site will mean you accept any such changes. If you do not agree to any of these Terms or Conditions or the terms of the Privacy Policy, please do not use the Site.

Restrictions on Use of Material and Content Material that is made available on or through the Site, whether created, contributed or provided by SceneThink or any other party (collectively, “Content”), may not be copied or distributed, or republished, uploaded, posted, or transmitted in any way without the prior written consent of SceneThink or the party that

@Meekohi
Meekohi / sctkmainad.md
Created October 25, 2017 18:55
Instructions for initial setup of Scenethink Main Advertisement in Google DFP
  1. Delivery > Creatives > Add Creatives
  2. Choose the advertiser
  3. Choose Custom creative type
  4. Pick a name
  5. Upload your image under "Upload Files". Use a 600x1000px image (can actually be any size, but 600x1000 will look good)
  6. Paste this code snippet:
<div class='sctk-ad-space'>
<a href='%%CLICK_URL_ESC%%%%DEST_URL%%'>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# Redirect all HTTP traffic to HTTPS with a hard 301 redirect
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# Redirect www.mountainx.com to mountainx.com [!] changes this to https since we aren't accepting http traffic
RewriteCond %{HTTP_HOST} ^www\.mountainx\.com [NC]
Your code:
var spinid = /arqball_([0-9a-z]*)/.exec("products/arqball_slv34stbg8zp.jpg");
console.log(spinid[1]);
$(document).ready(function(){
$(".main-image").append("<div id='spinBox' style='position:absolute; top:0px; width:408px; height:408px; z-index:-10;'><iframe src="https://spins0.arqsin.com/iframe.html?spin="+spinid[1]+"&is=-0.16" width="408" height="408" scrolling="no" frameborder="0"></iframe></div>");
});
Try instead:
### Keybase proof
I hereby claim:
* I am meekohi on github.
* I am meekohi (https://keybase.io/meekohi) on keybase.
* I have a public key ASB60E2plmJCfd-p5SDXFKHd_AWcoNfd2VUgPXOb500NXgo
To claim this, I am signing this object:
@Meekohi
Meekohi / arqspin_api.js
Created November 24, 2015 20:05
Make a request to the Arqspin API
$.get("//api.arqspin.com/nodeapi/search/5bttd9qwtx6adlihe7el?query=HJC37859",function(data){
var spinid = data.spins[0].shortid;
if(spinid)
$(".product_image").append("<iframe src='//spins0.arqspin.com/iframe.html?spin="+spinid+"' width=512 height=512></iframe>");
});
@Meekohi
Meekohi / arqspin_api.json
Last active November 24, 2015 20:05
Arqspin API response
{
"error": 0,
"spins": [{
"shortid": "1lk37an66gbv7",
"title": "SKU100909 Red High Heel",
"caption": "Dress to impress in these fire engine red suede high heel shoes.",
"created_at": "2014-09-03T15:07:33.000Z",
"thumbnail": "http://spins0.arqspin.com/1lk37an66gbv7/thumbnail.jpg"
}]
}
@Meekohi
Meekohi / gist:c802d381076d02e76ba8
Last active October 3, 2015 02:42
Building openMVG and openMVS on OSX
# openMVG
cd; cd openmvg_build
rm -rf *
cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX:STRING="/Users/meekohi/openMVG_build/openMVG_install" . ../openMVG/src/
make -j 8
make install
#openMVS
cd; cd openmvs_build
rm -rf *
@Meekohi
Meekohi / index.html
Last active August 29, 2015 14:26 — forked from mbostock/.block
U.S. Airports Voronoi
<!DOCTYPE html>
<meta charset="utf-8">
<style>
path {
stroke-linejoin: round;
}
.land {
fill: #ddd;