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
| defmodule Decimal.Prefix do | |
| defmacro __using__(_args) do | |
| quote do | |
| import Decimal.Prefix, only: [decimal: 1] | |
| end | |
| end | |
| def overrides, do: ["+": 2, "-": 2, "*": 2, "/": 2] |
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
| \documentclass[11pt, oneside]{article} | |
| \usepackage[margin=0.5in]{geometry} | |
| \geometry{letterpaper} | |
| \usepackage[parfill]{parskip} | |
| \usepackage{graphicx} | |
| \usepackage{amssymb} | |
| \usepackage{xcolor} | |
| \pagecolor{white} | |
| \usepackage[colorlinks = true, linkcolor = blue, urlcolor = blue]{hyperref} | |
| \pagestyle{empty} |
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 time | |
| import torch | |
| from transformers import GPT2LMHeadModel, GPT2Tokenizer | |
| start = time.time() | |
| device = torch.device("cuda") | |
| tokenizer = GPT2Tokenizer.from_pretrained("stanford-crfm/pubmed_gpt_tokenizer") |
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
| git clone --bare git@github.com:sitch/dotfiles-manjaro.git $HOME/.dotfiles | |
| function dot { | |
| /usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME $@ | |
| } | |
| mkdir -p .dotfiles-backup | |
| dot checkout | |
| if [ $? = 0 ]; then | |
| echo "Checked out dotfiles-manjaro."; | |
| else | |
| echo "Backing up pre-existing dot files."; |
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
| { | |
| "account_id": "BxBXxLj1m4HMXBm9WZZmCWVbPjX16EHwv99vp", | |
| "amount": 2307.21, | |
| "iso_currency_code": "USD", | |
| "unofficial_currency_code": null, | |
| "category": ["Shops", "Computers and Electronics"], | |
| "category_id": "19013000", | |
| "date": "2017-01-29", | |
| "authorized_date": "2017-01-27", | |
| "location": { |
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
| .editable-cell { | |
| position: relative; | |
| } | |
| .editable-cell-value-wrap { | |
| padding: 5px 12px; | |
| cursor: pointer; | |
| } | |
| .editable-row{ |
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 React from "react" | |
| import PropTypes from "prop-types" | |
| import { connect } from "dva" | |
| import { Form, Table } from "antd" | |
| import { indicator, styles as tableStyles } from "dva-table-helpers" | |
| // import { url } from "dva-route-helpers" | |
| import classnames from "classnames" | |
| import { EditableCell, EditableRow } from "dva-table-helpers" | |
| import styles from "dva-table-helpers/EditableTable.less" |
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 React from "react" | |
| import PropTypes from "prop-types" | |
| import { Table, Input, Button, Popconfirm, Form } from "antd" | |
| import styles from "./EditableTable.less" | |
| const FormItem = Form.Item | |
| const EditableContext = React.createContext() | |
| const EditableRow = ({ form, index, ...props }) => ( |
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
| library(Rserve); | |
| Rserve(args="--vanilla"); |