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
| // Can omit the whole @interface section if no private fields/properties to declare | |
| @interface MyClass () // parens are almost always empty - used only to define a "Category" when adding mixins to existing class definition | |
| { | |
| int foo; // private field (not common) - access as 'foo' | |
| } // can omit these {}s if no private fields | |
| @property (nonatomic) int foo2; // private property - access as 'self.foo2' | |
| // Any property (private or public) can also be accessed within the class as "_foo2" (without "self"). This bypasses the getter/setter | |
| // methods and accesses it directly like an ivar. Since the getter/setter are usually auto-generated stubs, there's usually no behavior | |
| // difference with this syntax. |
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
| To use: create a new bookmark and paste into the URL field. | |
| In Chrome, you can paste the full multiline code as shown below. | |
| In other browsers, you may need to minify the code into one line first. |
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> | |
| <html> | |
| <head> | |
| <title>CodeMirror line widget / wordwrap issue</title> | |
| <script src="http://codemirror.net/lib/codemirror.js"></script> | |
| <link rel="stylesheet" href="http://codemirror.net/lib/codemirror.css"> | |
| <style type="text/css"> | |
| .CodeMirror { | |
| margin: 0; | |
| border: 0; |
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
| describe("Concurrent mutation", function () { | |
| function runTest(asyncAPI, arrayMutate) { | |
| var items = [1, 2, 3]; | |
| var deferreds = []; | |
| var nextExpectedItem = 1; | |
| var masterPromise = asyncAPI(items, function (item, i) { | |
| expect(item).toBe(nextExpectedItem); | |
| expect(i).toBe(nextExpectedItem - 1); | |
| nextExpectedItem++; | |
| arrayMutate(items, item, 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <link rel="stylesheet" href="main.css"> | |
| </head> | |
| <body> | |
| <div class="pane-content" style="height: 500px"> | |
| <div class="image-view" style="top: 0px; left: 0px; width: 1690px; height: 500px;"> | |
| <div class="image-centering"> |
This file has been truncated, but you can view the full file.
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
| eval("01234567891123456789212345678931234567894123456789512345678961234567897123456789812345678991234567890123456789112345678921234567893123456789412345678951234567896123456789712345678981234567899123456789012345678911234567892123456789312345678941234567895123456789612345678971234567898123456789912345678901234567891123456789212345678931234567894123456789512345678961234567897123456789812345678991234567890123456789112345678921234567893123456789412345678951234567896123456789712345678981234567899123456789012345678911234567892123456789312345678941234567895123456789612345678971234567898123456789912345678901234567891123456789212345678931234567894123456789512345678961234567897123456789812345678991234567890123456789112345678921234567893123456789412345678951"),function(root){define("0123456789",[],function(){return function(){return eval('012345678911234567892123456789312345678941234567895123456789612345678971234567898123456789912345678901234567891123456789212345678931234567894123456789512345678961234567897123456789812 |
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 makeFiller(len) { | |
| var str = ""; | |
| var i; | |
| for (i = 0; i < len; i++) { | |
| var mod = i % 10; | |
| if (mod) { | |
| str += mod; | |
| } else { | |
| mod = (i / 10) % 10; | |
| str += mod; |
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 makeFiller(len) { | |
| var str = ""; | |
| var i; | |
| for (i = 0; i < len; i++) { | |
| var mod = i % 10; | |
| if (mod) { | |
| str += mod; | |
| } else { | |
| mod = (i / 10) % 10; | |
| str += mod; |
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
| Process: Brackets Helper [385] | |
| Path: /Applications/Brackets.app/Contents/Frameworks/Brackets Helper.app/Contents/MacOS/Brackets Helper | |
| Identifier: org.cef.cefclient.helper | |
| Version: ??? | |
| Code Type: X86 (Native) | |
| Parent Process: Brackets [382] | |
| Responsible: Brackets [382] | |
| User ID: 501 | |
| Date/Time: 2014-03-25 10:24:07.269 +0100 |
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> | |
| <html> | |
| <head> | |
| <title></title> | |
| <link rel="stylesheet" href="styles.css"> | |
| </head> | |
| <body> | |