You can use simple dynamic object instance with this command !
o = type('lamdbaobject', (object,), {})()
Like PHP StdClass, a usefull built-in lamdba object instance. Source
<!DOCTYPE> | |
<head> | |
<title>Scorll Nav Example</title> | |
<style type="text/css"> | |
.active{ | |
color: green; | |
border: 1px solid black; | |
} | |
.wrapper{ | |
width: 960px; |
<?php | |
return array( | |
'connections'=>array( | |
'mysql' => array( | |
'driver' => 'mysql', | |
'host' => 'localhost', | |
'database' => 'database', |
user1;192.191.123.121;hostname2;extra information goes here | |
root;192.168.112.121;hostname1;and here |
$queries = DB::getQueryLog(); | |
$last_query = end($queries); | |
return $last_query; | |
$cb = function($n){ return $n['id']; }; | |
return array_map($cb, $orders->toArray()); |
import cherrypy | |
class HelloWorld(object): | |
@cherrypy.expose | |
def index(self): | |
return "Hello world!" | |
cherrypy.config.update({'server.socket_host': '127.0.0.1', 'server.socket_port': 8000, }) | |
if __name__ == '__main__': |
{"will":"it","do":"?"} |
You can use simple dynamic object instance with this command !
o = type('lamdbaobject', (object,), {})()
Like PHP StdClass, a usefull built-in lamdba object instance. Source
<?php | |
/** | |
* @package thebox | |
* @since thebox 1.0 | |
*/ | |
?> | |
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> | |
<header class="entry-header"> |
8888888OZ7????????????????????????????????????????????7ZO888888 | |
8888Z~....................................................~Z888 | |
888Z:......................................................:Z88 | |
88I..................................................,.......I8 | |
8O:.................................................=........:O | |
87................................................==..........7 | |
8?...............................................=?...........? | |
8I.............................,...............~$,............I | |
8I...........~:................+~............~$+..............I |
$ | |
D | |
$ | |
NZ | |
$$ | |
$ $$ | |
Z $ $$ | |
$ $ $$ | |
$Z $$ $$$ | |
$$ $$$ 7$$7 |