Skip to content

Instantly share code, notes, and snippets.

@acelot
acelot / Cargo.toml
Last active October 29, 2020 05:52
juniper union failure with interfaces
[package]
name = "juniper-test"
version = "0.1.0"
authors = ["acelot <provaleriy@gmail.com>"]
edition = "2018"
[dependencies]
log = "0.4"
env_logger = "0.8"
actix-web = "3.1"
@acelot
acelot / bigsum
Last active August 21, 2018 06:57
The adder of big numbers
#!/usr/bin/env php
<?php declare(strict_types=1);
if ($argc !== 3) {
echo 'Usage: bigsum NUMBER1 NUMBER2' . PHP_EOL;
exit(2);
}
[, $n1, $n2] = $argv;

Keybase proof

I hereby claim:

  • I am acelot on github.
  • I am nakurtag (https://keybase.io/nakurtag) on keybase.
  • I have a public key ASBJ-plC97sALI7LJW71eNz2WPm1Gikpuo3AE-QqPGMwlQo

To claim this, I am signing this object:

@acelot
acelot / Index.php
Last active August 29, 2015 14:03
slim controller, controllers for slim, slim framework, slim mvc, SlimControlled.php
<?php
namespace App\Controllers;
class Index
{
public function action_index()
{
echo 'Hello, world';
}
define(
[
'app',
'backbone'
],
function (app, Backbone) {
'use strict';
return Backbone.View.extend({
var Item = can.Model({
findAll: 'GET /app/items',
findOne: 'GET /app/items/get/{id}'
}, {});
can.view('views/simple.ejs', {
items: Item.findAll()
}).then(function (result) {
$('#content').html(result);
});