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
| class A(object): | |
| def x(self): | |
| print 'x' | |
| def __getattr__(self, name): | |
| if name == 'y': | |
| return self.x | |
| a = A() | |
| a.y() |
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
| (function() { | |
| $(function(){ | |
| var foo = 'bar'; | |
| var hello = function() { | |
| alert('world'); | |
| } | |
| }); | |
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
| var assignXuiteMapData = function(data) { | |
| var c = data.center, fotos = data.data; | |
| xfm.clearMarkers(); | |
| xfm.setMapCenter(c.lat, c.lng); | |
| var $con = $('#'+xfm.cont); | |
| $con.html(''); | |
| xfm.geo_data = [] | |
| for (var i in fotos) { | |
| var f = fotos[i]; |
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
| <div id="comments"></div> | |
| <div id="pages"> | |
| <a href="#" class="page">1</a> | |
| <a href="#" class="page">2</a> | |
| <a href="#" class="page">3</a> | |
| </div> | |
| <script type="text/javascript"> | |
| $('.page').click(function(e){ | |
| // 內容改成風火輪,看起來像在讀取中... |
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
| <mx:Script> | |
| <![CDATA[ | |
| import flash.net.FileFilter; | |
| import flash.net.FileReferenceList; | |
| import mx.collections.ArrayCollection; | |
| [Bindable] | |
| private var uploadPhotos:ArrayCollection; | |
| private var fileTypes:FileFilter = new FileFilter("Images (*.jpg, *.jpeg, *.gif, *.png)", "*.jpg;*.jpeg;*.gif;*.png"); |
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
| <?php | |
| class FlickrController extends Zend_Controller_Action { | |
| const PUBLIC_KEY = '9c4d2130b524e3ae884a55826d570503'; | |
| const PRIVATE_KEY = 'b296b8bf8ee7887d'; | |
| public function init() { | |
| $this->systemp = '/home/www/sys_tmp'; | |
| $this->_helper->layout()->disableLayout(); |
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
| var script = document.createElement('script'); | |
| script.type = 'text/javascript'; | |
| script.src = '/path/to/json'; | |
| document.getElementsByTagName('head')[0].appendChild(script); |
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
| <center> | |
| <script src="http://partner.googleadservices.com/gampad/google_service.js" type="text/javascript"> | |
| </script> | |
| <script type="text/javascript"> | |
| </script> | |
| <script src="http://pubads.g.doubleclick.net/gampad/test_gam_domain.js"> | |
| </script> | |
| <script src="http://partner.googleadservices.com/gampad/google_ads.js"> | |
| </script> | |
| <script type="text/javascript"> |
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 | |
| import sys | |
| import os | |
| import urllib | |
| import urllib2 | |
| import re | |
| def main(): | |
| url = sys.argv[1] | |
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
| #include <stdio.h> | |
| int main() { | |
| int x = 5; | |
| ((void)0, x)++; | |
| printf("%d\n", x); | |
| return 0; | |
| } |
OlderNewer