🍣
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
alert('test'); |
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 | |
git df --cached --name-only --diff-filter=AM | grep '\.rb$' | grep -v 'db/schema.rb' | xargs bundle exec rubocop -c .rubocop.yml | |
RUBOCOP=$? | |
git df --cached --name-only --diff-filter=AM | grep '\.js$' | xargs npm run lint | |
ESLINT=$? | |
if [ $RUBOCOP -eq $ESLINT ]; then | |
exit 0 | |
else |
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
# prompt | |
export ZSH_THEME_GIT_PROMPT_DIRTY="%{[33m%}% ✗" | |
export ZSH_THEME_GIT_PROMPT_CLEAN="" | |
function parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ \1/' | |
} | |
DEFAULT=$'\U1F430 ' | |
ERROR=$'\U1F363 ' | |
export PS1="%{[0m%} |
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
/** | |
* @var int | |
*/ | |
var MAX_REPOS = 4; | |
/** | |
* @return void | |
*/ | |
function postToChatworkGitHubTrends () { |
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
<?php | |
class Registry extends \ArrayObject | |
{ | |
/** | |
* @var Registry | |
**/ | |
private static $instance; | |
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
function getCalendarSchedule () { | |
var calendar = CalendarApp.getCalendarsByName('予定')[0], | |
events = calendar.getEventsForDay(new Date()), | |
schedule = ''; | |
for (var i = 0; i < events.length; i++) { | |
schedule += events[i].getTitle() + '\n'; | |
} | |
return schedule; |
NewerOlder