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
| const R = require('ramda') | |
| // input: an mjml tree, | |
| // output: head elements are moved to head | |
| const isHead = R.propEq('tagName', 'mj-head') | |
| function iterateTree(acc, val) { | |
| return R.compose( | |
| R.when( |
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
| [editor] | |
| # Editor minimum width (>= 800) | |
| width = 800 | |
| # Editor minimum height (>= 600) | |
| height = 600 | |
| # Gonvim copy the yank text to clipboad | |
| clipboard = false | |
| # Editor font-family, font-size, linespace. | |
| fontFamily = "Hack Bold" | |
| fontsize = 13 |
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
| set nonumber | |
| set ignorecase | |
| set smartcase | |
| " set relativenumber | |
| set expandtab | |
| set tabstop=2 | |
| set shiftwidth=2 | |
| set foldmethod=syntax | |
| set nocompatible | |
| set inccommand=nosplit |
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
| var tyme = Application('Tyme2') | |
| var myproject = tyme.projects().filter(p => p.name() === 'MY PROJECT')[0] | |
| getSpendTimes = t => t.taskrecords().reduce((acc,curr) => acc + curr.timedduration(),0) | |
| getSubTimes = t => t.subtasks().reduce((acc,curr) => acc + getSpendTimes(curr),0) | |
| getTotalSpendTimes = t => getSpendTimes(t) + getSubTimes(t) |
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
| <?xml version="1.0"?> | |
| <root> | |
| <appdef> | |
| <appname>QUIVER</appname> | |
| <equal>com.happenapps.Quiver</equal> | |
| </appdef> | |
| <!-- activate safari --> | |
| <vkopenurldef> | |
| <name>KeyCode::VK_OPEN_URL_SHELL_activate_safari</name> | |
| <url type="shell"> |
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
| javascript:(function(){var p=document.createElement("p");p.innerHTML="<strong>Loading…</strong>";p.id="loadingp";p.style.padding="20px";p.style.background="#fff";p.style.left="20px";p.style.top=0;p.style.position="fixed";p.style.zIndex="9999999";p.style.opacity=".85";document.body.appendChild(p);document.body.appendChild(document.createElement("script")).src="https://gist.github.com/ttscoff/6109434/raw/Bullseye.js?x="+(Math.random());})(); |