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 -S deno run --allow-run --allow-read --allow-env | |
| import { $ } from "jsr:@david/[email protected]"; | |
| import { Select } from "jsr:@cliffy/[email protected]/select"; | |
| // 定数 | |
| const SHA_DISPLAY_LENGTH = 7; | |
| interface CommitInfo { | |
| sha: 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
| #!/usr/bin/env -S deno run --allow-run --allow-read --allow-env | |
| import { $ } from "jsr:@david/[email protected]"; | |
| import { Select } from "jsr:@cliffy/[email protected]/select"; | |
| interface LogEntry { | |
| hash: string; | |
| subject: string; | |
| refs: string; | |
| branches: 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
| <?php | |
| namespace Tests\StaticAnalysis\Visitor; | |
| use PhpParser\Node; | |
| use PhpParser\Node\Stmt\ClassMethod; | |
| use PhpParser\Node\Expr\MethodCall; | |
| use PhpParser\Node\Identifier; | |
| use PhpParser\NodeDumper; | |
| use PhpParser\NodeVisitorAbstract; |
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/bash | |
| if [ $# -eq 0 ] | |
| then | |
| echo "Please provide the -L argument in the format '-L20,21:filepath'." | |
| exit 1 | |
| fi | |
| # Parse the -L argument | |
| IFS=':' read -ra parts <<< "$1" |
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/bash | |
| if [ $# -eq 0 ] | |
| then | |
| echo "Please provide the -L argument in the format '-L20,21:filepath'." | |
| exit 1 | |
| fi | |
| # Parse the -L argument | |
| IFS=':' read -ra parts <<< "$1" |
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
| 'use strict'; | |
| exports.__esModule = true; | |
| function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | |
| var _historyLibParsePath = require('history/lib/parsePath'); | |
| var _historyLibParsePath2 = _interopRequireDefault(_historyLibParsePath); |
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, { PropTypes } from 'react'; | |
| import { connect } from 'react-redux'; | |
| import { createSelectorCreator } from 'reselect'; | |
| import { reduxForm } from 'redux-form'; | |
| const connector = connect(state => ({ | |
| reduxOriginalForm: state.form | |
| })); | |
| export function collectFormState(state, form, fields, keys ) { |
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 { connect } from 'react-redux'; | |
| import { createSelectorCreator } from 'reselect'; | |
| import { reduxForm } from 'redux-form'; | |
| function memoize(func, equalityCheck = (a, b) => a === b) { | |
| const lastArgsCache = {}; | |
| const lastResultCache = {}; | |
| return (...args) => { | |
| const memoizeKey = args.pop(); | |
| const lastArgs = lastArgsCache[memoizeKey]; |
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 gulp = require('gulp'); | |
| var browserify = require('browserify'); | |
| var reactify = require('reactify'); | |
| var watchify = require('watchify'); | |
| var source = require('vinyl-source-stream'); | |
| var duration = require('gulp-duration'); | |
| var gulpUtil = require('gulp-util'); | |
| var sass = require('gulp-sass'); | |
| var buildScript = function(watch){ |
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
| { | |
| "name": "todos", | |
| "version": "1.0.0", | |
| "scripts": { | |
| "start": "http-server" | |
| }, | |
| "dependencies": { | |
| "http-server": "^0.7.4" | |
| } | |
| } |