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
| const chalk = require("chalk"); | |
| const columnify = require("columnify"); | |
| const data = [ | |
| { | |
| no: 1, | |
| branch: "master", | |
| refer: "0123456789abcdef" | |
| }, | |
| { |
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
| <!DOCTYPE html> | |
| <html lang="ja"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>タイマー</title> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.1/css/bulma.min.css"> | |
| <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Kaushan+Script"> | |
| <style> | |
| html { | |
| width: 100%; |
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 python | |
| # coding: utf-8 | |
| from __future__ import unicode_literals | |
| import time | |
| import chardet | |
| import hashlib | |
| import requests | |
| import webbrowser |
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 python | |
| # coding: utf-8 | |
| import copy | |
| import random | |
| import unittest | |
| # Helper funcs | |
| # is_dict = (lambda obj: isinstance(obj, dict)) |
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 | |
| # coding: utf-8 | |
| # git-hashdiff | |
| # Display the difference of two git hash. | |
| # Args: $1 -- git reference (HEAD, origin/master etc.) | |
| # $2 -- another reference | |
| check_ref() { | |
| local ref=$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
| [options] | |
| # kind of license | |
| license = "MIT" | |
| # project dir will management by git | |
| git = true | |
| # the categories for generate .gitignore by gitignore.io | |
| git-ignore = [ | |
| "python", |
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
| { | |
| "keymap": { | |
| "C-j": "peco.SelectDown", | |
| "C-k": "peco.SelectUp", | |
| "C-d": "peco.ScrollPageDown", | |
| "C-u": "peco.ScrollPageUp" | |
| } | |
| } |
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
| # - Functions | |
| # pkill: Kill the process of grepped | |
| pkill() { | |
| local target="$1" | |
| pgrep "$target" | xargs -iproc kill proc > /dev/null 2>&1 | |
| return $? | |
| } | |
| # check_peco_exists: check the peco binary exists or not | |
| check_peco_exists() { |
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 | |
| # coding: utf-8 | |
| # Check arguments | |
| if [ "$#" = "0" ];then | |
| { | |
| echo "usage: get [URL]" | |
| echo "" | |
| echo "This get script can download a file from URL argument, and extract it." | |
| } 1>&2 |
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 python | |
| # coding: utf-8 | |
| from prettytable import PrettyTable | |
| from termcolor import (COLORS, colored) | |
| colorize = (lambda msg, attrs=None: [colored(msg, c, attrs=attrs) for c in COLORS]) | |
| def main(): |
NewerOlder