by nicreations
class Meatloaf
{
public boolean wouldDoForLove(Thing wouldDo)
{
return wouldDo.equals(Thing.THAT) ? false : true;
}
}
published on Nov 30, 2011 |
0 comment(s) |
Add Comment
by nicreations
bool canDigIt = close(MOUTH); // Just talkin bout Shaft
published on Oct 27, 2011 |
0 comment(s) |
Add Comment
by Shrini
class Human {
Gender sex;
String name;
String location;
public:
Human( String _name, Gender _sex):
name(_name), sex(_sex) {}
Human() {}
setName(String _name) { name = _name;}
setGender(Gender _sex) { sex = _sex; }
setLocation(String _loc) { location = _loc; }
}
class Loner : public Human {
private:
loneInstance;
Loner() {}
public:
// singleton
static Loner* getLonerInstance() {
if(loneInstance == NULL)
loneInstance = new Loner();
return loneInstance;
}
}
int main(void) {
Human Jojo = Loner.getInstance();
jojo.setName("Jojo");
if(jojo.class.getName() == "Loner" && needsGrass(jojo))
jojo.setLocation("California");
// get back to where you once belonged
jojo = new Human( dynamic_cast<Human*> &jojo);
jojo.setLocation("Tucson, AZ");
Human sweetLoretta = new Human("Loretta Martin", Gender::male);
sweetLoretta.setGender(Gender::female);
while(getIt(sweetLoretta)) {
Girls.sayAbout(sweetLoretta, "Shes got it coming");
}
// get back to where you once belonged
sweetLoretta.setGender(Gender::male);
}
published on May 08, 2011 |
0 comment(s) |
Add Comment
by nicreations
this.runFastFor(mother);
this.runFastFor(father);
this.runForAll(children);
this.runForAll(sisters);
this.runForAll(brothers);
this.getLove().leaveBehind();
this.getLoving().leaveBehind(); // Can't cary it with you if you want to survive
dogDays.setOver(true);
published on Mar 23, 2011 |
0 comment(s) |
Add Comment
by Mikwilly
Metal theMetal;
kill( YOU, theMetal );
if( theMetal.livesOn() )
{
kill( PUNK_ROCK, theMetal );
}
if( theMetal.livesOn() )
{
kill( NEW_WAVE, theMetal );
}
if( theMetal.livesOn() )
{
kill( GRUNGE, theMetal );
}
if( theMetal.livesOn() )
{
defile( TECHNO, theMetal );
}
if( theMetal.livesOn() && !theMetal.defiled() && theMetal.comesFromHell() )
{
return HAIL_SATAN;
}
published on Mar 22, 2011 |
0 comment(s) |
Add Comment
by nicreations
void whipIt(Object &obj) {
obj.whipItIntoShape();
obj.shapeItUp();
getStraight();
goForward();
moveAhead();
detectIt();
}
int main(int argc, char **argv) {
Problem problem;
Cream cream;
Something something;
if( problem.comesAlong() ) {
whipIt(problem);
}
if ( cream.timeSet() < Cream.TOO_LONG ) {
whipIt(cream);
}
if ( something.goingWrong() ) {
whipIt(something);
}
}
published on Jan 03, 2011 |
0 comment(s) |
Add Comment
by kendricbeachey
if (new Calendar().get(Calendar.DAY_OF_WEEK) == Calendar.MONDAY) {
Moon moon = new Moon();
}
published on Jan 03, 2011 |
0 comment(s) |
Add Comment
by kendricbeachey
you.have(new Christmas(ChristmasType.HOLLY_JOLLY);
you.have(new Christmas(ChristmasType.MERRY | ChristmasType.LITTLE);
we.wish(you, new Christmas(ChristmasType.MERRY);
we.wish(you, new Holiday(HolidayType.HAPPY);
send(joy, world);
i.dream(new Christmas(ChristmasType.WHITE);
//TODO: add more in comments :-)
published on Dec 22, 2010 |
1 comment(s) |
Add Comment
by nicreations
double balance = bank.getBalance();
if ( balance > 1000000.0 ) {
buy( you, new House() );
buy( you,
Math.random() > .5 ? new Chesterfield() : new Ottoman());
buy( you, new KCar() );
TreeFort fort = new TreeFort();
build( fort ); // You can help, it wouldn't be that hard.
buy( fort, new Refrigerator() );
buy( you, new FakeFurCoat() ); // Not a real fur coat; that's cruel.
buy( you,
Math.random() > .5 ? new Llama() : new Emu() );
buy( you, new ElephantManRemains() );
take( new Limousine(), Store.getLocation() ); // Costs more!
eatMoreKraftDinner();
buy( you, new FakeGreenDress() ); // Not a real green dress; that's cruel
buy( you,
Math.random() > .5 ? new Picasso() : new Garfunkel() );
buy( you, new Monkey() ); // Haven't you always wanted a monkey?
buy( this, you->getLove() );
} // I'm rich biotch!
published on Nov 18, 2010 |
0 comment(s) |
Add Comment
by nicreations
#define FOUR_MINUTES 4 * 60 * 1000
// Get start time
long start = timeMillis();
do {
if ( you->want( It::instance() ) ) {
you->setHave( It::instance() );
}
if ( you->thought( It::instance() ) ) {
you->setWant( It::instance() );
}
if ( you->feel( It::instance() ) ) {
It::instance().setReal( true );
}
if ( you->sayTheWord() ) {
this->giveWhatYouWant( you );
}
// We only have four minutes to save the world
} while ( ( timeMillis() - cur ) < FOUR_MINUTES );
published on Nov 15, 2010 |
0 comment(s) |
Add Comment
by Shrini
[a@xyz~]$light
[light]$ exit
exit
[a@xyz~]$cd night
[a@xyz night]$ #take my hand
[a@xyz night]$ cp /etc/fonts .
[a@xyz night]$ #we are off to never never land
[a@xyz night]$/usr/bin/who >> /dev/null
published on Nov 10, 2010 |
0 comment(s) |
Add Comment
by nicreations
Istanbul = Constantinople.clone();
Constantinople.getTheWorks(); //Nobody's business but the turks
ASSERT(!Istanbul.equals(Constantinople));
published on Nov 08, 2010 |
0 comment(s) |
Add Comment
by Shrini
#!/usr/bin/bash
HOUR=`date +"%H"`;
CRY="cry";
#in the midnight hour cry more more more
if['$HOUR' == "00"] then
echo $CRY | more | more | more;
echo "Rebel Yell" + $CRY | more | more |more;
fi
published on Nov 08, 2010 |
0 comment(s) |
Add Comment
by nicreations
if( day > 0 ) {
abort(); // Already too late
}
published on Nov 06, 2010 |
0 comment(s) |
Add Comment
by nicreations
fat_bottomed_girl ~/> make rockin_world_go_round
published on Nov 03, 2010 |
0 comment(s) |
Add Comment
by nicreations
class It
{
public It() {
setGoodVibration(true);
setSweetSensation(true); //Donny D, break it down!
}
}
published on Nov 02, 2010 |
0 comment(s) |
Add Comment
by Shrini
#include <ctime>
#define THROUGH 2;
int main(int argc, char** argv) {
time_t now = time(NULL);
if(day(night(now)) != NULL) {
night(day(now));
}
try {
run(argv[1]);
hide(argv[0]);
} catch(_UnknownException e){
exit(1);
}
// Break on THROUGH
switch(argc) {
case THROUGH: break;
exit(0);
}
// Other side
}
// Day destroys arg
time_t day(time_t now) {
delete now;
return now;
}
//night divides value of tm_day in arg
time_t night(time_t now ) {
struct *tm = localtime(&now);
tm->day = tm->day/2;
return mktime (tm);
}
published on Nov 01, 2010 |
4 comment(s) |
Add Comment
by Shrini
class Listener: public IObserver { // Prints what you heard std::cout
public:
virtual void handleHearEvent(const char* heard) {
std::cout<<"Radio Gaa Radio Goo Goo"<<std::endl;
}
};
published on Nov 01, 2010 |
2 comment(s) |
Add Comment
by nicreations
Wolf wolf = boy.toMan().toWolf(); // Spooky scary!
published on Nov 01, 2010 |
0 comment(s) |
Add Comment
(c) 2012 nicreations all rights reserved