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
<div id="social-share-modal" class="modal hide fade" tabindex="-1" role="dialog" | |
aria-labelledby="social-share-modal-label" aria-hidden="true"> | |
<div class="modal-header"> | |
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"> | |
×</button> | |
<h3 id="social-share-modal-label"> | |
¿Deseas compartir esta review?</h3> | |
</div> | |
<div class="modal-body"> | |
<div id="login-popover"> |
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
$("ul.products-list").delegate(".continue-to-sharing", "click", function (event) { | |
event.preventDefault(); | |
//TODO:Validar si esta logueado | |
var share_text = $(this).attr("data-shareText"), | |
share_title = $(this).attr("data-shareTitle"), | |
share_image = $(this).attr("data-shareImage"), | |
id = $(this).attr("data-reviewId"); |
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
@model Bumbea.UInterface.Model.Account.LogOnModel | |
<div id="fb-root"> | |
</div> | |
<script> (function (d, s, id) { | |
var js, fjs = d.getElementsByTagName(s)[0]; | |
if (d.getElementById(id)) return; | |
js = d.createElement(s); js.id = id; | |
js.src = "//connect.facebook.net/es_LA/all.js#xfbml=1&appId=102110626620869"; | |
fjs.parentNode.insertBefore(js, fjs); | |
} (document, 'script', 'facebook-jssdk')); |
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
@model Bumbea.UInterface.Model.Account.LogOnModel | |
<div id="fb-root"> | |
</div> | |
<script> (function (d, s, id) { | |
var js, fjs = d.getElementsByTagName(s)[0]; | |
if (d.getElementById(id)) return; | |
js = d.createElement(s); js.id = id; | |
js.src = "//connect.facebook.net/es_LA/all.js#xfbml=1&appId=102110626620869"; | |
fjs.parentNode.insertBefore(js, fjs); | |
} (document, 'script', 'facebook-jssdk')); |
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
@model Bumbea.UInterface.Model.Account.LogOnModel | |
<div id="fb-root"> | |
</div> | |
<script> (function (d, s, id) { | |
var js, fjs = d.getElementsByTagName(s)[0]; | |
if (d.getElementById(id)) return; | |
js = d.createElement(s); js.id = id; | |
js.src = "//connect.facebook.net/es_LA/all.js#xfbml=1&appId=102110626620869"; | |
fjs.parentNode.insertBefore(js, fjs); | |
} (document, 'script', 'facebook-jssdk')); |
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
@model Bumbea.UInterface.Model.Company.CompanyProfileModel | |
@section MainContent{ | |
<div class="thumbnail basic-information"> | |
<div class="pull-left left-info"> | |
<div class="top-info"> | |
<img class="pull-left" src="@(String.IsNullOrEmpty(Model.PictureUrl) ? "http://placehold.it/50x50" : Url.Content(Model.PictureUrl))" alt=""/> | |
<div class="business-details pull-left"> | |
<h3> | |
@Model.Name</h3> | |
<div class="product-rating"> |
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
// render result back to canvas | |
var data_u32 = new Uint32Array(imageData.data.buffer); | |
var alpha = (0xff << 24); | |
var i = img_u8.cols*img_u8.rows, pix = 0; | |
while(--i >= 0) { | |
pix = img_u8.data[i]; | |
data_u32[i] = alpha | (pix << 16) | (pix << 8) | pix; | |
} | |
ctx.putImageData(imageData, 0, 0); |
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
post '/contact/send-mail' do | |
body = "Name: #{params[:name]} <br /> Email: #{params[:email]} | |
<br /> Company: #{params[:company]} <br /> Skype: #{params[:skype]} | |
<br /> <br /> Message: #{params[:message]}" | |
Pony.mail({ | |
:to => '[email protected]', | |
:from => '[email protected]', | |
:subject => 'Learning how to send an email from Ruby', | |
:body => body, | |
:via => :smtp, |
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
git diff —diff-filter=D —name-only -z | xargs -0 git rm |
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
//this method does a recursive directory search in node.js | |
var walk = function(dir, done) { | |
var results = []; | |
fs.readdir(dir, function(err, list) { | |
if (err) return done(err); | |
var pending = list.length; | |
if (!pending) return done(null, results); | |
list.forEach(function(file) { | |
file = dir + '/' + file; | |
fs.stat(file, function(err, stat) { |
OlderNewer