in scratch press C-j
install el-get
(url-retrieve "https://raw.githubusercontent.com/dimitri/el-get/master/el-get-install.el" (lambda (s) (goto-char (point-max)) (eval-print-last-sexp)))
in scratch press C-j
install el-get
(url-retrieve "https://raw.githubusercontent.com/dimitri/el-get/master/el-get-install.el" (lambda (s) (goto-char (point-max)) (eval-print-last-sexp)))
1
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import SocketServer
import json class MyTCPServer(SocketServer.ThreadingTCPServer): allow_reuse_address = True class MyTCPServerHandler(SocketServer.BaseRequestHandler): def handle(self): try: data = json.loads(self.request.recv(1024).strip()) # process the data, i.e. print it: print data # send some 'ok' back self.request.sendall(json.dumps({'return':'ok'})) except Exception, e: print "Exception wile receiving message: ", e server = MyTCPServer(('127.0.0.1', 13370), MyTCPServerHandler) server.serve_forever() |
1
2 3 4 5 6 7 8 9 10 11 |
import socket
import json
def send_data(score):
data = {'message':'This is my kivy app', 'score':score} s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect(('127.0.0.1', 13370)) s.send(json.dumps(data)) result = json.loads(s.recv(1024)) print result s.close() |
myplugin.el to your ~/.emacs.d/ directory, add the following in your .emacs file:(add-to-list 'load-path "~/.emacs.d/")
(load "myplugin.el")
(require 'myplugin)
MetaX list-packages.3.times { puts "Hello!" } Hello
[0.5, 2, 1, 4].choose play_pattern_timed [59,64,68],[0.5] play 59,sleep .5 play 64 sleep .5 |
attrib +s +h “C:\Users\Me\Desktop\hidden dir”
brew install ffmpeg --with-faac --with-lame --with-xvid --with-theora --with-libvorbis --with-libvpx --with-rtmpdump --with-ffplay --with-speex --with-opus --enable-openssl --with-openssl
ffmpeg -i-vol -acodec