This file contains 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
(defun ac-python-candidates () | |
(let* (py-split-windows-on-execute-p | |
py-switch-buffers-on-execute-p | |
(shell (py-choose-shell)) | |
(proc (or (get-buffer-process shell) | |
(get-buffer-process (py-shell nil nil shell 'noswitch nil))))) | |
(if (processp proc) | |
(with-syntax-table python-dotty-syntax-table | |
(let* ((imports (py-find-imports)) |
This file contains 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
IMAPAccount gmail-account | |
Host imap.gmail.com | |
User user@gmail.com | |
UseIMAPS yes | |
CertificateFile /etc/ssl/certs/ca-certificates.crt | |
Pass "secret" | |
IMAPStore gmail-store | |
Account gmail-account |
This file contains 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/python | |
import logging | |
log = logging.getLogger(__file__) | |
def main(): | |
"""An example of how the logging works.""" | |
log.debug("Test message") |
This file contains 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
# -*- coding: utf-8 -*- | |
import SocketServer | |
import SimpleHTTPServer | |
PORT = 8000 | |
class HTTPServer(SimpleHTTPServer.SimpleHTTPRequestHandler): | |
def do_GET(self): |
This file contains 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
%cylinder(2, r=8); | |
module spiral_part(angle, height, distance, radius) { | |
rotate(angle, [0, 0, 1]) | |
translate([distance, 0, 0 ]) | |
rotate([90,0,0])cylinder(height, r = r, $fn=5); | |
} | |
module spiral(){ | |
height =1; | |
union (){ |