Skip to content

Instantly share code, notes, and snippets.

Adrien Maret Aschen

Block or report user

Report or block Aschen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View publish.js
await kuzzle.realtime.publish('index', 'collection', { content: 'liia meh ry' });
@Aschen
Aschen / publish.js
Last active May 10, 2019
Pub/Sub article
View publish.js
await kuzzle.realtime.publish('index', 'collection', { content: 'liia meh ry' });
@Aschen
Aschen / dump-kuzzle-index.js
Created Feb 18, 2019
Export and import data from a Kuzzle index
View dump-kuzzle-index.js
const
fs = require('fs'),
mkdirp = require('mkdirp'),
{
Kuzzle,
WebSocket
} = require('kuzzle-sdk');
const kuzzle = new Kuzzle(
new WebSocket('localhost', {
View component.vue
<template>
<div>
<button @click="testMe()">Click Me</button>
</div>
</template>
<script>
import kuzzle from '@/kuzzle'
export default {
name: 'Test',
View gist:4cce4f27d034ee882440ae5d0346c59a
```
mkdir -p /home/aschen/go/src/github.com/kuzzleio/sdk-go/internal/wrappers/build/c
cd ../../ && go get ./... ; cd -
/home/aschen/projets/kuzzleio/sdk-go/internal/wrappers
/usr/local/go/bin/go build -o /home/aschen/go/src/github.com/kuzzleio/sdk-go/internal/wrappers/build/c/libkuzzlesdk.a -buildmode=c-archive ./cgo/kuzzle/
/usr/local/go/bin/go build -o /home/aschen/go/src/github.com/kuzzleio/sdk-go/internal/wrappers/build/c/libkuzzlesdk.so -buildmode=c-archive ./cgo/kuzzle/
mv -f /home/aschen/go/src/github.com/kuzzleio/sdk-go/internal/wrappers/build/c/libkuzzlesdk.h /home/aschen/go/src/github.com/kuzzleio/sdk-go/internal/wrappers/build/c/kuzzle.h
mkdir -p /home/aschen/go/src/github.com/kuzzleio/sdk-go/internal/wrappers/build/python
swig -Wall -c++ -python -py3 -outdir /home/aschen/go/src/github.com/kuzzleio/sdk-go/internal/wrappers/build/python -o kcore_wrap.cxx -I/home/aschen/go/src/github.com/kuzzleio/sdk-go/internal/wrappers/headers -I/home/aschen/go/src/github.com/kuzzleio/sdk-go/internal/wrappers/cpp -
@Aschen
Aschen / bash
Created Apr 3, 2018
Can't run standalone script : TypeError: fn is not a function
View bash
aschen@gman mns/Metacoin » truffle exec test.js
Using network 'development'.
TypeError: fn is not a function
at /home/aschen/.nvm/versions/node/v9.8.0/lib/node_modules/truffle/build/webpack:/~/truffle-require/require.js:128:1
at /home/aschen/.nvm/versions/node/v9.8.0/lib/node_modules/truffle/build/webpack:/~/truffle-require/require.js:101:1
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:532:3)
View keybase.md

Keybase proof

I hereby claim:

  • I am aschen on github.
  • I am aschen93 (https://keybase.io/aschen93) on keybase.
  • I have a public key whose fingerprint is BAC9 39AC 6D76 00E9 5B79 FFF6 3FBD 61DB B3CC 7634

To claim this, I am signing this object:

@Aschen
Aschen / docker-compose.yml
Created Mar 22, 2018
Nunux Reader Authentication with Nginx
View docker-compose.yml
web:
build: .
ports:
- "56432:3000"
links:
- redis
environment:
- NODE_ENV=production
- APP_REDIS_URI=redis://redis:6379/5
- APP_EMBEDDED_DAEMONS=feed-updater
@Aschen
Aschen / application.js
Last active Feb 14, 2019
Import javascript class in the standard asset pipeline
View application.js
// app/javascript/packs/application.js
import Foobar from '../foobar/foobar'
window.Foobar = Foobar
View EpsiFileCompressor.cpp
void EpsiFileCompressor::compress(const QString &folder, const QString &ecfFilename)
{
QWaitCondition waitCondition;
FilePool filepool(folder);
ZippedBufferPool zippedBufferPool(&waitCondition);
Zipper zipper1(&filepool, &zippedBufferPool);
Zipper zipper2(&filepool, &zippedBufferPool);
Writter writter(ecfFilename, &zippedBufferPool, &waitCondition);
You can’t perform that action at this time.