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
package io.enfant.maggie; | |
import android.support.test.espresso.ViewInteraction; | |
import android.support.test.rule.ActivityTestRule; | |
import android.support.test.runner.AndroidJUnit4; | |
import android.test.suitebuilder.annotation.LargeTest; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.view.ViewParent; |
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
package io.enfant.maggie; | |
import android.support.test.rule.ActivityTestRule; | |
import android.support.test.runner.AndroidJUnit4; | |
import android.test.suitebuilder.annotation.LargeTest; | |
import org.junit.Before; | |
import org.junit.Rule; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; |
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 | |
# https://git-scm.com/book/en/v2/Git-Basics-Git-Aliases | |
# 'git checkout' becomes 'git ch' | |
git config --global alias.ch checkout | |
git config --global alias.c commit | |
git config --global alias.s status | |
git config --global alias.sh stash | |
git config --global alias.b branch | |
git config --global alias.a add | |
git config --global alias.d diff |
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
# git | |
alias gs='git status' | |
alias gd='git diff' | |
alias gco='git commit' | |
alias gch='git checkout' | |
alias gcl='git clone' | |
alias gpl='git pull' | |
alias gps='git push' | |
alias gf='git fetch' | |
alias gb='git branch' |
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/sh | |
# get the start date and time | |
start_datetime=$(date '+%m_%d_%Y_%H_%M_%S') | |
echo "${start_datetime} - starting spider ${SPIDER_NAME} - debug: ${DEBUG}" | |
# go to the spider directory | |
cd $SPIDER_PATH | |
# prevent click, which pipenv relies on, from freaking out to due to lack of locale info https://click.palletsprojects.com/en/7.x/python3/ | |
export LC_ALL=en_US.utf-8 |
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/sh | |
echo "deploying..." | |
# bundle, minify, and package css and js - optional | |
# gulp build | |
# using SSH vs SFTP because SSH offers us rm -rf * | |
# which deletes directories even if they are empty | |
# we don't have to traverse the directory and delete files manually |
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
<template> | |
<input | |
:id='unique_typeahead_id' | |
class='typeahead' | |
type='text' | |
> | |
</template> | |
<script> |
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
// Cancel Token Docs: https://axios-http.com/docs/cancellation | |
// IPC Docs: https://www.electronjs.org/docs/api/ipc-main | |
import { ipcMain } from ‘electron’ | |
import axios from 'axios' | |
const CancelToken = axios.CancelToken | |
let cancel | |
// 1. make the request | |
ipcMain.handle('download', async (event, ...args) => { |
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
/** | |
* This exists because `ipcMain.handle` does not allow | |
* you to return rejected Promises with custom data. | |
* You can throw an error in `handle` but it can only | |
* be a string or existing error object. This means all | |
* the error processing logic must live in main process | |
* in order to figure what string or error type to throw | |
* in `handle`. | |
* | |
* This abstract allows us to send messages to `handle`. |
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 AppTypes from "@app/app_types" | |
import DataTypes from "@gateways/gateway_data_types" | |
import UiTypes from "@ui/ui_types" | |
class Controller { | |
public customers: DataTypes.Customer[] | |
public payment_methods: UiTypes.PaymentMethod[] |
OlderNewer