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
document.addEventListener('alpine:init', () => { | |
Alpine.store('breakpoint', { | |
listeners: {}, | |
init() { | |
const breakpoints = { | |
sm: 640, | |
md: 768, | |
lg: 1024, | |
xl: 1280, |
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 React from 'react'; | |
type Props = { | |
data: Array<[number, string]>; | |
}; | |
export default function LineChart({ data }: Props) { | |
if (!data.length) { | |
return null; | |
} |
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
( | |
<th className={classnames( | |
'datatable__cell whitespace-no-wrap', | |
className, | |
{ | |
'text-primary': sorted, | |
'cursor-pointer': sortable, | |
} | |
)}> | |
... |
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> | |
<table-component | |
:data="members" | |
sort-by="lastName" | |
sort-order="asc" | |
> | |
<template slot-scope="{ state, rows }"> | |
<div> | |
<input v-model="state.filterQuery"> | |
<table> |
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
const marked = require("marked"); | |
const loaderUtils = require("loader-utils"); | |
module.exports = function(source) { | |
const { template } = loaderUtils.getOptions(this); | |
return ` | |
import Template from '${template}' | |
export default () => |
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
#!/usr/bin/env bash | |
function pw { | |
# Register the command you want to run when changes are detected here | |
run="clear && printf '\e[3J' && vendor/bin/phpunit" | |
# Retrieve the custom argments. If none are provided, default to "tests" | |
[[ -n $@ ]] && args=$@ || args="tests" | |
# Run the command first... |
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
#!/usr/bin/env bash | |
function pw { | |
run="clear && printf '\e[3J' && vendor/bin/phpunit" | |
[[ -n $@ ]] && args=$@ || args="tests" | |
eval "$run $args" | |
watchman-make \ | |
-p 'src/**/*.php' 'tests/**/*.php' \ | |
--make=$run \ |
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 inject from './inject'; | |
import Vue from 'vue'; | |
const Level3 = { | |
template: '<div>{{ greeting }}</div>', | |
mixins: [ | |
inject('translations', 'user') | |
], |
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
<?php | |
class Foo | |
{ | |
use MemoizesFunctions; | |
public function getFoo() | |
{ | |
return $this->memoize(function () { | |
return 'foo'; |
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
var elixir = require('laravel-elixir'); | |
var gulp = require('gulp'); | |
var shell = require('gulp-shell'); | |
elixir.extend('jekyll', function() { | |
gulp.src('').pipe(shell('jekyll serve --no-watch')); | |
new elixir.Task('jekyll', function() { | |
return gulp.src('').pipe(shell('jekyll build')); | |
}) |
NewerOlder