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 | |
| # coding=utf-8 | |
| import mechanize | |
| import cookielib | |
| from BeautifulSoup import BeautifulSoup | |
| import html2text | |
| html = ''' |
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
| From 0db24873af56e8aa6ee6bbacf5bf35dec4ff656c Mon Sep 17 00:00:00 2001 | |
| From: Chris Sarbora <[email protected]> | |
| Date: Thu, 29 Oct 2015 16:25:29 -0700 | |
| Subject: [PATCH] WIP build goldfish kernel along with device | |
| Change-Id: I4e051700fb46e5c0575c72ad42f238e78991f070 | |
| --- | |
| BoardConfig.mk | 16 +++++++++++++--- | |
| 1 file changed, 13 insertions(+), 3 deletions(-) |
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
| From a10d8f54ad837de012bd029c8113143edbe6120b Mon Sep 17 00:00:00 2001 | |
| From: Chris Sarbora <[email protected]> | |
| Date: Thu, 29 Oct 2015 16:24:42 -0700 | |
| Subject: [PATCH] WIP build goldfish kernel along with device | |
| Change-Id: I9c0b28a7d4ed9e69063661f16df9d278439da4be | |
| --- | |
| core/tasks/kernel.mk | 44 +++++++++++++++++++++++++++----------------- | |
| 1 file changed, 27 insertions(+), 17 deletions(-) |
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
| MIIGBgYJKoZIhvcNAQcCoIIF9zCCBfMCAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCCBAMwggP/MIIC56ADAgECAgkA79gByovVL88wDQYJKoZIhvcNAQEFBQAwgZUxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApXYXNoaW5ndG9uMRAwDgYDVQQHDAdTZWF0dGxlMRcwFQYDVQQKDA5DeWFub2dlbiwgSW5jLjEbMBkGA1UECwwSUmVsZWFzZSBNYW5hZ2VtZW50MSkwJwYDVQQDDCBEZXZlbG9wbWVudCBDeWFub2dlbiBBcHBsaWNhdGlvbjAeFw0xNDA0MjgyMDQ5MjJaFw00MTA5MTMyMDQ5MjJaMIGVMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEXMBUGA1UECgwOQ3lhbm9nZW4sIEluYy4xGzAZBgNVBAsMElJlbGVhc2UgTWFuYWdlbWVudDEpMCcGA1UEAwwgRGV2ZWxvcG1lbnQgQ3lhbm9nZW4gQXBwbGljYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCScQLM+mFk72jehK2Pc4hJ1R7uZtjbWC5dRaVo7cvvKaoNfRKf3ttwUEYDqE02/w7DnFIc6Jy6y5CqUntfYpeLtc5H+MueMwDavnK0tyPr7BJosXNwxtsvM9oInJlWPrp7RPW+HM4mbsGZdLhnpCsTVAYoOgClJpwrWwTURRnc7XVKvK4wB5zlstRr61RQzBLwh7dX0S46IFF6YibPIeRVs0BeHKroh0VzBn6WVrv3xCwVZB2XM+8UNoIgtkgYe1HQHMTR5Jr8J/qBBTM9e2zIOuckUVDD5YpIDCYzoSGli2A9Rr1LZBX/fveSO6N86Ah/YoRM/h3Agoze14/O+IuJAgMBAAGjUDBOMB0GA1UdDgQWBBTwVAF94t9Zgqhp3uaB3X5p/cOw9zAfBgNVHSME |
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
| class PrefixNode { | |
| boolean isWord = false; | |
| Character c = null; | |
| PrefixNode[] children = new PrefixNode[26]; | |
| } | |
| PrefixNode buildTree(List<String> words) { | |
| PrefixNode root = new PrefixNode(); | |
| for (String word : words) { | |
| PrefixNode node = root; |
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
| static int binder_open(struct inode *nodp, struct file *filp) | |
| { | |
| struct binder_proc *proc; | |
| binder_debug(BINDER_DEBUG_OPEN_CLOSE, "binder_open: %d:%d\n", | |
| current->group_leader->pid, current->pid); | |
| proc = kzalloc(sizeof(*proc), GFP_KERNEL); | |
| if (proc == NULL) | |
| return -ENOMEM; |
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
| template<typename T> | |
| class sp { | |
| ... | |
| }; | |
| template<typename T> | |
| sp<T> wp<T>::promote() const | |
| { | |
| sp<T> result; | |
| if (m_ptr && m_refs->attemptIncStrong(&result)) { |
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
| apply plugin: 'java' | |
| repositories { | |
| maven { url "https://maven.cyngn.com/artifactory/repo" } | |
| jcenter() | |
| mavenLocal() | |
| } | |
| dependencies { | |
| def firstAndroidVariant = project(':core').android.applicationVariants.toList().first() |
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
| pom.withXml { | |
| def newDep = asNode().dependencies[0].appendNode 'dependency' | |
| def g = newDep.appendNode 'groupId' | |
| g.setValue(project.group) | |
| def a = newDep.appendNode 'artifactId' | |
| a.setValue('version_plugin') | |
| def v = newDep.appendNode 'version' | |
| v.setValue(project.version) | |
| def s = newDep.appendNode 'scope' | |
| s.setValue('runtime') |
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
| CREATE TABLE app(aid integer primary key asc); | |
| CREATE TABLE event (eid integer primary key asc, aid integer not null); | |
| INSERT INTO app (aid) values (1); | |
| INSERT INTO app (aid) values (2); | |
| INSERT INTO app (aid) values (3); | |
| INSERT INTO event (eid, aid) values (1, 1); | |
| INSERT INTO event (eid, aid) values (2, 1); | |
| INSERT INTO event (eid, aid) values (3, 1); |