Ctrl + V dump

  • (76 Pages)
  • +
  • « First
  • 22
  • 23
  • 24
  • 25
  • 26
  • Last »

1129 Replies - 83344 Views - Last Post: 30 January 2017 - 08:42 AM

#346 [email protected]   User is offline

  • JMP *0x0(%RIP)
  • member icon

Reputation: 37
  • View blog
  • Posts: 1,019
  • Joined: 20-February 09

Re: Ctrl + V dump

Posted 21 July 2009 - 03:25 AM

http://www.washingto...2860/cup098.jpg

#347 gabehabe   User is offline

  • GabehabeSwamp
  • member icon




Reputation: 1440
  • View blog
  • Posts: 11,025
  • Joined: 06-February 08

Re: Ctrl + V dump

Posted 21 July 2009 - 11:23 AM

void SnippetBrowser::on_double_click(wxMouseEvent& evt) {
    if(this->HasChildren(this->GetSelection())) { // expand a parent node
        if(this->IsExpanded(this->GetSelection())) {
            this->Collapse(this->GetSelection());
        } else {
            this->Expand(this->GetSelection());
        }
    } else { // nested if later to determine if its online or local
        wxString id = wxT("");
        vector<snippet>::iterator it;
        for(it = this->snippets.begin(); it != this->snippets.end(); ++it) {
            if(it->owner == this->GetSelection()) {
                id = it->id;
                break;
            }
        }
        if(id != wxT("")) { // its a cloud snippet
            wxString query = wxT("SELECT title, content FROM snippets WHERE sid = ") + id + wxT(" LIMIT 1");
            MYSQL* mysql = ((Interface*)this->i)->mysql;
            MYSQL_RES* result;
            mysql_query(mysql, query.mb_str());
            result = mysql_use_result(mysql);
            MYSQL_ROW row;
            row = mysql_fetch_row(result);
            ((Interface*)this->i)->AddPage(wxString(row[0], wxConvUTF8), wxT(""), wxString(row[1], wxConvUTF8));
            mysql_free_result(result);
        } else { // its local
            wxString path = wxT("");
            wxTreeItemId path_builder = this->GetSelection();
            while(path_builder != this->GetRootItem()) {
                path = wxT("/") + this->GetItemText(path_builder) + path;
                path_builder = this->GetItemParent(path_builder);
            }
            path = wxT("./") + path.AfterFirst('/').AfterFirst('/');
            ((Interface*)this->i)->AddPage(this->GetItemText(this->GetSelection()), path);
        }
    }
}


Not sure why I had the whole function in my clipboard, but still... :/

Added code tags for clarity.

#348 ShaneK   User is offline

  • require_once("brain.php"); //Fatal error :/
  • member icon

Reputation: 240
  • View blog
  • Posts: 1,224
  • Joined: 10-May 09

Re: Ctrl + V dump

Posted 21 July 2009 - 05:10 PM

Um...

Quote

"It took 285 seconds to count to 900000!"


