This file contains hidden or 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
| #include <targets/AT91SAM7.h> | |
| .global main | |
| main: | |
| # Output enable | |
| ldr r0, =(PIOA_BASE + PIOA_OER_OFFSET) | |
| ldr r1, =PIOA_OER_P18_MASK | |
| str r1, [r0] | |
| loopreset: |
This file contains hidden or 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
| import socket | |
| s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
| #s.bind(('',8011)) | |
| #s.listen(5) | |
| s.connect(('127.0.0.1',8011)) | |
| s.send('i am client') | |
| data = s.recv(1024) | |
| s.close() | |
| print "Received: " + data |
This file contains hidden or 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
| import socket | |
| s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
| s.bind(('',8011)) | |
| s.listen(5) | |
| conn,addr = s.accept() | |
| data = conn.recv(1024) | |
| conn.send('i am server') | |
| conn.close() | |
| print "Received: " + data |
This file contains hidden or 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
| set nocompatible | |
| filetype off | |
| syntax on | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() " PLUGINS | |
| Plugin 'gmarik/Vundle.vim' | |
| Plugin 'tmhedberg/SimpylFold' | |
| Plugin 'vim-scripts/indentpython.vim' |
This file contains hidden or 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
| #include <stdio.h> | |
| int main (void) | |
| { | |
| puts ("Hello World\n"); | |
| return 0; | |
| } |
NewerOlder