Friday, March 25, 2016
Wednesday, March 23, 2016
npm: Using npm Package Manager for Node.js to Install Node Module Lodash
Installation command:
$ npm install lodash
index.js:
var lodash = require('lodash');
var output = lodash.without([1, 2, 3], 1);
console.log(output);
$ npm install lodash
index.js:
var output = lodash.without([1, 2, 3], 1);
console.log(output);
Executing index.js:
[ 2, 3 ]
Alcatraz: Installing Package Manager for XCode
$ curl -fsSL https://raw.githubusercontent.com/supermarin/Alcatraz/deploy/Scripts/install.sh | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 590 0 590 0 0 241 0 --:--:-- 0:00:02 --:--:-- 241
0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0x ./._Alcatraz.xcplugin
x Alcatraz.xcplugin/
x Alcatraz.xcplugin/._Contents
x Alcatraz.xcplugin/Contents/
x Alcatraz.xcplugin/Contents/._Info.plist
x Alcatraz.xcplugin/Contents/Info.plist
x Alcatraz.xcplugin/Contents/._MacOS
x Alcatraz.xcplugin/Contents/MacOS/
x Alcatraz.xcplugin/Contents/._Resources
x Alcatraz.xcplugin/Contents/Resources/
x Alcatraz.xcplugin/Contents/Resources/._ATZPackageListTableCellView.nib
x Alcatraz.xcplugin/Contents/Resources/ATZPackageListTableCellView.nib
x Alcatraz.xcplugin/Contents/Resources/._ATZPluginWindowController.nib
x Alcatraz.xcplugin/Contents/Resources/ATZPluginWindowController.nib
x Alcatraz.xcplugin/Contents/Resources/._bitbucket_grayscale.tiff
x Alcatraz.xcplugin/Contents/Resources/bitbucket_grayscale.tiff
x Alcatraz.xcplugin/Contents/Resources/._en.lproj
x Alcatraz.xcplugin/Contents/Resources/en.lproj/
x Alcatraz.xcplugin/Contents/Resources/._eye_icon.tiff
x Alcatraz.xcplugin/Contents/Resources/eye_icon.tiff
x Alcatraz.xcplugin/Contents/Resources/._git_grayscale.tiff
x Alcatraz.xcplugin/Contents/Resources/git_grayscale.tiff
x Alcatraz.xcplugin/Contents/Resources/._github_grayscale.tiff
x Alcatraz.xcplugin/Contents/Resources/github_grayscale.tiff
x Alcatraz.xcplugin/Contents/Resources/._link_icon.tiff
x Alcatraz.xcplugin/Contents/Resources/link_icon.tiff
x Alcatraz.xcplugin/Contents/Resources/en.lproj/._InfoPlist.strings
x Alcatraz.xcplugin/Contents/Resources/en.lproj/InfoPlist.strings
x Alcatraz.xcplugin/Contents/Resources/en.lproj/._Localizable.strings
x Alcatraz.xcplugin/Contents/Resources/en.lproj/Localizable.strings
x Alcatraz.xcplugin/Contents/MacOS/._Alcatraz
100 111k 100 111k 0 0 21189 0 0:00:05 0:00:05 --:--:-- 56028
Alcatraz successfully installed!!1!🍻 Please restart your Xcode (7.2.1).
ラベル:
Package manager,
Xcode
Monday, March 21, 2016
AppleScript: Opening iCloud Documents (Numbers)
set the defaultDestinationFolder to (path to desktop folder)
set filePath to (path to library folder from user domain as text) & "Mobile Documents:com~apple~Numbers:Documents:test.numbers"
tell application "Numbers"
activate
try
open file filePath
end try
end tell
set filePath to (path to library folder from user domain as text) & "Mobile Documents:com~apple~Numbers:Documents:test.numbers"
tell application "Numbers"
activate
try
open file filePath
end try
end tell
Homebrew: Installing SDI (Simple DirectMedia Layer)
Command:
$ brew install sdl sdl_image sdl_mixer sdl_ttf portmidi
Homebrew: link
Command:
Result:
$ brew link python3
Linking /usr/local/Cellar/python3/3.5.1... 19 symlinks created
Homebrew: doctor
Command:
$ brew doctor
Result:
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!
Warning: /usr/local/lib isn't writable.
This can happen if you "sudo make install" software that isn't managed
by Homebrew. If a formula tries to write a file to this directory, the
install will fail during the link step.
You should probably change the ownership and permissions of /usr/local/lib
back to your user account.
sudo chown -R $(whoami) /usr/local/lib
Warning: Some directories in /usr/local/share/man aren't writable.
This can happen if you "sudo make install" software that isn't managed
by Homebrew. If a brew tries to add locale information to one of these
directories, then the install will fail during the link step.
You should probably `sudo chown -R $(whoami)` them:
/usr/local/share/man/man3
Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
$ brew doctor
Result:
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!
Warning: /usr/local/lib isn't writable.
This can happen if you "sudo make install" software that isn't managed
by Homebrew. If a formula tries to write a file to this directory, the
install will fail during the link step.
You should probably change the ownership and permissions of /usr/local/lib
back to your user account.
sudo chown -R $(whoami) /usr/local/lib
Warning: Some directories in /usr/local/share/man aren't writable.
This can happen if you "sudo make install" software that isn't managed
by Homebrew. If a brew tries to add locale information to one of these
directories, then the install will fail during the link step.
You should probably `sudo chown -R $(whoami)` them:
/usr/local/share/man/man3
Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
pip: Installing pip (Package Manager for Python) on OS X Using easy_install
Command:
Result:
$ sudo easy_install pip
Password:
Searching for pip
Reading https://pypi.python.org/simple/pip/
Best match: pip 8.1.1
Downloading https://pypi.python.org/packages/source/p/pip/pip-8.1.1.tar.gz#md5=6b86f11841e89c8241d689956ba99ed7
Processing pip-8.1.1.tar.gz
Writing /tmp/easy_install-1rbqCh/pip-8.1.1/setup.cfg
Running pip-8.1.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-1rbqCh/pip-8.1.1/egg-dist-tmp-OTECPf
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.mailmap'
warning: no previously-included files found matching '.travis.yml'
warning: no previously-included files found matching '.landscape.yml'
warning: no previously-included files found matching 'pip/_vendor/Makefile'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files found matching 'dev-requirements.txt'
warning: no previously-included files found matching 'appveyor.yml'
no previously-included directories found matching '.github'
no previously-included directories found matching '.travis'
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'contrib'
no previously-included directories found matching 'tasks'
no previously-included directories found matching 'tests'
Adding pip 8.1.1 to easy-install.pth file
Installing pip script to /usr/local/bin
Installing pip2.7 script to /usr/local/bin
Installing pip2 script to /usr/local/bin
Installed /Library/Python/2.7/site-packages/pip-8.1.1-py2.7.egg
Processing dependencies for pip
Finished processing dependencies for pip
Sunday, March 20, 2016
Saturday, March 19, 2016
cURL: Extracting Only Titles from Google News
$ curl -vs "https://news.google.com" 2>&1 | sed -n -e 's/.*<span class=\"titletext\">\(.*\)<\/span>.*/\1/p' | sed 's/<[^>]*>//g'
パリ同時テロ実行犯を逮捕、捜査進展の可能性 2016年03月19日 11時12分読売新聞 - ‎31 分前‎
実行犯唯一の生存者 サラ容疑者ら5人逮捕
また高崎線で運転見合わせ…今度は信号機異常で 2016年03月19日 11時06分読売新聞 - ‎37 分前‎
JR高崎線が運行再開、3日間で635本運休
逮捕の男「自分が運転」夕方まで名乗り出ず 山陽道事故日本経済新聞 - ‎5 分前‎
トンネル事故 運送会社を緊急監査 4つの法令違反
公然化 首相は「中立」、広がる臆測毎日新聞 - ‎3 時間前‎
増税延期の是非慎重に判断を
桜開花、福岡が今季トップ - 平年より4日早くマイナビニュース - ‎1 時間前‎
福岡市で全国で最も早くサクラ開花発表
新世界の“怪物”が動き出す! 『ONE PIECE FILM GOLD』特報第2弾ORICON STYLE - ‎28 分前‎
「ONE PIECE FILM GOLD」特報で本編初公開、ゴルゴルの実の能力者が登場
神戸の中心部、組事務所にダンプ突っ込む 山口組抗争か朝日新聞 - ‎53 分前‎
神戸山口組系事務所にダンプ突っ込む 抗争絡みの可能性
「ランサムウェア」ウィルスとは スマホの画面がロックされて...被害を初確認ハフィントンポスト - ‎1 時間前‎
スマホに身代金要求ウイルス - 愛知県警、感染を初確認
路上で2女性殴る 容疑で男逮捕 静岡・駿河区 /静岡毎日新聞 - ‎4 分前‎
凶器か、ハンマー押収静岡・女子大生襲撃事件
【教科書検定】慰安婦、より慎重に一定の改善 朝日「誤報」の影響?産経ニュース - ‎10 分前‎
高校教科書 「安保」に検定意見次々
【北朝鮮情勢】 5回目の核実験準備か 米衛星分析「いつでも実施可能」産経ニュース - ‎1 時間前‎
北朝鮮いつでも核実験可能 米大、衛星写真を分析
安田純平さん拘束動画ネット公開で日本政府が解放の足かせに?東スポWeb - ‎4 時間前‎
安田さん拘束:ブローカー周辺が関与 入国情報伝達か
ナイキ、自動ひも調整靴公開 映画「バック・トゥ・ザ・フューチャー」が現実に (1/2ページ)SankeiBiz - ‎5 時間前‎
米ナイキ:自動で靴ひも締まるシューズ公開-映画の世界が現実に
焦点:ドル高是正で「G20協調」の思惑、市場混乱の…
【法制局長官答弁】核使用まで容認とは驚く高知新聞 - ‎2 時間前‎
核兵器使用「全くあり得ない」 菅官房長官、法制局長官答弁で「火消し」
名古屋市議報酬1454万円 再可決 2016年03月19日読売新聞 - ‎6 時間前‎
市議報酬大幅増を再可決、名古屋 - 河村氏主導権失う
調整 核安保サミットで毎日新聞 - ‎4 時間前‎
【参院予算委】安倍首相、朴槿恵大統領など首脳の招待は「これから調整」 伊勢志摩サミットで
池松壮亮、黒木華らが本木雅弘×西川美和監督最新作に出演!シネマトゥデイ - ‎3 時間前‎
西川美和監督×本木雅弘「永い言い訳」に池松壮亮、黒木華、山田真歩らが出演!
バンビーノが4月に東京へ、パパになる藤田「物心つくまでには顔出したい」ナタリー - ‎1 時間前‎
バンビーノ藤田が結婚、夫人は妊娠!叔父は桂きん枝
青春野球小説「バッテリー」がテレビアニメ化シネマトゥデイ - ‎13 時間前‎
"ノイタミナ"新作はあさのあつこ原作『バッテリー』、7月より放送スタート
「リオで金だべえ」 福士が陽気な決めぜりふで喜び日刊スポーツ - ‎1 時間前‎
[マラソン]福士加代子「金メダルだべ」
桐生 男子60mで6秒56も決勝進出ならず日刊スポーツ - ‎57 分前‎
男子60m、桐生決勝進出ならず
錦織、準々決勝でナダルに敗れる テニスBNPパリバ産経ニュース - ‎1 時間前‎
チャンス逃がし落胆の錦織 ナダルに敗れる
Google、ロボット開発事業Boston Dynamicsの売却を検討かITpro - ‎2016年3月17日‎
Alphabet、ロボット部門Boston Dynamicsの売却を計画か
経験不足の作業者に熟練者が指示--富士通研究所、AR活用した遠隔作業支援システムCNET Japan - ‎19 時間前‎
富士通研、作業現場を撮影し遠隔地から3Dパノラマで指示する技術を開発
ノロウイルスの院内感染で2歳男児が死亡 東京朝日新聞 - ‎3 時間前‎
ノロウイルス院内感染で2歳男児死亡 都立病院
バッテリー搭載しないで走る 世界で初毎日新聞 - ‎1 時間前‎
豊橋技科大と大成建設、有人バッテリーレスEVで道路からの給電走行に世界初成功
株式会社タニタ下野新聞 - 2016年3月16日編集部のおすすめ
ナイキ、自動ひも調整靴公開 映画「バック・トゥ・ザ・フューチャー」が現実に (1/2ページ)SankeiBiz - 5 時間前Twitter Facebook
Subscribe to:
Posts (Atom)