Skip to content

Instantly share code, notes, and snippets.

@higedice
higedice / Chrome.psm1
Last active May 1, 2020
A Module for PowerShell. This Adds chrome, google, bing and duckduckgo commands.
View Chrome.psm1
<#
This is a Module for PowerShell.
This Adds chrome, google, bing and duckduckgo commands.
Usage:
chrome <URLs>
OR
google <search words>
OR
bing <search words>
OR
@higedice
higedice / .gvimrc
Last active Jul 24, 2019
My .gvimrc GVIM config file.
View .gvimrc
colors koehler
set guioptions+=T
set showtabline=2
let s:menutop = 'ユーザー'
if has('win32')
let s:menutop .= '(&U)'
endif
View pwd-env-test.c
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int main()
{
char path[1024];
printf("getenv(\"PWD\"): %s\n", getenv("PWD")); // " /home/me"
printf("cd /\n");
View PS1.sh
# from .bashrc
# BASH prompt
# "01/28T18:01 @HigesMacBookAir:~ $ "
PS1="\[\e[0;34m\]\D{%m/%dT%k:%M} @\h:\[\e[1;34m\]\W \[\e[0m\]\$ "
@higedice
higedice / .vimrc
Last active Jun 28, 2018
My .vimrc VIM config file.
View .vimrc
set encoding=utf-8
scriptencoding utf-8
" statusline - help.txt[-][RO][HELP] 1C,1/221L 1% @20:00 [utf-8][unix][help]
set statusline=%F%m%r%h%w\ %3vC,%l/%LL\ %p%%
set statusline+=%=\ " \<space>
function FormatTime(t)
if a:t == -1
@higedice
higedice / MakeYahooAuctionAffiliateLink_Bookmarklet.js
Last active Aug 29, 2015
A Bookmarklet make with affiliate link from opening Yahoo! Auction (Japan) page.
View MakeYahooAuctionAffiliateLink_Bookmarklet.js
@higedice
higedice / printNewFiles.vbs
Created Jan 9, 2013
Prints NEW, DELETED and CHAGED files in a directory. Works on Windows WSH.
View printNewFiles.vbs
'
' Prints NEW, DELETED and CHAGED files in a directory.
'
' This script does not work with directorys have name include SPACE charactors.
'
' by HigeDice http://d.hatena.ne.jp/higedice/
'
Option Explicit