This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rails_admin/config/actions' | |
require 'rails_admin/config/actions/base' | |
module RailsAdminApproveReview | |
end | |
module RailsAdmin | |
module Config | |
module Actions | |
class ApproveReview < RailsAdmin::Config::Actions::Base |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PHP_VER="5.5.20" | |
brew install wget | |
# Check if extension exists first | |
php -m | grep pgsql | |
# Update brew and install requirements | |
brew update | |
brew install autoconf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private function configUI():Void | |
{ | |
// setup the tooltip defaults | |
Tooltip.options = {size:10, font:"_sans", corner:0}; | |
// setup cam | |
cam = Camera.get(); | |
cam.setMode(480, 320, 15); | |
cam.setQuality(0,80); | |
// setup mic | |
mic = Microphone.get(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// UI Elements: | |
// ** AUTO-UI ELEMENTS ** | |
private var alert:SimpleDialog; | |
private var connect:IconButton; | |
private var disconnect:IconButton; | |
private var light:ConnectionLight; | |
private var uri:TextInput; | |
// ** END AUTO-UI ELEMENTS ** | |
public function configUI():Void |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function configUI():Void | |
{ | |
disconnect._visible = false; | |
connect._visible = false; | |
uri._visible = false; | |
light._visible = false; | |
connection = new Connection(); | |
light.registerNC(connection); | |
if (makeConnection(Connector.red5URI)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> export PATH="/path/to/mtasc-mx/bin:/path/to/mtasc-mx/std:$PATH" | |
> cd "/path/to/red5/classes" | |
> mtasc -cp "." -swf ../simpleBroadcaster.swf -mx org/red5/samples/livestream/broadcaster/Main.as -v | |
> mtasc -cp "." -swf ../simpleSubscriber.swf -mx org/red5/samples/livestream/broadcaster/Main.as -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Red5 Demo - Simple Broadcaster</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> | |
<script type="text/javascript" src="swfobject.js"></script> | |
<script type="text/javascript"> | |
swfobject.embedSWF("simpleBroadcaster.swf", "myContent", "360", "240", "8.0.0", "jwplayer/expressInstall.swf"); | |
</script> | |
<style media="screen" type="text/css">#myContent { | |
visibility: hidden |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Red5 Demo - Simple Subscriber</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> | |
<script type="text/javascript" src="swfobject.js"></script> | |
<script type="text/javascript"> | |
swfobject.embedSWF("simpleSubscriber.swf", "myContent", "360", "240", "8.0.0", "assets/expressInstall.swf"); | |
</script> | |
<style media="screen" type="text/css">#myContent { | |
visibility: hidden |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filterNetworks(value) { | |
$.ajax({ | |
url: this.props.url, | |
data: { | |
network: network, | |
page: pageNumber||1, | |
search: search | |
}, | |
dataType: 'json', | |
success: function (carts) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//precalc all distances to major research cities after import and store to respondents database/elastic | |
function precalcDistance(respondents, majorCities) { | |
return respondents.map((respondent) => { | |
let distances = majorCities.reduce((memo, {location}) => { | |
let distance = haversine(location.location, respondent); | |
memo[location.city] = distance; | |
return memo; | |
}, {}); | |
OlderNewer