Skip to content

Instantly share code, notes, and snippets.

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,
@bakwc
bakwc / deployer.py
Created May 15, 2014 21:51
Simple continious integration for C++ && CMake (github hook, build, run, logs)
#!/usr/bin/env python
import time
import BaseHTTPServer
import thread
import subprocess
HOST = '0.0.0.0'
PORT = 7777
#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;