This file contains 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
# Maintainer: Tyler Brock <[email protected]> | |
pkgname=saw | |
pkgver=b37c70de306768a0d54e5b97e46690b1f99cf1d0 | |
pkgrel=1 | |
pkgdesc="Fast, multipurpose tool for AWS CloudWatch Logs" | |
arch=('i686' 'x86_64' 'armv6h' 'armv7h') | |
provides=('saw') | |
url="https://github.com/TylerBrock/$pkgname" | |
license=('MIT') | |
makedepends=('go' 'git') |
This file contains 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
--- | |
kind: pipeline | |
name: www [staging] | |
steps: | |
- name: build | |
image: node | |
environment: | |
GATSBY_GOOGLE_ANALYTICS_ID: | |
from_secret: staging_www_analytics_id |
This file contains 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/bash | |
# Open Docker, only if Docker not running | |
if (! docker ps -q 2>/dev/null ); then | |
# On Mac OS this would be the terminal command to launch Docker | |
open /Applications/Docker.app | |
echo "~> Starting Docker..." | |
echo "" | |
# Wait until Docker daemon is running and has completed initialisation |
This file contains 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
# Determine if we need to stash or not when updating git repository | |
function git-sync { | |
untracked=$(expr `git status --procelain 2>/dev/null | grep "^??" | wc -l`) | |
if [ "$untracked" = "0" ]; then | |
git pull --rebase | |
else | |
git stash | |
git pull --rebase | |
git stash apply | |
fi |
This file contains 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
//////////////////////////////////////////////////////////////////////////////// | |
// Exercise: | |
// | |
// - Refactor App by creating a new component named `<GeoPosition>` | |
// - <GeoPosition> should use a render prop callback that passes | |
// the coords and error | |
// - When you're done, <App> should no longer have anything but | |
// a render method | |
// - Now create a <GeoAddress> component that also uses a render | |
// prop callback with the current address. You will use |
This file contains 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
/* | |
Create a `withStorage` higher order component that manages saving and retrieving | |
the `sidebarIsOpen` state to local storage | |
*/ | |
import "./index.css"; | |
import React from "react"; | |
import MenuIcon from "react-icons/lib/md/menu"; | |
import { set, get, subscribe } from "./local-storage"; |
This file contains 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
/* | |
- Make the Play button work | |
- Make the Pause button work | |
- Disable the play button if it's playing | |
- Disable the pause button if it's not playing | |
- Make the PlayPause button work | |
- Make the JumpForward button work | |
- Make the JumpBack button work | |
- Make the progress bar work | |
- change the width of the inner element to the percentage of the played track |
This file contains 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 "./index.css"; | |
import React, { Component } from "react"; | |
import subscribeToMessages from "./messages"; | |
import FadeIn from "./FadeIn"; | |
// If user has scrolled up, don't scroll down | |
class PinScrollToBottom extends Component { | |
componentDidMount() { | |
// this.scrollToBottom(); |
This file contains 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 "./index.css"; | |
import React, { Component } from "react"; | |
import FaPlay from "react-icons/lib/fa/play"; | |
import FaPause from "react-icons/lib/fa/pause"; | |
import FaForward from "react-icons/lib/fa/forward"; | |
import FaBackward from "react-icons/lib/fa/backward"; | |
class RadioGroup extends Component { | |
state = { | |
value: null |
This file contains 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
class Api::ApplicationController < ActionController::Metal | |
include ActionView::Layouts | |
include ActionController::Helpers | |
include ActionController::Rescue | |
include ActionController::Redirecting | |
include AbstractController::Rendering | |
include ActionController::Renderers::All | |
include ActionController::ImplicitRender | |
include ActionController::MimeResponds | |
include ActionController::ConditionalGet |
NewerOlder