Skip to content

Instantly share code, notes, and snippets.

View auser's full-sized avatar

Ari auser

View GitHub Profile
module.exports = function container_plugin(md, name, options) {
function validateDefault(params) {
return true;
// return params.trim().split(' ', 2)[0] === name;
}
function renderDefault(tokens, idx, _options, env, self) {
// add a class to the opening tag
if (tokens[idx].nesting === 1) {
tokens[idx].attrPush(['class', `${name} ignore-me`]);
@auser
auser / timeline.css
Last active December 30, 2022 05:14
.demo {
position: relative;
}
.demo .notificationsFrame {
z-index: 2;
width: 100%;
top: 20px;
background: #fff;
border-radius: 3px;
overflow: hidden;

Keybase proof

I hereby claim:

  • I am auser on github.
  • I am auser (https://keybase.io/auser) on keybase.
  • I have a public key ASAAXXLRG0Rjas4-vwQnB0FdbTO3hjWZeD1KZqMzb6c51go

To claim this, I am signing this object:

find . -name "node_modules" -type d -prune -exec rm -rf '{}' +
'use latest';
import isoFetch from 'isomorphic-fetch';
import {graphCoolEndpoint} from './constants';
const _getPlan = planId => {
const query = `{
Plan(id:"${planId}") {
id
}
mutation createUserAndSubscription(
$email:String,
$token:String!,
$idToken:String!,
$planId:ID!
) {
createUser(
email:$email,
authProvider:{
auth0:{
@auser
auser / Dockerfile
Created May 13, 2017 22:08
Dockerfile for elixir development
FROM elixir:1.4.2
ENV PORT=4000 MIX_ENV=prod
ENV APP_NAME=myapp APP_VERSION="0.1.0"
RUN mix local.hex --force && \
mix local.rebar --force && \
mkdir /build
WORKDIR /build
const findLoader = (config, test) => {
const loaders = [].concat(config.module.loaders);
while (loaders.length) {
const loader = loaders.shift()
if (loader.test && loader.test.toString() === test.toString()) {
return { loader, index: loaders.length }
}
}
}
module.exports = function override(config, env) {
@auser
auser / Gulpfile.js
Created January 28, 2017 01:44
The hack of the hackity hack
const gulp = require('gulp');
const plumber = require('gulp-plumber');
// css
const postcss = require('gulp-postcss');
// HACK
const concat = require('gulp-concat')
const inject = require('gulp-inject-string')
@auser
auser / app.js
Last active January 14, 2017 00:56
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,