This file contains hidden or 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
| #else /* !WIN32 */ | |
| /* We must load in the binary to allow access to it. | |
| * Thanks to your-name-here for that bit of info! | |
| */ | |
| if (dlopen("libpython2.5.so.1.0", RTLD_NOW) == NULL) | |
| { | |
| strncpy(error, "Unable to load libpython2.5.so.1.0", maxlength); | |
| return false; | |
| } | |
This file contains hidden or 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
| import org.zeromq.ZMQ; | |
| import org.zeromq.ZMQActor; | |
| class Player extends ZMQActor { | |
| String name | |
| int myNum | |
| public Player(ZMQ.Context ctx, String addr, String name) { | |
| super(ctx, ZMQ.REQ) | |
| this.name = name |
This file contains hidden or 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
| /* | |
| * Copyright (C) 2011 James Geboski <[email protected]> | |
| * | |
| * This program is free software; you can redistribute it and/or modify it | |
| * under the terms of the GNU General Public License version 2 as published | |
| * by the Free Software Foundation. | |
| */ | |
| #include "Chan.h" | |
| #include "Client.h" |
This file contains hidden or 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
| /* | |
| * Copyright (C) 2009 flakes @ EFNet | |
| * tweaked by Gm4n @ freenode | |
| * Version 0.9.5-2 (2009-11-9) | |
| * | |
| * This program is free software; you can redistribute it and/or modify it | |
| * under the terms of the GNU General Public License version 2 as published | |
| * by the Free Software Foundation. | |
| */ |
This file contains hidden or 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
| /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- | |
| * vim: set sw=4 ts=8 et tw=78: |
This file contains hidden or 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
| /* | |
| * vim: set ts=4 : | |
| * ============================================================================= | |
| * Triskle Commons | |
| * Copyright (C) 2011 Reuben 'Seta00' Morais. All rights reserved. | |
| * ============================================================================= | |
| * | |
| * This program is free software; you can redistribute it and/or modify it under | |
| * the terms of the GNU General Public License, version 3.0, as published by the | |
| * Free Software Foundation. |
This file contains hidden or 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
| #!/usr/bin/env python | |
| # vim: sw=4 ts=4 expandtab smarttab | |
| """ | |
| Private Paste Command Line Utility | |
| privatepaste.com | |
| @author Adrian <[email protected]> | |
| @since 2010-04-11 | |
| """ |
This file contains hidden or 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
| mkvirtualenv fofix -p /usr/bin/python2.6 | |
| workon fofix | |
| brew install sdl | |
| brew install sdl_{mixer,ttf,image} | |
| brew install libpng | |
| cd /usr/local/include | |
| ln -s SDL/* . | |
| pip install hg+http://bitbucket.org/pygame/pygame | |
| pip install PyOpenGL | |
| pip install numpy |
This file contains hidden or 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
| dictionary ContactFindSortOptions { | |
| DOMString sortBy; | |
| DOMString sortOrder = "ascending"; | |
| }; | |
| dictionary ContactFindOptions : ContactFindSortOptions { | |
| DOMString filterValue; | |
| DOMString filterOp; | |
| any filterBy; // e.g. ["givenName", "nickname"] | |
| unsigned long filterLimit; |
This file contains hidden or 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
| receiveMessage: function(aMessage) { | |
| let msg = aMessage.json; | |
| switch (aMessage.name) { | |
| case "Contact:Changed": | |
| // Fire oncontactchange event | |
| if (DEBUG) debug("Contacts:ContactChanged: " + msg.contactID + ", " + msg.reason); | |
| let event = new this._window.MozContactChangeEvent("contactchange", { | |
| contactID: msg.contactID, | |
| reason: msg.reason |
OlderNewer