NOTE: the content is out-of-date. All development is moved to the https://github.com/yurydelendik/wasmception
# locations, e.g.
export WORKDIR=~/llvmwasm; mkdir -p $WORKDIR
export INSTALLDIR=$WORKDIR
| """Demonstrate the features""" | |
| from pep487 import init_subclasses, noconflict | |
| class Demo(init_subclasses): | |
| def __init_subclass__(cls, ns, **kw): | |
| print((cls, ns, kw)) | |
| super().__init_subclass__(cls, ns, **kw) | |
| # The above doesn't print anything, since it's not a subclass of itself |
NOTE: the content is out-of-date. All development is moved to the https://github.com/yurydelendik/wasmception
# locations, e.g.
export WORKDIR=~/llvmwasm; mkdir -p $WORKDIR
export INSTALLDIR=$WORKDIR
Below is the list of modern JS frameworks and almost frameworks – React, Vue, Angular, Ember and others.
All files were downloaded from https://cdnjs.com and named accordingly.
Output from ls command is stripped out (irrelevant stuff)
$ ls -lhS
566K Jan 4 22:03 angular2.min.js
| from collections import OrderedDict | |
| from graphql.core.execution.executor import Executor | |
| from graphql.core.execution.middlewares.gevent import GeventExecutionMiddleware, run_in_greenlet | |
| import graphene | |
| class Patron(graphene.ObjectType): | |
| id = graphene.ID() |
| // get nearest parent element matching selector | |
| var closest = (function() { | |
| var el = HTMLElement.prototype; | |
| var matches = el.matches || el.webkitMatchesSelector || el.mozMatchesSelector || el.msMatchesSelector; | |
| return function closest(el, selector) { | |
| return matches.call(el, selector) ? el : closest(el.parentElement, selector); | |
| }; | |
| })(); |
| { | |
| page(url:"http://www.eventbrite.com/") { | |
| title: text(selector:"title") | |
| cards: query(selector:"div.poster-card") { | |
| name: text(selector:"[itemprop=name]") | |
| url: attr(selector:"meta[itemprop=url]", name:"content") | |
| image_src: attr(selector:".js-poster-image", name:"src") | |
| } | |
| } | |
| } |
| import asyncio | |
| from django import http | |
| from django.core.urlresolvers import set_script_prefix | |
| from django.utils.encoding import force_str | |
| from django.core.handlers.wsgi import get_script_name | |
| from django_wsgi.handler import DjangoApplication | |
| import logging | |
| import logging | |
| import sys |
| function maybeFilter(array, predicate) { | |
| var newArray; | |
| array.forEach((item, i) => { | |
| if (predicate(item)) { | |
| if (newArray) { | |
| newArray.push(item) | |
| } | |
| } else if (!newArray) { | |
| newArray = array.slice(0, i) | |
| } |
| import graphene | |
| import boto3 | |
| class Cluster(graphene.ObjectType): | |
| arn = graphene.String(description='Cluster ARN') | |
| name = graphene.String(description='Cluster Name') | |
| status = graphene.String(description='Cluster Status') | |
| registeredContainerInstancesCount = graphene.Int(description='Container Instances Count') | |
| runningTasksCount = graphene.Int(description='Running Tasks Count') |
| import functools | |
| from django.db.models import Prefetch, QuerySet | |
| import attr | |
| import graphene | |
| from cursor_pagination import CursorPaginator | |
| from graphene.utils.str_converters import to_snake_case | |
| from graphql_relay import connection_from_list |