I hereby claim:
- I am brandonaaskov on github.
- I am brandonaaskov (https://keybase.io/brandonaaskov) on keybase.
- I have a public key whose fingerprint is 6FD9 CB8C BBFB 8C1C 4E57 92E1 F290 170D 2EE7 00E8
To claim this, I am signing this object:
keys = ["","\u0001","\u0002","\u0003","\u0004","\u0005","\u0006","\u0007","\b","\t","\n","\u000b","\f","\n","\u000e","\u000f","\u0010","\u0011","\u0012","\u0013","\u0014","\u0015","\u0016","\u0017","\u0018","\u0019","\u001a","\u001b","\u001c","\u001d","\u001e","\u001f"," ","!","\"","#","$","%","&","'","(",")","*","+",",","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","\\","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","","","","","",""," ","","","","","","","","","","","","","","","","","","","","","","","","","",""," ","¡","¢","£","¤","¥","¦","§","¨","©","ª","«","¬","","®","¯","°","±","²","³","´","µ","¶","·","¸","¹","º","»","¼","½","¾","¿","À","Á","Â","Ã","Ä","Å","Æ","Ç","È","É","Ê","Ë","Ì","Í","Î","Ï","Ð","Ñ","Ò","Ó","Ô","Õ","Ö","×","Ø","Ù","Ú","Û", |
if [ -f "$rvm_path/scripts/rvm" ]; then | |
source "$rvm_path/scripts/rvm" | |
VERSION_FROM_GEMFILE=$(perl -ne '/^ruby .([0-9\.]+).$/ && print "$1"' Gemfile) | |
if [ -f ".ruby-version" ]; then | |
rvm use `cat .ruby-version` | |
fi | |
if [[ -n $VERSION_FROM_GEMFILE ]]; then | |
rvm use $VERSION_FROM_GEMFILE |
_experienceModule = _brightcovePlayer.getModule(APIModules.EXPERIENCE) as ExperienceModule; var modules:Array = _experienceModule.getModules(); | |
for(var i in modules) | |
{ | |
var modIdentifier:ModuleIdentifier = modules[i]; | |
if(modIdentifier.path.indexOf("http://79423.analytics.edgesuite.net/csma/brightcove/BrightcoveCSMALoader.swf") != -1) | |
{ | |
//Akamai Module Found | |
var AkamaiPluginHandle:Object = _experienceModule.getElementByID(modIdentifier.id); //Setting the Custom Information | |
/* | |
Just a basic sample of a JS plugin that will display the video's name in the console once it initializes. | |
*/ | |
(function(){ | |
var _experience | |
, _videoPlayer | |
, currentVideo; | |
player = brightcove.api.getExperience(); |
/* | |
* This would live somewhere within the App Cloud application, wherever needed. | |
*/ | |
//listen for post message from click-through override function | |
window.addEventListener('message', function (event){ | |
var message = event.data; | |
if(message.name == 'adClick') | |
{ |
I hereby claim:
To claim this, I am signing this object:
var _adPolicyCreated = false; | |
var setupVideoAdPolicy = function () { | |
var advertising = bc.plugins.videoPlayer.advertising, | |
adServerURL = 'http://ad.doubleclick.net/pfadx/site/zone', //the URL for your ad server (likely will contain dymanic key-value pairs) | |
adPolicy = { | |
preRolls: [adServerURL] | |
}, | |
options = { | |
adPolicy: adPolicy, |
/** | |
* Hoisting | |
* | |
* Wikipedia Article: http://en.wikipedia.org/wiki/Variable_hoisting#hoisting | |
* | |
* Hoisting in javascript is pretty simple to understand, and it's incredibly | |
* important to learn to avoid introducing bugs into your code. Essentially, | |
* a variable is scoped to the closest function (not a for loop, not an if | |
* block, a function). This is unlike a lot of other languages where there | |
* are strict scoping rules, but what's actually happening behind the scenes |
Note: this isn't my solution, this is simply my findings from many github issues and blog posts coalesced into a single place.
To fix node-oracledb
's reference to Oracle Instant Client on El Capitan, you'll need to run this from any repo that has node-oracledb
as a dependency. Lines 16 and 17 need to point to the location of your zip files, which can live anywhere but I've kept mine in /opt/oracle
.
First, you'll need Oracle Instant Client on your machine. Once you click the environment that suits your needs, you'll need to grab two packages: basic, and sdk. Here's an example for the OSX client.
In the bash file also included with this gist, lines 16 and 17 need to be tweaked to point to those zip files you just downloaded.
Once that's done, you'll need to run it from your repo that has node-oracledb
as a dependency. So, for example, let's say I had a folder structure like so:
var _ = require('lodash') | |
var exec = require('child_process').exec | |
var removeUnnamedDockerImages = function (json) { | |
_.forEach(json, function (image) { | |
if (image.repo === '<none>') { | |
exec('docker rmi -f ' + image.imageId, function (rmErr, rmStdout, rmStderr) { | |
if (rmErr) { | |
return console.error(rmErr) | |
} |