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, os, time | |
| def listFiles(val): | |
| curdir = os.getcwd() | |
| files = [] | |
| for filename in os.listdir(curdir): | |
| if (not filename.startswith('.')): | |
| s = os.stat(os.path.join(curdir, filename)) |
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
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
| <head> | |
| <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | |
| <title>Titanium File Explorer</title> | |
| <link rel="stylesheet" href="css/sunny/jquery-ui-1.8.10.custom.css" type="text/css" media="screen" charset="utf-8" /> | |
| <link rel="stylesheet" href="css/ui.jqgrid.css" type="text/css" media="screen" charset="utf-8" /> | |
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 results = from c in CustomerDataContext.CUSTOMERs | |
| join o in PoDataContext.POs on c.ID equals o.ID | |
| select new { c.ID, c.NAME, o.PRODUCT }; |
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 results2 = from c in CustomerDataContext.CUSTOMERs | |
| join o in CustomerDataContext.GetTable<PO>() | |
| on c.ID equals o.ID | |
| select new { c.ID, c.NAME, o.PRODUCT }; |
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 sayHello() { | |
| var prefix = "Hello "; | |
| return function say(name) { | |
| alert(prefix + name); | |
| } | |
| } | |
| var hi = sayHello(); | |
| hi("Anna"); //Hello Anna | |
| hi("Catalina"); //Hello Catalina |
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 sayHello() { | |
| var prefix = "Hello "; | |
| return function say(name) { | |
| alert(prefix + name); | |
| } | |
| } | |
| var hi = sayHello(); | |
| hi("Anna"); //shows Hello Anna | |
| hi("Catalina"); //shows Hello Catalina |
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
| <script> | |
| globalVar = "Hello"; | |
| alert(globalVar); | |
| </script> | |
| <div>Hello World</div> |
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
| <script> | |
| var globalVar = "Hello"; | |
| (function() { | |
| var localVar = "World"; | |
| alert(globalVar + " " + localVar); | |
| })(); | |
| </script> | |
| <div>Hello World</div> |
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
| <script> | |
| var globalVar = "Hello"; | |
| var foo = function(param) { | |
| var foo = 'bar'; | |
| alert(globalVar + " " + param); | |
| console.log(foo); | |
| }; | |
| foo("World"); | |
| </script> | |
| <div>Hello World</div> |
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
| a = {}; | |
| function outer() { | |
| var b = 0; | |
| var c = function inner() { | |
| var d = 10; | |
| b = d + b + 1; | |
| console.log(b); | |
| } | |
| a = c; |
OlderNewer