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 re | |
| import sys | |
| import subprocess | |
| import tempfile | |
| nm = 'nm' | |
| gdb = 'gdb' |
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 python3 | |
| # Mail service should only be run from a system with postfix installed. | |
| # e.g. sudo apt-get install postfix on Ubuntu Xenial | |
| import logging | |
| import requests | |
| from bs4 import BeautifulSoup | |
| # For mail notification service | |
| import os | |
| import smtplib | |
| from email.mime.multipart import MIMEMultipart |
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/python | |
| from Tkinter import * | |
| import numpy | |
| import math | |
| # Transmisor de una senal | |
| class Transmitter: | |
| def __init__(self, ID, canvas, coordinates, strength=50, color="gray"): | |
| self.id = ID # ID del transmisor |
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
| # -*- coding: utf-8 -*- | |
| """ | |
| example use of pandas with oracle mysql postgresql sqlite | |
| lightly tested. | |
| to do: | |
| save/restore index (how to check table existence? just do select count(*)?), | |
| finish odbc, | |
| add booleans?, | |
| sql_server? |
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> | |
| struct jintArray | |
| { | |
| int size; | |
| int *elements; | |
| }; | |
| struct env_type |
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 <stdlib.h> | |
| #include <stdio.h> | |
| #include "list.h" | |
| typedef struct episode { | |
| int epid; | |
| struct list_head list; | |
| } episode_t; |
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 <stdlib.h> | |
| #include <stdio.h> | |
| #include "list.h" | |
| typedef struct episode { | |
| int epid; | |
| struct list_head list; | |
| } episode_t; |
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
| -- Export to csv via SQLite Database Browser: | |
| create table promo_post_data as select * from pagepostdata where post_name='Promo-post' | |
| -- Export to csv via SQLite CLI: | |
| sqlite> .header on | |
| sqlite> .output c:/work/dataout.csv | |
| sqlite> .mode csv | |
| sqlite> SELECT * FROM pagepostdata WHERE post_name='Promo-post' | |
| sqlite> .output stdout |
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 urllib, urllib2, json | |
| ''' | |
| The ``FacebookTestUserManager`` module | |
| ====================================== | |
| Author: Weizhong Yang <zonble at gmail dot com> | |
| A tool which helps to create and delete test account for Facebook. |