Skip to content

Instantly share code, notes, and snippets.

View alice1017's full-sized avatar

Alice1017 alice1017

  • Tokyo, Japan
View GitHub Profile
const chalk = require("chalk");
const columnify = require("columnify");
const data = [
{
no: 1,
branch: "master",
refer: "0123456789abcdef"
},
{
<!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%;
#!/usr/bin/env python
# coding: utf-8
from __future__ import unicode_literals
import time
import chardet
import hashlib
import requests
import webbrowser
#!/usr/bin/env python
# coding: utf-8
import copy
import random
import unittest
# Helper funcs
# is_dict = (lambda obj: isinstance(obj, dict))
@alice1017
alice1017 / git-hashdiff.sh
Created August 10, 2018 01:34
Display the difference of two git hash
#!/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
[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",
{
"keymap": {
"C-j": "peco.SelectDown",
"C-k": "peco.SelectUp",
"C-d": "peco.ScrollPageDown",
"C-u": "peco.ScrollPageUp"
}
}
@alice1017
alice1017 / functions.zsh
Last active July 20, 2018 06:41
zsh funcitons
# - 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() {
@alice1017
alice1017 / get.sh
Created July 19, 2018 06:27
The get.sh is a command line tool for download a file from URL and extract an archived file.
#!/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
#!/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():