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
| (function(){ | |
| var tags = '*'; | |
| var elts = Array.prototype.slice.call(document.body.querySelectorAll(tags)); | |
| var listenerMap = elts.map(function(e){ | |
| return { | |
| target: e, | |
| listeners: getEventListeners(e) | |
| }; | |
| }); |
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 airflow.hooks.base_hook import BaseHook | |
| from pymongo import MongoClient | |
| class MongoDBHook(BaseHook): | |
| def __init__(self, conn_id='mongodb_default'): | |
| self.conn = self.get_connection(conn_id) | |
| self.client = MongoClient(host=self.conn.host, port=self.conn.port) | |
| def __getattr__(self, name): |
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 ( | |
| "unsafe" | |
| "fmt" | |
| ) | |
| type A struct { | |
| a string | |
| b bool | |
| c bool | |
| d string |