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:
I hereby claim:
To claim this, I am signing this object:
| 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 }); |
| import request from 'axios' | |
| import bytes from 'bytes' | |
| import cheerio from 'cheerio' | |
| import trakt from './trakt' | |
| const defaultOptions = { | |
| 'timeout': 10000 | |
| } | |
| const urls = [ |
| import React, { Component } from 'react' | |
| class MyComp extends Component { | |
| select(event) { | |
| const { value } = event.target | |
| // Do your shit with your value | |
| } | |
| render() { |
Steps:
zsh install:
brew install zsh zsh-completions
oh-my-zsh install:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Put this file https://github.com/kooparse/dotfiles/tree/master/zsh at ~/ et name it .zshrc
| 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); | |
| } |
| 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' |
| // 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. |