- lxml - Pythonic binding for the C libraries libxml2 and libxslt.
- boto - Python interface to Amazon Web Services
- Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
- Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
- PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
- Celery - Task queue to distribute work across threads or machines.
- pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.
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
void My_Main(void) | |
{ | |
GPIO_GPFSEL4 |= (0x1 << 21); | |
GPIO_GPFSEL4 &= ~(0x6 << 21); | |
// set bit 21~23 to 0b001, so GPIO 47 is an output pin | |
GPIO_GPCLR1 |= (0x1 << 15); // set GPIO 47 output low (LED off) | |
INT_DISIRQ1 = 0xFFFFFFFF; | |
INT_DISIRQ2 = 0xFFFFFFFF; | |
INT_DISBIRQ = 0xFF; |
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
void SendByte( uint8 byte_value ) | |
{ | |
uint16 i; | |
uint8 cycle_cnt; | |
cycle_cnt = 8; | |
for( i= 0; i < cycle_cnt; i++ ) | |
{ | |
if ( (byte_value & IO_MASK) == 0x80 ){ | |
SI = 1; | |
} |
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> | |
#include <stdlib.h> | |
#define MAX 1000 | |
void find_peak(int *a,int size); | |
int main(void) | |
{ | |
FILE *fp; | |
int i=0,v; | |
int data[MAX]; |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
// Simple Character Device Driver Module for Raspberry Pi. | |
#include <linux/module.h> | |
#include <linux/string.h> | |
#include <linux/fs.h> | |
#include <asm/uaccess.h> | |
#include <linux/init.h> | |
#include <linux/cdev.h> | |
#include <linux/device.h> |
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
/* | |
* onionys@IT-Robotics-Lab, Feb 4, 2015 | |
* blog: | |
* email: [email protected] | |
* | |
* */ | |
#include <linux/module.h> | |
#include <linux/string.h> | |
#include <linux/fs.h> |
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
// Simple Platform Device Module for Raspberry Pi. | |
#include <linux/module.h> | |
#include <linux/string.h> | |
#include <linux/fs.h> | |
#include <asm/uaccess.h> | |
#include <linux/init.h> | |
#include <linux/cdev.h> | |
#include <linux/device.h> |
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
// Simple Platform Device Driver Module for Raspberry Pi. | |
#include <linux/module.h> | |
#include <linux/string.h> | |
#include <linux/fs.h> | |
#include <asm/uaccess.h> | |
#include <linux/init.h> | |
#include <linux/cdev.h> | |
#include <linux/device.h> |