Skip to content

Instantly share code, notes, and snippets.

View qleguennec's full-sized avatar

Quentin Le Guennec qleguennec

  • France
View GitHub Profile
if (!_.has(this.cache, page)) {
const requestWithAttributes =
_.reduce(
_.toPairs(requestAttributes)
, (acc, [a, b]) => acc + a + "=" + b + "&"
, request(userInfo) + "?");
fetch(requestWithAttributes)
.then((resp) => resp.json())
.then((result) => this.cache[page] = result);
import React from 'react'
import PropTypes from 'prop-types'
import _ from 'lodash'
import List from '../components/list'
import './userScreen.css'
const repos_per_page = 30;
(defn prime-slieve
[f acc [p & coll]]
(if (nil? p)
acc
(recur f (f acc p) (doall (remove (partial div? p) coll)))))
Company: An error occurred in auto-begin
Symbol’s value as variable is void: company-frontends
Error running timer ‘company-idle-begin’: (void-variable company-frontends)
set number
set linebreak
set showbreak=+++
set textwidth=100
set showmatch
set visualbell
set hlsearch
set smartcase
set ignorecase
# Path to your oh-my-zsh installation.
export ZSH=/user/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="af-magic"
# Uncomment the following line to use case-sensitive completion.
# Path to your oh-my-zsh installation.
export ZSH=/user/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="af-magic"
# Uncomment the following line to use case-sensitive completion.
# Path to your oh-my-zsh installation.
export ZSH=/user/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="af-magic"
# Uncomment the following line to use case-sensitive completion.
CONF=$HOME/.user
git clone http://github.com/qleguennec/user-conf $CONF
sh $CONF/install.sh
8c8
< ZSH_THEME="robbyrussell"
---
> ZSH_THEME="af-magic"
56,57c56
< export PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/moka/.bin"
< # export MANPATH="/usr/local/man:$MANPATH"
---
> source $HOME/.user/env.sh