Skip to content

Instantly share code, notes, and snippets.

@aurimasv
aurimasv / keybase.md
Created January 7, 2019 04:54
keybase

Keybase proof

I hereby claim:

  • I am aurimasv on github.
  • I am vinaur (https://keybase.io/vinaur) on keybase.
  • I have a public key ASBWLWxfk_35ETwe9XgWwcL68HwbgUvvAAJC2DZRjSGHGQo

To claim this, I am signing this object:

@aurimasv
aurimasv / inheritance.js
Last active August 29, 2015 14:08
Zotero DataObject inheritance
// Base DataObject
Zotero.DataObject = function () {
let objectType = this._objectType;
this._ObjectType = objectType[0].toUpperCase() + objectType.substr(1);
this._objectTypePlural = Zotero.DataObjectUtilities.getObjectTypePlural(objectType);
// ...
this._loaded = {};
for (let i=0; i<this._dataTypes.length; i++) {
@aurimasv
aurimasv / custom-newsletter.csl
Last active August 29, 2015 14:07
Newsletter style
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="never">
<info>
<title>Newsletter</title>
<id>http://www.zotero.org/styles/custom-newsletter</id>
<link rel="self" href="http://www.zotero.org/styles/custom-newsletter"/>
<author>
<name>Aurimas Vinckevicius</name>
<email>aurimas.dev@gmail.com</email>
</author>
var items = [],
nextItem = Zotero.Promise.defer();
var generator = function* () {
let i=0;
while (i<items.length || nextItem) {
for (; i<items.length; i++) {
yield items[i];
}
@aurimasv
aurimasv / search.results.html
Created October 6, 2014 17:54
HarpWeek search results
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<link href="/Common/lcw.css" rel="stylesheet" type="text/css">
<title>HarpWeek - Electronic Access to Harper's Weekly</title>
</head>
@aurimasv
aurimasv / harpweek
Created October 6, 2014 17:51
app.harpweek.com
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<link href="/common/lcw.css" rel="stylesheet" type="text/css">
<title>HarpWeek - Electronic Access to Harper's Weekly</title>
</head>
(3)(+0000000): '0' => [object Object] {
'primary' => [object Object] {}
'fields' => [object Object] {
'abstractNote' => "Summary
IDH1 and IDH2 mutations occur frequently in gliomas and acute myeloid leukemia, leading to simultaneous loss and gain of activities in the production of α-ketoglutarate (α-KG) and 2-hydroxyglutarate (2-HG), respectively. Here we demonstrate that 2-HG is a competitive inhibitor of multiple α-KG-dependent dioxygenases, including histone demethylases and the TET family of 5-methlycytosine (5mC) hydroxylases. 2-HG occupies the same space as α-KG does in the active site of histone demethylases. Ectopic expression of tumor-derived IDH1 and IDH2 mutants inhibits histone demethylation and 5mC hydroxylation. In glioma, IDH1 mutations are associated with increased histone methylation and decreased 5-hydroxylmethylcytosine (5hmC). Hence, tumor-derived IDH1 and IDH2 mutations reduce α-KG and accumulate an α-KG antagonist, 2-HG, leading to genome-wide histone and
@aurimasv
aurimasv / csl-overlay
Created July 13, 2014 20:09
CSL overlay proposal
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0">
<info>
<title>Some child style</title>
<id>http://www.zotero.org/styles/child-style</id>
<link href="http://www.zotero.org/styles/child-style" rel="self"/>
<link href="http://www.zotero.org/styles/parent-style" rel="template"/>
<updated>2014-07-09T21:58:08+00:00</updated>
</info>
<overlay> <!-- if this is present, the "template" style is loaded, the /style/info node is replaced with above, and the included modifications are performed -->
@aurimasv
aurimasv / sort-test-min.csl
Created July 10, 2014 04:29
Sort testing (minimal style)
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" default-locale="en-US">
<info>
<title>Sort test</title>
<id>http://www.zotero.org/styles/sort-test</id>
<link href="http://www.zotero.org/styles/sort-test" rel="self"/>
<author>
<name>John Doe</name>
</author>
<category citation-format="numeric"/>
@aurimasv
aurimasv / CSE-citation-name.csl
Created July 10, 2014 02:37
CSE citation-name
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-US">
<!-- This style was edited with the Visual CSL Editor (http://steveridout.com/csl/visualEditor/) -->
<info>
<title>Council of Science Editors (citation-name)</title>
<title-short>CSE</title-short>
<id>http://www.zotero.org/styles/council-of-science-editors-citation-name</id>
<link href="http://www.zotero.org/styles/council-of-science-editors-citation-name" rel="self"/>
<link href="http://bcs.bedfordstmartins.com/resdoc5e/RES5e_ch11_o.html" rel="documentation"/>
<author>