This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
| else if ( s_appMod == "ling" ) { | |
| l_objectName = "Linguistics"; | |
| Linguistics::SystemAdaptor* l_adpt = new Linguistics::SystemAdaptor; | |
| registerObject ("/System", l_adpt); | |
| s_adapt = l_adpt; | |
| } else if ( s_appMod == "data" ) { | |
| l_objectName = "Data"; | |
| Data::Linguistics::System::setLocale ( Core::arguments ()->value ("locale").toString () ); |
| # Provides a means of creating a plugin for | |
| # Wintermute. | |
| set(WINTER_PLUGIN_INSTALL_DIR "${WINTER_LIB_INSTALL_DIR}/wntr" CACHE PATH "Plugin installation path.") | |
| set(WINTER_PLUGIN_INCLUDE_INSTALL_DIR "${WINTER_INCLUDE_INSTALL_DIR}/plugins" CACHE PATH "Plugin header installation path.") | |
| set(WINTER_PLUGIN_DATA_INSTALL_DIR "${WINTER_DATA_INSTALL_DIR}/plugins" CACHE PATH "Plugin data installation path.") | |
| set(WINTER_PLUGINSPEC_INSTALL_DIR "${WINTER_DATA_INSTALL_DIR}/specs" CACHE PATH "Plugin specification installation path.") |
| # Represents a plugin defiintion file used by Wintermute | |
| # to assist the means of loading settings, plugin arguments | |
| # and etc. | |
| # Plugin namespace | |
| # This namespace holds most of the descriptive information of the plugin. | |
| # @todo We need a place to hold all of the UUIDs that we use for plug-ins, so that we can refer to them. | |
| [Plugin] | |
| Name=PLUGIN_NAME |
| #!/usr/bin/python | |
| import time | |
| import cmd | |
| print("Wintermute 1.0 (pid 9860) :: Artificial intelligence for common Man. (Licensed under the GPL3+)\n(core) [Factory] Started.\n ") | |
| time.sleep(0.5) | |
| class winty(cmd.Cmd): | |
| def do_events(self,line): | |
| print("It's almost time until your scheduled event with Wintermute Developers at 19:00 EST on Freenode (##sii-dev).") |
| ---------- Forwarded message ---------- | |
| From: Mark S. Miller <[email protected]> | |
| Date: Tue, Nov 16, 2010 at 3:44 PM | |
| Subject: "Future of Javascript" doc from our internal "JavaScript Summit" | |
| last week | |
| To: [email protected] | |
| On November 10th and 11th, a number of Google teams representing a variety | |
| of viewpoints on client-side languages met to agree on a common vision for | |
| the future of Javascript. |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns | |
| Compress 1K bytes with Zippy 3,000 ns | |
| Send 2K bytes over 1 Gbps network 20,000 ns | |
| Read 1 MB sequentially from memory 250,000 ns | |
| Round trip within same datacenter 500,000 ns | |
| Disk seek 10,000,000 ns |
| /* ============================================================ | |
| * bootstrap-dropdown.js v2.0.4 | |
| * http://twitter.github.com/bootstrap/javascript.html#dropdowns | |
| * ============================================================ | |
| * Copyright 2012 Twitter, Inc. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * |
| # blog post: | |
| module ActiveAdmin | |
| module ViewHelpers | |
| # lib/active_admin/view_helpers/auto_link_helper.rb | |
| def auto_link(resource, link_content = nil) | |
| content = link_content || display_name(resource) | |
| if can?(:read, resource) && registration = active_admin_resource_for(resource.class) | |
| begin |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>title</title> | |
| </head> | |
| <body> | |
| <p>body</p> | |
| </body> | |
| </html> |