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 sqlite3 | |
| import pdb | |
| conn = sqlite3.connect('AddressBook.sqlitedb') | |
| c = conn.cursor() | |
| sql = "select ABMultiValue.value, ABPerson.ROWID from ABPerson,ABMultiValue where ABMultiValue.record_id=ABPerson.ROWID" | |
| ins = "update ABMultiValue set value='%s' where record_id=%s" | |
| l = [9,12] | |
| prefix = ['08','09','06','05','03'] | |
| c.execute(sql) | |
| res = c.fetchall() |
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
| -module(timeit). | |
| -compile(export_all). | |
| %% @doc Dynamically add timing to MFA. There are various types of | |
| %% timing. | |
| %% | |
| %% all - time latency of all calls to MFA | |
| %% | |
| %% {sample, N, Max} - sample every N calls and stop sampling after 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
| %% Given the parsed HTML tree in the following format: | |
| %% | |
| %% Types HTML = [Element] | |
| %% Element = {Tag, [Attribute], [Element | Text]} | |
| %% Tag = atom() % e.g. 'a', 'pre', 'p' | |
| %% Attribute = {Name, Value} | |
| %% Name = atom() | |
| %% Value = string() | |
| %% Text = iolist() | |
| %% |
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
| #Copyright (c) 2010-2013 Samuel Sutch [samuel.sutch@gmail.com] | |
| # | |
| #Permission is hereby granted, free of charge, to any person obtaining a copy | |
| #of this software and associated documentation files (the "Software"), to deal | |
| #in the Software without restriction, including without limitation the rights | |
| #to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| #copies of the Software, and to permit persons to whom the Software is | |
| #furnished to do so, subject to the following conditions: | |
| # | |
| #The above copyright notice and this permission notice shall be included in |
NewerOlder