A simple Vue component for debugging $vuetify's breakpoint
object, as well as anything else needed for an app.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template lang="pug"> | |
a(v-if="enabled" @click.stop="toggleDebug = !toggleDebug").debug | |
div(v-if="toggleDebug").debug__info | |
h2 Debug | |
template( | |
v-for="(obj, objKey) in debugThese" | |
) | |
hr | |
v-layout(row wrap).obj | |
v-flex(xs12).obj__key {{ objKey }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gql from 'graphql-tag' | |
const query = gql`query user($id: ID!) { | |
user( | |
where: { | |
id: $id | |
} | |
) { | |
id | |
createdAt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function intersection(a, aa) { | |
return a.filter(item => aa.includes(item)); | |
} | |
export function intersects(a, aa) { | |
return !!intersection(a, aa).length; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import _ from 'lodash'; | |
const cssName = nameStr => _.lowerFirst(nameStr); | |
export default cssName; |
The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Debug from 'debug'; | |
Debug.enable('company.*'); | |
function createLogger(prefix){ | |
prefix = 'company.project.' + prefix; | |
return { | |
log: Debug(prefix), | |
error: Debug(prefix + '::ERROR'), | |
info: Debug(prefix + '::info'), | |
warning: Debug(prefix + '::warning'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# `sudo sh xcode-version -8.2.1` | |
# Set variables | |
xcodeAppsPattern="Xcode_*.app" | |
DidSwitchedVersions=false | |
CurrentV=$( defaults read /Applications/Xcode.app/Contents/Info CFBundleShortVersionString ) | |
DesiredV="$1" | |
# Move into the right directory |
NewerOlder