Skip to content

Instantly share code, notes, and snippets.

View mkeen's full-sized avatar
🇺🇲
build first, sell later / hr’s most wanted

Mike Keen mkeen

🇺🇲
build first, sell later / hr’s most wanted
  • Florida
  • 21:21 (UTC -05:00)
View GitHub Profile
adopt: function (obj) {
if(typeof obj && obj.length != 'undefined') {
for(var i = 0; i < obj.length; i++) {
self.element.appendChild(obj[i]);
}
} else {
self.element.appendChild(obj);
}
<script type="text/javascript" src="http://events.xn--dt3an5b.com/track.js"></script>
<script type="text/javascript">
AutomaticSEM.Activity('conversion', {
SubmitForm: 'Contact Us'
});
</script>
class Throne::MultiDocument < Hashie::Mash
class NotFound < StandardError; end
## Class methods
class << self
# Sets the database that the class will use
def database(name = nil)
if name.nil?
@database || :default
else
raise Throne::Database::NotSetup, "ensure that you've setup your database before using it in a class definition" unless Throne::Database.setup?(name)
boot = [-> {VisiMage::UserInterface.instance.start}]
$: << File.join(File.dirname(__FILE__), "/../lib")
require "singleton"
module VisiMage
autoload :Scheduler, 'visimage/scheduler'
autoload :ExternalData, 'visimage/externaldata'
autoload :InternalData, 'visimage/internaldata'
autoload :UserInterface, 'visimage/userinterface'
end
foreach($ids as $id) {
$newProduct = Mage::getModel('catalog/product')->load($id);
 print $newProduct->getName();
 foreach ($newProduct->getGalleryImages() as $image) {
print $newProduct->getGalleryUrl($image);
}
}
fun({Doc}) ->
DocumentID = proplists:get_value(<<"_id">>, Doc, null),
case DocumentID == <<"campaigns">> of
true ->
AdwordsCampaigns = proplists:get_value(<<"adwords">>, Doc, null),
[Emit(DocumentID, Campaign) || Campaign <- AdwordsCampaigns];
false -> ignore
end
end.
function visiToggleFilter(link, class){
if(jQuery(link).html() == "more..."){
jQuery(class).show();
jQuery(link).html("hide...");
}
else{
jQuery(class).hide();
jQuery(link).html("more...");
}
}
$('#comments').innerHTML = '<fb:comments href="http://www.famouscam.com/archive/#/single/' + activeSingle + '"></fb:comments>';
FB.XFBML.parse($('#comments'));
[INFO] [NioProcessor-1] org.red5.server.net.rtmp.codec.RTMPProtocolDecoder - Action connect
[INFO] [NioProcessor-1] org.red5.server.net.rtmp.RTMPHandler - Connecting to: [WebScope@5025bd56 Depth = 1, Path = '/default', Name = 'famouscam']
App connect RTMPMinaConnection from 24.178.98.86 : 59369 to red5.famouscam.com (in: 3403 out 3073 ), [Ljava.lang.Object;@5db18235
Client Client: 0 joined
[INFO] [NioProcessor-1] org.red5.server.stream.ClientBroadcastStream - Provider connect
[INFO] [NioProcessor-1] org.red5.server.stream.ClientBroadcastStream - Stream start
[INFO] [NioProcessor-1] org.red5.server.stream.ClientBroadcastStream - Provider connect
Stream started
Not saving stream yet even though stream is publishing, will wait for 70% of people now
Broadcast Started - greenlight = false, tempStream = org.red5.server.stream.ClientBroadcastStream@421906df, conn = net.ser1.stomp.Client@79123c5f