(That's exactly how I had it on my clipboard... quotation marks and all...)

It was a program I wrote in C++, because I'm newb to C++...I was playing with a for loop :P

Yours,
Shane~

#349 [email protected]   User is offline

  • JMP *0x0(%RIP)
  • member icon

Reputation: 37
  • View blog
  • Posts: 1,019
  • Joined: 20-February 09

Re: Ctrl + V dump

Posted 21 July 2009 - 08:54 PM

http://powershell.co...-PowerShell.pdf
:P

#350 gabehabe   User is offline

  • GabehabeSwamp
  • member icon




Reputation: 1440
  • View blog
  • Posts: 11,025
  • Joined: 06-February 08

Re: Ctrl + V dump

Posted 22 July 2009 - 01:57 AM

DO FORM doc_print NAME lfprint NOSHOW
lfprint.Show(1)


off topic:

View PostShaneK, on 21 Jul, 2009 - 11:10 PM, said:

Um...

Quote

"It took 285 seconds to count to 900000!"


(That's exactly how I had it on my clipboard... quotation marks and all...)

It was a program I wrote in C++, because I'm newb to C++...I was playing with a for loop :P

Yours,
Shane~

Takes 0.065 seconds for me, what're you doing?! :)

This post has been edited by gabehabe: 22 July 2009 - 01:58 AM


#351 Project 2501   User is offline

  • import awesome as Project_2501
  • member icon

Reputation: 9
  • View blog
  • Posts: 1,565
  • Joined: 14-December 08

Re: Ctrl + V dump

Posted 22 July 2009 - 12:37 PM

@NeoTifa: Lmao! Do you know how old he was? I'm guess 13-14 lol

Here's what's on my clipboard:
So when's Courtney get back from the dentist?

#352 NeoTifa   User is offline

  • NeoTifa Codebreaker, the Scourge of Devtester
  • member icon





Reputation: 4935
  • View blog
  • Posts: 20,264
  • Joined: 24-September 08

Re: Ctrl + V dump

Posted 22 July 2009 - 12:39 PM

hiButton = new JButton("HI!!!!")


@project he said :

9:46 PM - Dude_OU812: im only 10 bbut i have a heart and soul of a 36 year old

#353 brds   User is offline

  • D.I.C Addict
  • member icon

Reputation: 76
  • View blog
  • Posts: 515
  • Joined: 22-October 08

Re: Ctrl + V dump

Posted 22 July 2009 - 12:44 PM

count = 0;

while(count < limit)
cout << (char)(alpha+count++);

#354 gabehabe   User is offline

  • GabehabeSwamp
  • member icon




Reputation: 1440
  • View blog
  • Posts: 11,025
  • Joined: 06-February 08

Re: Ctrl + V dump

Posted 22 July 2009 - 12:45 PM

/msg NickServ ACTIVATE 9527



@Neo you missed a semicolon.

This post has been edited by gabehabe: 22 July 2009 - 12:46 PM


#355 NeoTifa   User is offline

  • NeoTifa Codebreaker, the Scourge of Devtester
  • member icon





Reputation: 4935
  • View blog
  • Posts: 20,264
  • Joined: 24-September 08

Re: Ctrl + V dump

Posted 22 July 2009 - 12:47 PM

I was just throwing together a generic example, Danny. Lol.

#356 [email protected]   User is offline

  • JMP *0x0(%RIP)
  • member icon

Reputation: 37
  • View blog
  • Posts: 1,019
  • Joined: 20-February 09

Re: Ctrl + V dump

Posted 23 July 2009 - 01:40 AM

<VSContent xmlns="http://schemas.microsoft.com/developer/vscontent/2005">
	<Content>
		<FileName>MyButtonControl.dll</FileName>
		<DisplayName>My Custom Button</DisplayName>
		<Description>A control created for this example.</Description>
		<FileContentType>Toolbox Control</FileContentType>
		<ContentVersion>2.0</ContentVersion>
	</Content>
</VSContent>



#357 paperclipmuffin   User is offline

  • Disassembling...
  • member icon

Reputation: 13
  • View blog
  • Posts: 944
  • Joined: 16-April 09

Re: Ctrl + V dump

Posted 23 July 2009 - 01:51 AM

set /P Store1=What do you want your store name to be?:

#358 Bort   User is offline

  • Ill-informed Mongoloid
  • member icon

Reputation: 451
  • View blog
  • Posts: 3,114
  • Joined: 18-September 06

Re: Ctrl + V dump

Posted 23 July 2009 - 05:52 AM

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Post your code like this: Posted Image

Thanks.

#359 NeoTifa   User is offline

  • NeoTifa Codebreaker, the Scourge of Devtester
  • member icon





Reputation: 4935
  • View blog
  • Posts: 20,264
  • Joined: 24-September 08

Re: Ctrl + V dump

Posted 23 July 2009 - 09:54 AM

http://www.dreaminco...dex.php?act=idx

#360 ShaneK   User is offline

  • require_once("brain.php"); //Fatal error :/
  • member icon

Reputation: 240
  • View blog
  • Posts: 1,224
  • Joined: 10-May 09

Re: Ctrl + V dump

Posted 24 July 2009 - 03:43 AM

http://homies.x10hosting.com/images/

Um, you might not wanna go to that lol...
I rick roll people snooping around my open directories. (And showed that to a friend not too long ago :P)

Yours,
Shane~

This post has been edited by ShaneK: 24 July 2009 - 03:46 AM


  • (76 Pages)
  • +
  • « First
  • 22
  • 23
  • 24
  • 25
  • 26
  • Last »