Skip to content

Instantly share code, notes, and snippets.

Sven Lito svnlto

Block or report user

Report or block svnlto

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

Show User

Returns json data about a single user.

  • URL

View checks.js
const checkCategoryMapping = require('./check_category_mapping');
const categories = (checkName) => [checkCategoryMapping[checkName] || 'Style'];
// Here Be Dragons: this function extracts the relevant value that triggered the issue for
// checks in the Complexity category. Unfortunately, these values are not available in a
// structured way, so we extract them from strings. That means that any check categorized
// as Complexity MUST have a rule here to extract value.
// If a matching string segment cannot be found, `null` will be returned.
svnlto / feathersjs-dataloader.js
Created Jul 24, 2017 — forked from giautm/feathersjs-dataloader.js
Use facebook's dataloader to batch any Service get
View feathersjs-dataloader.js
'use strict';
const DataLoader = require('dataloader');
class Service {
constructor({ BaseService, options }) { = || 'id';
this.service = BaseService;
this.dataloader = new DataLoader(this._batchGet.bind(this), options);
View auth.js
import { take, call, put, race } from 'redux-saga/effects';
import { forwardTo } from '../utils';
import AuthService from '../services/auth';
const auth = new AuthService();
import {
View login.js
const { request } = require('graphql-request');
const chalk = require('chalk');
const ora = require('ora');
const query = `
mutation loginWithEmailPassword($email: String!, $password: String!) {
loginWithEmailPassword(input: {email: $email, password: $password}) {



const pdf = require('@jenius2/j2-pdf-generator');
View zshrc
source $HOME/.antigen/antigen.zsh
# Load the oh-my-zsh's library.
antigen use oh-my-zsh
antigen bundle git
antigen bundle github
antigen bundle nvm
antigen bundle npm
antigen bundle docker
View -
type CardLimits {
transaction: Int @examples(values: [123123, 123123123])
cash: Int @examples(values: [333333333, 123123123])
enum CardStatus {
View -
diff --git a/app/Fixtures/menuItems.json b/app/Fixtures/menuItems.json
index f3bd7ab4..4f8fdd27 100644
--- a/app/Fixtures/menuItems.json
+++ b/app/Fixtures/menuItems.json
@@ -9,35 +9,15 @@
"route": "Dashboard"
- "id": "inAndOut",
- "icon": "in_out"
View tux.conf
set-option -g default-command "reattach-to-user-namespace -l $SHELL"
set-option -ga terminal-overrides ",xterm-256color:Tc"
set-option -g default-terminal "screen-256color"
# start windows and panes at 1
set -g base-index 1
set -g pane-base-index 1
# use vi mode
You can’t perform that action at this time.