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
// Playground | |
// ref. http://msdn.microsoft.com/ja-jp/library/dd233229.aspx | |
// | |
// All results are... 'val it : string = "abcdef"' | |
// | |
// Bacward pipeline operators only | |
['a'..'f'] |> List.map string |> List.reduce (+) | |
// With a composition operator |
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
#!/usr/bin/env bash | |
# Usage: BINDIR=$HOME/bin/ bash install-peco.sh | |
set -o xtrace # for debug output. ( abbr. set -x ) | |
set -o errexit # for exit on error. ( abbr. set -e ) | |
set -o pipefail # errexit for pipe | |
set -o nounset # exit when the script to use undeclared variables (abbr. set -u) | |
filename=peco_linux_amd64.tar.gz | |
latest_tag="$(curl -L --head https://github.com/peco/peco/releases/latest | grep -i location: | sed 's/^.*\/tag\/\([^\/]*\)\r$/\1/')" |
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
# -*- coding: utf-8 -*- | |
# | |
# Miku beam plugin for earthquake.gem | |
# | |
# Usage: | |
# :mikubeam | |
# update 'みくビーム!みくみくみくみくwwwwwwww' | |
# | |
# :javabeam ねこ | |
# update 'ねこビーム!ねこねこねこねこwwwwwwww' |
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
# -*- coding: utf-8 -*- | |
Plugin.create :miku_beam do | |
command(:miku_beam, | |
name: 'みくビーム', | |
condition: lambda{ |opt| true}, | |
visible: false, | |
role: :window) do |opt| | |
Service.primary.post(:message => 'みくビーム!みくみくみくみくwwwwwwww') | |
end | |
end |
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
# -*- coding: utf-8 -*- | |
# Java beam plugin for earthquake.gem | |
# | |
# Usage: | |
# :javabeam | |
# update 'Javaビームビビビビビビビwwwwwwwwww' | |
# | |
# :javabeam 猫 | |
# update '猫ビームビビビビビビビwwwwwwwwww' | |
# |
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 saveAsPdf($filename) { | |
echo ("Converting {0}" -f $filename) | |
$excel = New-Object -ComObject Excel.Application -Property @{visible=$false} | |
try { | |
$excel.AlertBeforeOverwriting = $true | |
$workbook = $excel.Workbooks.Open($filename) | |
$workbook.ExportAsFixedFormat( | |
[Microsoft.Office.Interop.Excel.XlFixedFormatType]::xlTypePDF , | |
[Io.Path]::ChangeExtension($filename, '.pdf') , | |
[Microsoft.Office.Interop.Excel.XlFixedFormatQuality]::xlQualityStandard |

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
#!/usr/bin/env bash | |
# # Requirements: | |
# | |
# * percol : https://github.com/mooz/percol | |
# * tw gem : http://shokai.github.io/tw/ | |
#set -o xtrace # for debug output. ( abbr. set -x ) | |
set -o errexit # for exit on error. ( abbr. set -e ) |
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
#!/usr/bin/env bash | |
set -o xtrace # For debugging. ( abbr. set -x ) | |
set -o errexit # To exit on error. ( abbr. set -e ) | |
set -o pipefail # To exit on error in pipe | |
set -o nounset # To exit when the script to use undeclared variables (abbr. set -u) | |
TARGET_DIR=docker-using-coreos | |
if [ -d "$TARGET_DIR/.git"]; then | |
git clone https://github.com/coreos/coreos-vagrant "$TARGET_DIR" |
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
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
# Implementations | |
module CodeBadge | |
DEFAULT_README = 'README.md' | |
class << self | |
# TODO: Move tempaltes to badges.yml | |
def template(type, user_name, project_name, gem_name = project_name, branch = "master") |