Skip to content

Instantly share code, notes, and snippets.

View syrusakbary's full-sized avatar
💪
Building @wasmerio

Syrus Akbary syrusakbary

💪
Building @wasmerio
View GitHub Profile
@s-macke
s-macke / hello.c
Last active August 28, 2023 06:30
Hello world example by using an headerless implementation of the WASI interface. The only dependency is clang
/*
* This code is a headerless implementation of the WASI interface in C and prints "Hello World!.
* You only need clang and the llvm linker.
*
* compile with
* clang -Os -nostdlib --target=wasm32 -Wl,--allow-undefined hello.c -o hello.wasm
*
* run with
* https://runno.dev/wasi
* Just upload hello.wasm
@bjfish
bjfish / main.rs
Last active January 25, 2019 01:20
Wasmer Rust Embedder App Example
extern crate wasmer_runtime;
use std::{fs::File, io::prelude::*, str};
use wasmer_runtime::{self as runtime, prelude::*};
fn main() {
// Read the wasm file produced by our sample application...
let mut wasm_file =
File::open("./wasm-sample-app/target/wasm32-unknown-unknown/release/wasm_sample_app.wasm")

Agile Software Developer

Madrid, Community of Madrid, Spain

DESCRIPTION

We are looking for several software developers: junior, senior, tech lead, etc. with focus on product to join our Tech Team based in Madrid (Spain). As a software developer you will be part of a collaborative effort focused on delivering business value continuously for our product and customers.

We are a SaaS company that believes in simplicity. We work to change the way people feel and make video advertising, at the touch of a button.

Engineering Team Culture

  • We love our profession. We work hard to build the best product and the best team that any SaaS company could have.
@ivlevdenis
ivlevdenis / django_graphene_orderBy.py
Last active September 14, 2023 17:58
Django graphene orderBy
from graphene import relay, String, List
from graphene_django.filter import DjangoFilterConnectionField
from graphene_django.fields import DjangoConnectionField
from app.models import Model
class Object(DjangoObjectType):
class Meta:
model = Model
@kanaka
kanaka / addTwo.wast
Last active June 17, 2021 21:39
Run wast (WebAssembly) in node
(module
(func $addTwo (param i32 i32) (result i32)
(i32.add
(get_local 0)
(get_local 1)))
(export "addTwo" (func $addTwo)))
@geoffreydhuyvetters
geoffreydhuyvetters / react_fiber.md
Last active January 13, 2023 06:49
What is React Fiber? And how can I try it out today?
@davidcelis
davidcelis / blame.graphql
Created December 6, 2016 19:28
An example GraphQL query to get `git blame` data from the GitHub GraphQL API
query {
repositoryOwner(login: "github") {
repository(name: "linguist") {
object(expression: "master") {
... on Commit {
blame(path: "github-linguist.gemspec") {
ranges {
startingLine
endingLine
age
@mjtamlyn
mjtamlyn / cursor.py
Last active December 2, 2021 08:42
Graphene pagination
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
@Rohja
Rohja / graphene-boto3-ecs.py
Created September 30, 2016 12:32
A simple GraphQL test - Query ECS informations from AWS API
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')
@leebyron
leebyron / maybeFilter.js
Last active June 29, 2016 08:34
An array filter function which does not create a new array if no items are removed.
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)
}