Skip to content

Instantly share code, notes, and snippets.

@MaxPower15
MaxPower15 / config.log
Created April 15, 2012 20:58
Attempt to install libevent via homebrew
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ./configure --prefix=/usr/local/Cellar/libevent/2.0.17
## --------- ##
## Platform. ##
@MaxPower15
MaxPower15 / gist:2394818
Created April 15, 2012 21:07
Output of brew install -v libevent
~$ brew install -v libevent
==> Downloading https://github.com/downloads/libevent/libevent/libevent-2.0.17-stable.tar.gz
Already downloaded: /Users/maxschnur/Library/Caches/Homebrew/libevent-2.0.17.tar.gz
/usr/bin/tar xf /Users/maxschnur/Library/Caches/Homebrew/libevent-2.0.17.tar.gz
==> ./configure --prefix=/usr/local/Cellar/libevent/2.0.17
./configure --prefix=/usr/local/Cellar/libevent/2.0.17
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
@MaxPower15
MaxPower15 / gist:2394823
Created April 15, 2012 21:08
Output of brew --config
~$ brew --config
HOMEBREW_VERSION: 0.9
HEAD: f202962d91f475ad59efa1f9b1f312fdd064d791
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit sandybridge
OS X: 10.7.3
Kernel Architecture: x86_64
Xcode: 4.3.2
GCC-4.0: N/A
@MaxPower15
MaxPower15 / gist:2394830
Created April 15, 2012 21:09
Output of brew doctor
Warning: You have no /usr/bin/cc.
This means you probably can't build *anything*. You need to install the Command
Line Tools for Xcode. You can either download this from http://connect.apple.com
or install them from inside Xcode's Download preferences. Homebrew does not
require all of Xcode! You only need the Command Line Tools package!
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
@MaxPower15
MaxPower15 / gist:2395478
Created April 16, 2012 00:13
Output of brew doctor
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libmacfuse_i32.2.dylib /usr/local/lib/libmacfuse_i64.2.dylib /usr/local/lib/libntfs-3g.80.dylib /usr/local/lib/libntfs.9.0.0.dylib /usr/local/lib/libosxfuse_i32.2.dylib /usr/local/lib/libosxfuse_i64.2.dylib /usr/local/lib/libublio.1.dylib
Warning: Unbrewed .la files were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
@MaxPower15
MaxPower15 / gist:2408358
Created April 17, 2012 19:13
Untested method to get percentWatched
var lastTime = 0,
watchedSecondHash = new Array(Math.floor(wistiaEmbed.duration()));
wistiaEmbed.bind("timechange", function(t) {
var totalSecondsWatched = 0, percentWatched;
watchedSecondHash[Math.floor(t)] = true;
for(var i=0; i < watchedSecondHash.length; i++) {
if (watchedSecondHash[i]) {
totalSecondsWatched++;
}
}
@MaxPower15
MaxPower15 / gist:2694471
Created May 14, 2012 15:04
Simple pre-roll
<div id="video_container" class="wistia_embed" style="width:640px;height:272px;" data-video-width="640" data-video-height="272"> </div>
<script charset="ISO-8859-1" src="http://fast.wistia.com/static/E-v1.js"></script>
<script>/*<![CDATA[*/
preRollEmbed = Wistia.embed("d90b54e175", {
version: "v1",
videoWidth: "640",
videoHeight: "272",
@MaxPower15
MaxPower15 / gist:3093919
Created July 11, 2012 21:59
Abuse of ternary operators in coffeescript
result = Wistia.detect.browser.quirks ? parseInt(elem.offsetHeight, 10) : window.getComputedStyle && getComputedStyle(elem, null) ? parseInt(getComputedStyle(elem, null).height, 10) : elem.currentStyle ? elem.offsetHeight : -1;
@MaxPower15
MaxPower15 / new-badger-css.css
Created August 8, 2012 15:59
CSS for Tutoring Zone's badger playlist theme
.wistia_bento_section_names li {
border-top-right-radius: 5px 5px !important;
border-top-left-radius: 5px 5px !important;
-moz-border-top-right-radius: 5px 5px !important;
-moz-border-top-left-radius: 5px 5px !important;
margin-left: 0 !important;
margin-right: 10px !important;
}
.wistia_bento_section_names a {
font-family: georgia, palatino, "Palatino Linotype", serif !important;
@MaxPower15
MaxPower15 / gist:3296228
Created August 8, 2012 16:05
Example embed code for badger playlist theme
<link href="badger.css" rel="stylesheet" />
<div id="wistia_7f5152eb33" class="wistia_embed" style="width:640px;height:661px;" data-video-width="640" data-video-height="480">
If you continue to see this message the videos for your course are not
uploaded yet. Videos should be present 24 hours after the end of the
Review; if you are still inside this window please bear with us while we
convert and upload your videos. If you are seeing this message outside of
the 24 hour mark please call our front desk at 352-505-1320 or post on our
facebook fan page.
</div>
<script charset="ISO-8859-1" src="http://fast.wistia.com/static/concat/E-v1%2Cplaylist-v1%2Cplaylist-v1-bento.js"></script>