Skip to content

Instantly share code, notes, and snippets.

@dwinston
dwinston / mmm-jsx.el
Last active August 29, 2015 14:16 — forked from dgellow/mmm-jsx.el
(require 'mmm-mode)
(mmm-add-classes
'((jsx
:submode web-mode
:front "\\((\\)[[:space:]\n]*<"
:front-match 1
:back ">[[:space:]\n]*\\()\\)"
:back-match 1)))
#!/usr/bin/env python
import argparse
from pymatgen.core.structure import IStructure
from pymatgen.matproj.rest import MPRester
from pymatgen.analysis.structure_matcher import StructureMatcher,\
ElementComparator
parser = argparse.ArgumentParser(
description="""find_struct_in_mp is a script that reads structures from
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from pymongo import MongoClient
client = MongoClient()
aggregation = [
{
"$set": {
"collection_date.has_date_value": {
"$dateFromString": {
"dateString": "$collection_date.has_raw_value",
},