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
| git log -1 --pretty=%D HEAD | sed 's/.*origin\///g;s/, .*//g' |
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
| ## Landscape | |
| convert -size 1920x1080 xc:white landscape-hires-white.png | |
| convert -size 960x540 xc:white landscape-mdres-white.png | |
| convert -size 480x320 xc:white landscape-lores-white.png | |
| ## Portrait | |
| convert -size 1080x1920 xc:black portrait-hires-black.png | |
| convert -size 540x960 xc:black portrait-mdres-black.png | |
| convert -size 320x480 xc:black portrait-lores-black.png |
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 { createDecorator } from 'vue-class-component'; | |
| /** | |
| * Binding scope | |
| */ | |
| export const bind = createDecorator((options: any, key: number | string): void => { | |
| const original = options.created; | |
| const method = options.methods[key]; | |
| options.created = function() { |
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 { createDecorator } from 'vue-class-component'; | |
| // Helpers | |
| // --------------------------------------------------------------------------- | |
| /** | |
| * @param string methodName | |
| * @return Function | |
| */ | |
| function vueDecoratorFactory(methodName: string) { |
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
| /** | |
| * Debounce (Inclusive) | |
| * | |
| * Prevents a function from being fired too often by determining | |
| * a difference in time from the last time in which it was fired. | |
| * | |
| * Applies inclusive techniques to execute functions one last time. | |
| * | |
| * @author Matt Kenefick <polymermallard.com> | |
| * @see https://medium.com/@mattkenefick/debouncing-in-typescript-d5edddf39cdc |
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
| root = true | |
| [*] | |
| charset = utf-8 | |
| end_of_line = lf | |
| insert_final_newline = true | |
| indent_style = tab | |
| indent_size = 4 | |
| trim_trailing_whitespace = true |
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
| module.exports = { | |
| // ESLint docs -- Configuring ESLint: https://eslint.org/docs/user-guide/configuring | |
| // ESLint docs -- List of available rules: https://eslint.org/docs/rules/ | |
| 'env': { | |
| 'amd': false, // Defines require() and define() as global variables as per the amd spec | |
| 'applescript': false, // AppleScript global variables. | |
| 'atomtest': false, // Atom test helper globals. | |
| 'browser': false, // Browser global variables | |
| 'commonjs': false, // CommonJS global variables and CommonJS scoping (use this for browser-only code that uses Browserify/WebPack). |
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
| /** | |
| * Checks a key/val's neighbors to determine what | |
| * the next state should be. Returns how many living | |
| * neighbors exist for the supplied item. | |
| * | |
| * @param int index | |
| * @param array data | |
| * @return int | |
| */ | |
| getNeighborCount(index = 0, data) { |
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 | |
| namespace App\Console\Commands; | |
| use Illuminate\Console\Command; | |
| use Illuminate\Support\Facades\Log; | |
| use Illuminate\Support\Facades\Storage; | |
| abstract class BaseCommand extends Command | |
| { |
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
| /** | |
| * Attempt to attach template over the network. | |
| * It attempts to derive an HTML tag from the filename, | |
| * but we could do anything here. | |
| * | |
| * @param string filename | |
| */ | |
| static async attachRemote(filename) { | |
| const filenameMatches = filename.match(/\/([^\.\/]+)\.html/i); |