Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.00 KB | None | 0 0
  1. {
  2. "cells": [
  3. {
  4. "cell_type": "markdown",
  5. "metadata": {},
  6. "source": [
  7. "# Shell-Python integration"
  8. ]
  9. },
  10. {
  11. "cell_type": "code",
  12. "execution_count": 1,
  13. "metadata": {
  14. "collapsed": false
  15. },
  16. "outputs": [
  17. {
  18. "name": "stdout",
  19. "output_type": "stream",
  20. "text": [
  21. "{\r\n",
  22. " \"indentation\": {\r\n",
  23. " \"level\": \"error\",\r\n",
  24. " \"value\": 2\r\n",
  25. " },\r\n",
  26. " \"line_endings\": {\r\n",
  27. " \"value\": \"unix\",\r\n",
  28. " \"level\": \"error\"\r\n",
  29. " },\r\n",
  30. " \"max_line_length\": {\r\n",
  31. " \"value\": false\r\n",
  32. " }\r\n",
  33. "}"
  34. ]
  35. }
  36. ],
  37. "source": [
  38. "cat ./.atom/packages/atom-beautify/coffeelint.json"
  39. ]
  40. },
  41. {
  42. "cell_type": "code",
  43. "execution_count": 2,
  44. "metadata": {
  45. "collapsed": true
  46. },
  47. "outputs": [],
  48. "source": [
  49. "x =! cat ./.atom/packages/atom-beautify/coffeelint.json"
  50. ]
  51. },
  52. {
  53. "cell_type": "code",
  54. "execution_count": 3,
  55. "metadata": {
  56. "collapsed": false
  57. },
  58. "outputs": [
  59. {
  60. "data": {
  61. "text/plain": [
  62. "['{',\n",
  63. " ' \"indentation\": {',\n",
  64. " ' \"level\": \"error\",',\n",
  65. " ' \"value\": 2',\n",
  66. " ' },',\n",
  67. " ' \"line_endings\": {',\n",
  68. " ' \"value\": \"unix\",',\n",
  69. " ' \"level\": \"error\"',\n",
  70. " ' },',\n",
  71. " ' \"max_line_length\": {',\n",
  72. " ' \"value\": false',\n",
  73. " ' }',\n",
  74. " '}']"
  75. ]
  76. },
  77. "execution_count": 3,
  78. "metadata": {},
  79. "output_type": "execute_result"
  80. }
  81. ],
  82. "source": [
  83. "x"
  84. ]
  85. },
  86. {
  87. "cell_type": "code",
  88. "execution_count": 5,
  89. "metadata": {
  90. "collapsed": false
  91. },
  92. "outputs": [
  93. {
  94. "name": "stdout",
  95. "output_type": "stream",
  96. "text": [
  97. "{ \"indentation\": { \"level\": \"error\", \"value\": 2 }, \"line_endings\": { \"value\": \"unix\", \"level\": \"error\" }, \"max_line_length\": { \"value\": false } }\n"
  98. ]
  99. }
  100. ],
  101. "source": [
  102. "print(x.s)"
  103. ]
  104. },
  105. {
  106. "cell_type": "code",
  107. "execution_count": 7,
  108. "metadata": {
  109. "collapsed": false
  110. },
  111. "outputs": [
  112. {
  113. "name": "stdout",
  114. "output_type": "stream",
  115. "text": [
  116. "{\n",
  117. " \"indentation\": {\n",
  118. " \"level\": \"error\",\n",
  119. " \"value\": 2\n",
  120. " },\n",
  121. " \"line_endings\": {\n",
  122. " \"value\": \"unix\",\n",
  123. " \"level\": \"error\"\n",
  124. " },\n",
  125. " \"max_line_length\": {\n",
  126. " \"value\": false\n",
  127. " }\n",
  128. "}\n"
  129. ]
  130. }
  131. ],
  132. "source": [
  133. "print(x.n)"
  134. ]
  135. },
  136. {
  137. "cell_type": "code",
  138. "execution_count": 9,
  139. "metadata": {
  140. "collapsed": false
  141. },
  142. "outputs": [
  143. {
  144. "name": "stdout",
  145. "output_type": "stream",
  146. "text": [
  147. "CHANGELOG.md\n",
  148. "CONTRIBUTING.md\n",
  149. "ISSUE_TEMPLATE.md\n",
  150. "LICENSE.md\n",
  151. "PULL_REQUEST_TEMPLATE.md\n",
  152. "README-template.md\n",
  153. "README.md\n",
  154. "ROADMAP.md\n",
  155. "appveyor\n",
  156. "appveyor.yml\n",
  157. "build-package.sh\n",
  158. "coffeelint.json\n",
  159. "docs\n",
  160. "examples\n",
  161. "keymaps\n",
  162. "menus\n",
  163. "node_modules\n",
  164. "package.json\n",
  165. "script\n",
  166. "spec\n",
  167. "src\n",
  168. "styles\n"
  169. ]
  170. }
  171. ],
  172. "source": [
  173. "%%bash\n",
  174. "ls ./.atom/packages/atom-beautify"
  175. ]
  176. },
  177. {
  178. "cell_type": "code",
  179. "execution_count": null,
  180. "metadata": {
  181. "collapsed": true
  182. },
  183. "outputs": [],
  184. "source": []
  185. }
  186. ],
  187. "metadata": {
  188. "kernelspec": {
  189. "display_name": "Python 3",
  190. "language": "python",
  191. "name": "python3"
  192. },
  193. "language_info": {
  194. "codemirror_mode": {
  195. "name": "ipython",
  196. "version": 3
  197. },
  198. "file_extension": ".py",
  199. "mimetype": "text/x-python",
  200. "name": "python",
  201. "nbconvert_exporter": "python",
  202. "pygments_lexer": "ipython3",
  203. "version": "3.5.1"
  204. }
  205. },
  206. "nbformat": 4,
  207. "nbformat_minor": 2
  208. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement