Skip to content

Instantly share code, notes, and snippets.

@jeffvincent
jeffvincent / keybase.md
Created October 5, 2017 03:04
keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@jeffvincent
jeffvincent / hubot_errors
Created July 25, 2013 17:25
Current Hubot Errors
Error: Cannot find module 'log'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.<anonymous> (/Users/jeff/projects/hubot/src/robot.coffee:8:9)
at Object.<anonymous> (/Users/jeff/projects/hubot/src/robot.coffee:353:4)
at Module._compile (module.js:449:26)
at Object.require.extensions..coffee (/Users/jeff/node_modules/coffee-script/lib/coffee-script/coffee-script.js:22:21)
at Module.load (module.js:356:32)
<style>
.wistia_socialbar {
background-color: red;
}
</style>
<div id="wistia_n4214gjbyl" class="wistia_embed" style="width:640px;height:386px;" data-video-width="640" data-video-height="360">&nbsp;</div>
<script charset="ISO-8859-1" src="http://fast.wistia.com/static/concat/E-v1%2Csocialbar-v1.js"></script>
<script>
@jeffvincent
jeffvincent / stats-export-scripts.rb
Last active December 16, 2015 02:49
Wistia Stats Export scripts after installing required gems, run using `ruby -r "./stats-export-scripts.rb" -e "EventsGrabber.media_events"`
require 'wistia-api'
require 'csv'
require 'highline/import'
class EventsGrabber
def initialize(api_key)
@api_key = api_key
Wistia.password = @api_key
end
@jeffvincent
jeffvincent / go-wistia.sh
Last active December 15, 2015 15:59 — forked from morganestes/aliases
Uploads all videos (of specified extensions) to Wistia using Wistia-Uploader Gem. https://github.com/wistia/wistia-uploader
#!/bin/bash
# Usage: uploads all videos (of specified extensions) to Wistia using their Gem.
shopt -s nullglob
project_hash = $1
for video in *.{mp4,avi,mov,m4v,flv}
do
echo 'Uploading "$video" to project ID "$1" using the wistia-uploader Gem'
wistia-uploader -p $project_hash -f "$video"
@jeffvincent
jeffvincent / wmode_transparent.html
Created October 3, 2012 19:31
Setting the wmode transparent for your Wistia video
<iframe src="http://fast.wistia.com/embed/iframe/e4a27b971d?
controlsVisibleOnLoad=true&playerColor=4991C4&version=v1
&videoHeight=360&videoWidth=640&wmode=transparent"
allowtransparency="true" frameborder="0" scrolling="no"
class="wistia_embed" name="wistia_embed" width="640"
height="360"></iframe>
<script type="text/javascript">
function gaFunc() {
_gaq.push(['_trackEvent', 'Video','Play', 'My Sample Video Title']);
wistiaEmbed.unbind("play", gaFunc);
}
wistiaEmbed.bind("play", gaFunc);
wistiaEmbed.bind("end", function () {
_gaq.push(['_trackEvent', 'Video','Complete', 'My Sample Video Title']);
<script type="text/javascript">
wistiaEmbed.bind("play", function() {
clicky.video('play',0, 'http://www.mysite.com/mypage/#video', 'Test Video');
});
</script>
@jeffvincent
jeffvincent / gist:3068211
Created July 7, 2012 21:52
launch popover for certain query strings on page load
$(document).ready( function() {
var url = window.location.href.toString();
if ( url.indexOf('launch-the-popover') != -1 )
{
wistiaJQuery('a[class^=wistia-popover]').first().click();
}
});
<a href="http://fast.wistia.com/embed/iframe/e6bfb5acbd?videoWidth=640&videoHeight=360&controlsVisibleOnLoad=true&autoPlay=true&popover=true"
class="wistia-popover[width=640,height=360,playerColor=#636155]"><img src="http://embed.wistia.com/deliveries/d88b25fd28dda2795fa3c754f6d08221cfb8b206.jpg?image_play_button=true&image_crop_resized=150x84" /></a>
<script charset="ISO-8859-1" src="http://fast.wistia.com/static/popover-v1.js"></script>