Instantly share code, notes, and snippets.

Adrien Maret Aschen

View GitHub Profile
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 -
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:

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
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);
View dump.java
void dumpTree(int depth = 1, String indentation = "")
{
if (this->is_leaf)
{
System.out.println(indentation + "Node");
}
else
{
this->childrens[0].dumpTree(depth + 1, indentation + " ");
this->childrens[1].dumpTree(depth + 1, indentation + " ");
View Config Morpheus (DNS - LAN)
1) Configure interfaces
auto eth0
iface eth0 inet static
address 192.168.10.1
netmask 255.255.255.0
gateway 192.168.10.254
up route add -net 192.168.20.0 netmask 255.255.255.0 gw 192.168.10.254