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
#ifndef SORTEDLIST_H | |
#define SORTEDLIST_H | |
#include <QList> | |
#include <QtAlgorithms> | |
template <typename T> | |
class SortedList : public QList<T> | |
{ | |
public: |
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
#ifndef SORTEDLIST_H | |
#define SORTEDLIST_H | |
#include <QList> | |
#include <QtAlgorithms> | |
template <typename T> | |
class SortedList : public QList<T> | |
{ | |
public: |
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
PREFIX dbpedia: <http://dbpedia.org/page/> | |
PREFIX dbpprop: <http://dbpedia.org/property/> | |
PREFIX dbpedia-owl: <http://dbpedia.org/ontology/> | |
SELECT * WHERE { | |
?animal dbpprop:name ?name . | |
?animal dbpedia-owl:order <dbpedia:Carnivora> . | |
} |
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
<script type="text/javascript" charset="utf-8"> | |
var djConfig = { | |
afterOnLoad: true, | |
isDebug: false, | |
debugAtAllCosts: true, | |
parseOnLoad: true | |
}; | |
</script> | |
<script src="./dojo/dojo/dojo.js"></script> |
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
cookbook_file_example: [{ | |
directory: true, | |
name: "foodir", | |
path: "foodir", | |
parent_path: "", | |
directories: [{ | |
name: "bardir", | |
path: "foodir/bardir", | |
count: 5 |
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
esalazar@ciao:~/backlot/Substantial/Citi360$ cap deploy -s branch=alternate_api | |
* executing `deploy' | |
* executing `deploy:update' | |
** transaction: start | |
* executing `deploy:update_code' | |
updating the cached checkout on all servers | |
executing locally: "git ls-remote [email protected]:substantial/Citi360.git alternate_api" | |
command finished in 1758ms | |
* executing "if [ -d /var/www/citi360-staging/shared/cached-copy ]; then cd /var/www/citi360-staging/shared/cached-copy && git fetch -q origin && git reset -q --hard a845f54ca04580487b1136c32c095644220e278a && git clean -q -d -x -f; else git clone -q [email protected]:substantial/Citi360.git /var/www/citi360-staging/shared/cached-copy && cd /var/www/citi360-staging/shared/cached-copy && git checkout -q -b deploy a845f54ca04580487b1136c32c095644220e278a; fi" | |
servers: ["citi360.substantial.com"] |
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
unity --reset | |
WARNING: Unity currently default profile, so switching to metacity while resetting the values | |
Backend : gconf | |
I | |
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
index.html.erb: | |
--------------------------------------------------------- | |
<div>STUFF WE SHOULDNT SEE</div> | |
<% foo(:head, @hsh) do %> | |
<script type="text/javascript" src="/js/work.js"></script> | |
<% end %> | |
someruby.rb | |
--------------------------------------------------------- |
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
Section "Screen" | |
Identifier "Default Screen" | |
DefaultDepth 24 | |
EndSection | |
Section "Module" | |
Load "glx" | |
EndSection | |
Section "Device" |
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 User | |
has_and_belongs_to_many :followers, :class_name => "User", :inverse_of => :followings | |
has_and_belongs_to_many :followings, :class_name => "User", :inverse_of => :followers | |
has_and_belongs_to_many :club_followings, :class_name => "Club", :inverse_of => :followers | |
end | |
class Club | |
has_and_belongs_to_many :followers, :class_name => "User", :inverse_of => :club_followings | |
end |