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
| find -name *.org | sed 's/\.org$//' | xargs -IF diff -c F.org F |
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
| ruby -e 'require "posix-spawn"; process=POSIX::Spawn::Child.new("echo a"); o=process.out; puts o.encoding' |
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
| *** Get-WebFile.ps1.org 2013-12-11 13:59:13.174257200 +0900 | |
| --- Get-WebFile.ps1 2013-12-13 13:54:21.563447100 +0900 | |
| *************** | |
| *** 48,54 **** | |
| Write-Debug "Setting the UserAgent to `'$userAgent`'" | |
| $req.UserAgent = $userAgent | |
| } | |
| ! $res = $req.GetResponse(); | |
| if($fileName -and !(Split-Path $fileName)) { |
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
| @echo off | |
| set HIVE_BIN_PATH=%~dp0 | |
| if "%HIVE_BIN_PATH:~-1%" == "\" ( | |
| set HIVE_BIN_PATH=%HIVE_BIN_PATH:~0,-1% | |
| ) | |
| set HIVE_HOME=%HIVE_BIN_PATH%\.. | |
| set HIVE_LIB=%HIVE_HOME%\lib | |
| set HADOOP_HOME=%HIVE_HOME%\.. | |
| set HADOOP=%HADOOP_HOME%\bin\hadoop.cmd |
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
| function checkNotification() { | |
| var sheet = SpreadsheetApp.getActiveSheet(); | |
| var cell = sheet.getRange("G2"); | |
| var notify = false; | |
| var str = ""; | |
| while (!cell.isBlank()) { | |
| if (cell.getValue().toString() == "未") { | |
| notify = true; | |
| str += cell.offset(0, -6).getValue() + "番の問い合わせに未回答です。\n"; | |
| str += "担当は" + cell.offset(0, -1).getValue() + "さんです。\n"; |
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
| ;; Markdown memo | |
| (defun markdown-memo-sendto-evernote () | |
| "Copy markdown file into evernote folder as text file." | |
| (interactive) | |
| (let* ((orgbuf (current-buffer)) | |
| (orgname (buffer-file-name)) | |
| (memonameorg (file-name-nondirectory orgname)) | |
| (memoname (concat (file-name-sans-extension memonameorg) ".txt")) | |
| (destname (concat markdown-memo-evernote-dir memoname))) |
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
| ;;; -*- mode: lisp-interaction; syntax: elisp -*- | |
| ;;; | |
| ;;; Settings for Emacs | |
| ;;; | |
| ;(autoload 'add-path "path-util" t) ; Meadow 1.10 では使用不可 | |
| ;(add-path "~/e-lisp") ;; Startup | |
| ;(setq shell-command-option "-c") | |
| (setq load-path (cons "~/.emacs.d/elpa" load-path)) |
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
| # Makefile for diagram files | |
| # | |
| # .dot | |
| # Graphviz: http://www.graphviz.org/ | |
| # | |
| # .sdiag .bdiag .adiag | |
| # blockdiag: http://blockdiag.com/ | |
| .SUFFIXES: .png .dot .sdiag .bdiag .adiag |
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
| *** ./lib/grit/index.rb.org 2013-10-22 12:56:48.654590275 +0900 | |
| --- ./lib/grit/index.rb 2013-10-23 13:17:49.316559983 +0900 | |
| *************** | |
| *** 173,179 **** | |
| k = obj.name | |
| k += '/' if (obj.class == Grit::Tree) | |
| tmode = obj.mode.to_i.to_s ## remove zero-padding | |
| ! tree_contents[k] = "%s %s\0%s" % [tmode, obj.name, sha] | |
| end if now_tree | |
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/perl | |
| use lib './lib'; | |
| use strict; | |
| use Wiki; | |
| use Util; | |
| use Jcode; | |
| use HTML::Template; | |
| my $wiki = Wiki->new('setup.dat'); |