Skip to content

Instantly share code, notes, and snippets.

View kooparse's full-sized avatar
🧨
Wired in

Alexandre Chêne kooparse

🧨
Wired in
View GitHub Profile
@kooparse
kooparse / keybase.md
Created January 16, 2015 21:38
keybase verification

Keybase proof

I hereby claim:

  • I am aenehc on github.
  • I am helloworld (https://keybase.io/helloworld) on keybase.
  • I have a public key whose fingerprint is D00B DD22 D573 405F D945 83E3 3DFA 4FC2 5FB2 4E26

To claim this, I am signing this object:

@kooparse
kooparse / async.js
Created December 5, 2015 21:33
async sync flow in quantum physic
export default function asyncMiddleware () {
return (dispatch) => (action) => {
const { promise, type, ...rest } = action;
const SUCCESS = type;
const REQUEST = type + '_REQUEST';
const FAILURE = type + '_FAILURE';
dispatch({ ...rest, type: REQUEST });
@kooparse
kooparse / kat_scraper.js
Created July 7, 2016 10:03
kat.cr scraper
import request from 'axios'
import bytes from 'bytes'
import cheerio from 'cheerio'
import trakt from './trakt'
const defaultOptions = {
'timeout': 10000
}
const urls = [
@kooparse
kooparse / david.jsx
Last active October 20, 2016 13:25
For David
import React, { Component } from 'react'
class MyComp extends Component {
select(event) {
const { value } = event.target
// Do your shit with your value
}
render() {
@kooparse
kooparse / Oli.md
Last active September 15, 2017 13:57
@kooparse
kooparse / fuel.rs
Created May 21, 2018 13:07
Fuel API
extern crate fuel;
use fuel::{Scene, Light}
fn main() {
// Create my scene
let scene = scene::new();
// Create my lamp object
let lamp = Light::new();
// I move the lamp object inside my scene
// and i get the object id where the object is
use std::cell::{Ref, RefCell, RefMut};
use std::collections::HashMap;
use std::rc::Rc;
pub trait MyTrait {
fn get_id(&self) -> i32;
fn print_message(&self);
fn mut_message(&mut self, String);
}
@kooparse
kooparse / .vimrc_minim
Last active June 24, 2018 19:45
vim config for David
filetype off
" Plug settings.
call plug#begin('~/.vim/plugged')
" Themes
Plug 'rakr/vim-one'
" Vim defaults
Plug 'tpope/vim-sensible'
" Directory tree
Plug 'scrooloose/nerdtree'
@kooparse
kooparse / buf.zig
Last active March 4, 2021 22:27
StringHashMap which own keys
// SPDX-License-Identifier: MIT
// Copyright (c) 2015-2021 Zig Contributors
// This file is part of [zig](https://ziglang.org/), which is MIT licensed.
// The MIT license requires this copyright notice to be included in all copies
// and substantial portions of the software.
const std = @import("std.zig");
const StringHashMap = std.StringHashMap;
const mem = @import("mem.zig");
const Allocator = mem.Allocator;
const testing = std.testing;
Make it work, make it right, make it fast.