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
<feedburner:info uri="aspgems" /> | |
<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license><image><link>http://planeta.aspgems.com</link><url>http://en.gravatar.com/userimage/446745/7078dc0a55bf7e17775dc347c9b70b42.png</url><title>aspgems</title></image><item> | |
<title>Javier Lafora :: ¿Y por qué no...?</title> | |
<description><img src="http://feeds.feedburner.com/~r/aspgems/~4/sZQBo_wc5no" height="1" width="1"/></description> | |
<pubDate>Tue, 22 Oct 2013 17:30:17 +0000</pubDate> | |
<link>http://feedproxy.google.com/~r/aspgems/~3/sZQBo_wc5no/y-por-que-no.html</link> | |
<guid isPermaLink="false">http://elafosobrerailes.blogspot.com/2013/10/y-por-que-no.html</guid> |
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
#!/bin/bash | |
echo "Creating tags" | |
for tag in `git branch -r | grep "tags/" | egrep -vw "svn/tags/(integration|production)" | sed 's/ tags\///'`; do | |
git_tag_name=`echo "$tag" | sed 's/tags\///'` | |
parents=`git show --format="%P" refs/remotes/$tag` | |
real_parent=`echo "$parents" | cut -d' ' -f 2` | |
git tag -a -m"Converting SVN tags" $git_tag_name $real_parent | |
done |
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
module SamyRoad | |
module Redis | |
module Objects | |
extend ActiveSupport::Concern | |
included do | |
include ::Redis::Objects | |
end | |
module ClassMethods |
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
"links": [ | |
{ | |
"methods": "GET", | |
"rel": "self", | |
"uri": "http://samyroad-web.dev.aspgems.com/api/posts/46-kerala-houseboats" | |
} | |
] |
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
class Location | |
include SamyRoad::Redis::Objects | |
has_counter: :24_hours | |
end | |
# You can access to the counter's value directly like | |
# location.24_hours_count |
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
module SamyRoad | |
module FeedsEntryStatus | |
extend ActiveSupport::Concern | |
STATES = { | |
ignored: 1, | |
pending: 0, | |
published: 2, | |
erased: 3 | |
} |
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 class Court{ | |
private boolean[7*15] timeTable; | |
public Court(){ | |
java.util.Arrays.fill(this.timeTable,true); | |
} | |
public boolean available(DateTime d, int duration){ | |
if !validDateTime(d) || !validDateTime(d + duration){ |
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
# Update System | |
# ------------------------------------------------------------------------------ | |
echo 'Updating System...' | |
sudo apt-get -y update | |
# Hardware | |
# ------------------------------------------------------------------------------ | |
echo 'Installing bumblebee' | |
sudo add-apt-repository -y ppa:bumblebee/stable && sudo apt-get update | |
sudo apt-get -y install bumblebee bumblebee-nvidia |
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
en: | |
help: | |
invoices: | |
add_payments: | |
content_html: > | |
<p> | |
The following page shows how to make a payment for an invoice using %{brand_name}. Foremost, you need to <a href="/login">sign in the application</a>. Once logged, click the 'INVOICES' button | |
of the header menu to access your invoice's list. You can access the payment box of any invoice by clicking its pending amount link, as shown below. | |
</p> | |
<p> |
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
Hospital.search(search_query, {:order => 'emergency_service_today DESC'}) |