Skip to content

Instantly share code, notes, and snippets.

@Y-KURI
Created August 7, 2018 15:28
Show Gist options
  • Save Y-KURI/1c011faac6bd382081d5e84ba908040d to your computer and use it in GitHub Desktop.
Save Y-KURI/1c011faac6bd382081d5e84ba908040d to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Applications\t\t\tUntitled3.ipynb\n",
"Boostnote\t\t\tUntitled4.ipynb\n",
"Desktop\t\t\t\tUntitled5.ipynb\n",
"Documents\t\t\tUntitled6.ipynb\n",
"Downloads\t\t\tUntitled7.ipynb\n",
"Google ドライブ\t\t\tUntitled8.ipynb\n",
"Library\t\t\t\tUntitled9.ipynb\n",
"Movies\t\t\t\tanaconda3\n",
"Music\t\t\t\tbin\n",
"Pictures\t\t\teclipse\n",
"Public\t\t\t\tfuga\n",
"Untitled.ipynb\t\t\tnode_modules\n",
"Untitled1.ipynb\t\t\tpackage-lock.json\n",
"Untitled10.ipynb\t\tuntitled.txt\n",
"Untitled11.ipynb\t\tyarn-error.log\n",
"Untitled2.ipynb\t\t\tyarn.lock\n"
]
}
],
"source": [
"ls\n"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"find: Rakfile: No such file or directory\n"
]
},
{
"ename": "",
"evalue": "1",
"execution_count": 3,
"output_type": "error",
"traceback": []
}
],
"source": [
"find Rakfile"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"find: Rakefile: No such file or directory\n"
]
},
{
"ename": "",
"evalue": "1",
"execution_count": 4,
"output_type": "error",
"traceback": []
}
],
"source": [
"find Rakefile"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"/Users/kuriharayasuaki\n"
]
}
],
"source": [
"pwd"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
"cd Documents"
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {},
"outputs": [],
"source": [
"cd rake_sample"
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Rakesample\n"
]
}
],
"source": [
"ls"
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"rake aborted!\n",
"No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)\n",
"\n",
"(See full trace by running task with --trace)\n"
]
},
{
"ename": "",
"evalue": "1",
"execution_count": 10,
"output_type": "error",
"traceback": []
}
],
"source": [
"rake"
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Rakesample\n"
]
}
],
"source": [
"ls"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"bash: cd: Rakesample: Not a directory\n"
]
},
{
"ename": "",
"evalue": "1",
"execution_count": 12,
"output_type": "error",
"traceback": []
}
],
"source": [
"cd Rakesample"
]
},
{
"cell_type": "code",
"execution_count": 13,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Rakesample\n"
]
}
],
"source": [
"ls"
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Rakesample\n"
]
}
],
"source": [
"echo Rakesample"
]
},
{
"cell_type": "code",
"execution_count": 15,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"desc 'Create hello-rake.txt'\n",
"task :samplefile do\n",
" open('hello-rake.txt','w'){|f|f.erite('Hello Rake.')\n",
" }\n",
"end"
]
}
],
"source": [
"cat Rakesample"
]
},
{
"cell_type": "code",
"execution_count": 16,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"/Users/kuriharayasuaki/Documents/rake_sample\n"
]
}
],
"source": [
"pwd"
]
},
{
"cell_type": "code",
"execution_count": 17,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"rake aborted!\n",
"Don't know how to build task 'default' (see --tasks)\n",
"\n",
"(See full trace by running task with --trace)\n"
]
},
{
"ename": "",
"evalue": "1",
"execution_count": 17,
"output_type": "error",
"traceback": []
}
],
"source": [
"rake"
]
},
{
"cell_type": "code",
"execution_count": 18,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Rakefile\n"
]
}
],
"source": [
"ls"
]
},
{
"cell_type": "code",
"execution_count": 19,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"desc 'Create hello-rake.txt'\n",
"task :samplefile do\n",
" open('hello-rake.txt','w'){|f|f.write('Hello Rake.')\n",
" }\n",
"end"
]
}
],
"source": [
"cat Rakefile"
]
},
{
"cell_type": "code",
"execution_count": 20,
"metadata": {},
"outputs": [],
"source": [
"rake samplefile"
]
},
{
"cell_type": "code",
"execution_count": 21,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Rakefile\thello-rake.txt\n"
]
}
],
"source": [
"ls"
]
},
{
"cell_type": "code",
"execution_count": 22,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Hello Rake."
]
}
],
"source": [
"cat hello-rake.txt"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Bash",
"language": "bash",
"name": "bash"
},
"language_info": {
"codemirror_mode": "shell",
"file_extension": ".sh",
"mimetype": "text/x-sh",
"name": "bash"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment