Skip to content

Instantly share code, notes, and snippets.

View jathayde's full-sized avatar
🚜

John Athayde jathayde

🚜
View GitHub Profile
@jathayde
jathayde / gist:11222235
Created April 23, 2014 16:24
keybase.md
### Keybase proof
I hereby claim:
* I am boboroshi on github.
* I am johnathayde (https://keybase.io/johnathayde) on keybase.
* I have a public key whose fingerprint is E9C8 C72A DF6A C118 850C 8622 C966 6A6E 5075 F63F
To claim this, I am signing this object:
def legend_html
if render_label?
template.content_tag(:legend, label_text)
else
"".html_safe
end
end
We couldn’t find that file to show.
<? echo $row['mktMarket']; ?>
<?
$strMarketDisplay .= "<a href=\"";
$strMarketDisplay .= "market_view.html?ID=" . $row['mktID'] . "&type=" . $strURLType . "&state=" . $mktStateArr[0];
$strMarketDisplay .= "\">";
$strMarketDisplay .= $row['mktMarket'];
$strMarketDisplay .= "</a>";
echo $strMarketDisplay;
?><br />
canaveral:mkm jathayde$ rake db:bootstrap --trace
(in /Users/jathayde/Sites/work/mkm)
** Invoke db:bootstrap (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:bootstrap
Loading /Users/jathayde/Sites/work/mkm/db/bootstrap/access_levels.yml
Loading /Users/jathayde/Sites/work/mkm/db/bootstrap/ad_buys.yml
Loading /Users/jathayde/Sites/work/mkm/db/bootstrap/advertisers.yml
Loading /Users/jathayde/Sites/work/mkm/db/bootstrap/alerts.yml
Soho:~ jathayde$ ssh -2 -v jathayde@staging.resonantvibes.com
OpenSSH_5.1p1, OpenSSL 0.9.7l 28 Sep 2006
debug1: Reading configuration data /Users/jathayde/.ssh/config
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to staging.resonantvibes.com [173.45.229.49] port 22.
debug1: Connection established.
debug1: identity file /Users/jathayde/.ssh/id_rsa type 1
debug1: identity file /Users/jathayde/.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
debug1: match: OpenSSH_4.3 pat OpenSSH*
def days_count(adbuy)
date1 = adbuy.enddate
date2 = adbuy.startdate
"#{date1-date2} days total"
end
<div id="top_ten" class="widget">
<h3 class="sifrdboldgray">Top 10</h3>
<ol>
<% playlist.listings.each_with_index do |listing, i| -%>
<% if i < show %>
<li>
<p class="track_title"><%= truncate(listing.composition.title,20,"...") %></p>
<a class="sm2_link" href="<%= listing.composition.preview_url %>"><span class="hide_me">Preview</span>&nbsp;&nbsp;&nbsp;</a>
<p class="artist_name"><%= !listing.composition.producer_name.blank? ? truncate(listing.composition.producer_name,20,"...") : "No artist listed" %></p>
<%#= link_to_function(image_tag("icon_load_in_player.png", :alt => "Add to Playlist",:title => "Add to Playlist"), "addCompositionToPlayerPlaylist(#{listing.composition.id})") %>
<ol class="latest_uploads">
<% playlist.listings.each_with_index do |listing, i| -%>
<% if i < show %>
<% composition = listing.composition %>
<% position = i %>
<li class="playlist_item">
<p class="track_title"><%= link_to awesome_truncate(composition.title,30), composition_path(composition), :title => composition.title %></p>
<p class="sm2_link"><a href="<%= composition.preview_url %>"><span class="hide_me">Preview</span>&nbsp;&nbsp;&nbsp;</a>
<% if composition.network? %>
<%= link_to image_tag("button_playlist_download.gif", :alt => "Download"), downloads_path(:audio_item_id => composition.audio_items.first.id), :method => :post%>
canaveral:dvlabs jathayde$ ruby script/server
=> Booting Mongrel (use 'script/server webrick' to force WEBrick)
=> Rails 2.2.2 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment...
using localhost for PERCEUS_MASTER
** Rails loaded.
** Loading any Rails specific GemPlugins