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
| import stdlib.core.web.resource | |
| import stdlib.core | |
| import stdlib.components.simpletable | |
| import stdlib.widgets.core | |
| type row = {red:int} | |
| / {blue:string} |
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
| import stdlib.widgets.core | |
| import stdlib.components.table | |
| import stdlib.interactions.editable | |
| type table.value = int | |
| type key_row = int | |
| type key_col = int | |
| onready() = | |
| row_to_string(row) = "{row}" |
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
| type AAA = {AAA : string} | |
| type AAB = {AAB : string} | |
| type ABA = {ABA : string} | |
| type ABB = {ABB : string} | |
| type AA = {AA : string fils : AAA/AAB/{none}} | |
| type AB = {AB : string fils : ABA/ABB/{none}} | |
| type A = {a1 : string a2 : string fils : AA/AB/{none}} |
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
| exe: src/main.cpp | |
| g++ -o exe src/main.cpp -Wall -Werror `urg-config --cflags` `sdl-config --cflags` `urg-config --libs` `sdl-config --libs` -lc -lpthread |
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
| database test { | |
| int /counter = 0; | |
| stringmap(int) /mymap; | |
| } | |
| function action(_) { | |
| Int.repeat(function (_) { | |
| c = /test/counter | |
| /test/mymap["{c}"] <- c | |
| /test/counter = c + 1 | |
| void |
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
| import asyncio | |
| import unittest | |
| import unittest.mock | |
| class MyClass: | |
| @asyncio.coroutine | |
| def coro1(self): | |
| yield from self.coro2() |
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
| import logging | |
| import traceback | |
| import asyncio | |
| logger = logging.getLogger(__name__) | |
| class QuitCommand(Exception): |
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
| if self.frame_end is not None: | |
| frame_end = binascii.hexlify(self.frame_end).decode('ascii') | |
| frame_data = { | |
| 'type': self.frame_type, | |
| 'channel': self.channel, | |
| 'size': self.payload_size, | |
| 'frame_end': frame_end, | |
| 'payload': self.frame_payload, | |
| } |
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(ServiceBase): | |
| @rpc(String, _returns=String, _no_cls=False) | |
| def hello(cls, ctx, name): | |
| print(name, cls) | |
| return cls._hello(name) | |
| @classmethod | |
| def _hello(cls, name): | |
| return 'Hello, %s' % name |
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
| ./manage.py test -v2 | |
| Creating test database for alias 'mysite' (':memory:')... | |
| Operations to perform: | |
| Synchronize unmigrated apps: staticfiles, messages | |
| Apply all migrations: admin, contenttypes, sites, auth, sessions | |
| Synchronizing apps without migrations: | |
| Creating tables... | |
| Running deferred SQL... | |
| Running migrations: | |
| Rendering model states... DONE |
OlderNewer