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 urllib2 | |
import lxml.html | |
import json | |
from time import sleep | |
class TArticle: | |
def Serialize(obj): | |
result = {'text': obj.text, | |
'raw_html': obj.raw_html, | |
'title': obj.title, |
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
#!/usr/bin/env python | |
import time | |
import BaseHTTPServer | |
import thread | |
import subprocess | |
HOST = '0.0.0.0' | |
PORT = 7777 |
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 "Arduino.h" | |
#include "stm32yyxx_ll_adc.h" | |
#include "stm32f1xx.h" | |
int writeSector(uint32_t Address,void * values, uint16_t size) | |
{ | |
uint16_t *AddressPtr; | |
uint16_t *valuePtr; | |
AddressPtr = (uint16_t *)Address; |