Skip to content

Instantly share code, notes, and snippets.

View frankxu2004's full-sized avatar

Frank Xu frankxu2004

View GitHub Profile
[
{
"title": "Hydrogen - Wikipedia",
"favicon": "https://imgs.search.brave.com/0kxnVOiqv-faZvOJc7zpym4Zin1CTs1f1svfNZSzmfU/rs:fit:32:32:1/g:ce/aHR0cDovL2Zhdmlj/b25zLnNlYXJjaC5i/cmF2ZS5jb20vaWNv/bnMvNjQwNGZhZWY0/ZTQ1YWUzYzQ3MDUw/MmMzMGY3NTQ0ZjNj/NDUwMDk5ZTI3MWRk/NWYyNTM4N2UwOTE0/NTI3ZDQzNy9lbi53/aWtpcGVkaWEub3Jn/Lw",
"link": "https://en.wikipedia.org/wiki/Hydrogen",
"displayed_link": "en.wikipedia.org› wiki › Hydrogen",
"snippet": "Hydrogen, as atomic H, is the most abundant chemical element in the universe, making up 75 percent of normal matter by mass and more than 90 percent by number of atoms. (Most of the mass of the universe, however, is not in the form of chemical-element type matter, but rather is postulated to ...",
"snippet_image": null,
"rating": null,
"votes": null,
{'_type': 'SearchResponse',
'entities': {'value': [{'bingId': 'a269b75a-956d-82b3-a3b4-cc6755900cbc',
'description': 'The atomic mass (mₐ or m) is the mass '
'of an atom. Although the SI unit of '
'mass is the kilogram (symbol: kg), '
'atomic mass is often expressed in the '
'non-SI unit dalton (symbol: Da) – '
'equivalently, unified atomic mass '
'unit (u). 1 Da is defined as 1⁄12 of '
'the mass of a free carbon-12 atom at '
function userInteractionEventCallback(e) {
// save the event information
console.log(e);
// save the current DOM
whole_page_source = document.documentElement.outerHTML;
}
console.log('inject.js run.')
window.addEventListener("click", userInteractionEventCallback, true);

TranX Developer Study

Instructions

The goal of the user study is to understand how a code generation and retrieval plugin in IDE could affect the development.

We provision Linux desktop with PyCharm IDE, required Python environment for all the tasks and a Firefox browser installed.

You will be assigned 8 tasks automatically based on your pre-study survey and completing all tasks would take about 4-5 hours so please plan ahead!

Note that the plugin will be available for you to use only on part of your assigned tasks for controlled study, so please don't panic if you do not have the plugin for some tasks!

@frankxu2004
frankxu2004 / tree.md
Last active August 29, 2015 14:20 — forked from hrldcpr/tree.md

One-line Tree in Python

Using Python's built-in defaultdict we can easily define a tree data structure:

def tree(): return defaultdict(tree)

That's it!