受入ファイルの作成
CRTPF FILE(*LIB/QDIFF) RCDLEN(144) FILETYPE(*SRC) MBR(*NONE) IGCDTA(*YES) MAXMBRS(*NOMAX) CCSID(5035) AUT(*ALL)
頭の 12 バイトはヘッダの情報なので 144 = 132 + 12 としておかないと変更行の情報が削除される
公開鍵の設定をして
ssh -T [email protected]
も成功していたけど git push
も git pull
もできなくなった
公開鍵の再作成 再登録後に ~/.ssh/ に config をつくって
Host github.com
User git
Port 22
Hostname github.com
port 22
Worksheet.Cells[i,j].Value := Fields[j].Value; | |
Next; |
# -*- coding: utf-8 -*- | |
""" | |
For Delphi7 column editor set FieldName and Title.Caption. | |
Write FieldName to field.txt, Title.Caption to title.txt. | |
Result in item.txt | |
""" | |
with open('item.txt', 'w') as item: | |
with open('field.txt') as field, open('title.txt') as title: | |
expanded = '\t\titem\n\t\tExpanded = False\n' |
# -*- coding: utf-8 -*- | |
import os | |
import shutil | |
#src -> dst | |
src = u'/Users/name/Downloads/' | |
dst = {'.jpg': u'/Users/name/Library/jpg/', | |
} | |
for suffix, path in dst.items(): |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import shlex, subprocess | |
class Ping(): | |
def __init__(self): | |
self.hosts = {'Google': '173.194.38.82'} | |
def ping(self, check=[], count=1): | |
prm = len(self.hosts) | |
for host in self.hosts: |
from random import *;L=range(10);shuffle(L);L |
% pip install pyrtm | |
% cd ./rtm/samples | |
% python app.py [API KEY] [SHARED SECRET] |
% howdoi format dict python | |
geopoint = {'latitude':41.123,'longitude':71.091} | |
print('{latitude} {longitude}'.format(**geopoint)) | |
%howdoi install homebrew | |
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)" | |
%howdoi print golang | |
return fmt.Sprintf("at %v, %s", e.When, e.What) |
Python 2.7.5 (default, Aug 25 2013, 00:04:04) | |
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> data = 'spam123' | |
>>> bool(filter(lambda s:s.isupper(),data)) | |
False | |
Python 3.3.3 (v3.3.3:c3896275c0f6, Nov 16 2013, 23:39:35) | |
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. |