Skip to content

Instantly share code, notes, and snippets.

View protoEvangelion's full-sized avatar
😋
joyful

R.G. protoEvangelion

😋
joyful
View GitHub Profile
### Keybase proof
I hereby claim:
* I am protoevangelion on github.
* I am protoevangelion (https://keybase.io/protoevangelion) on keybase.
* I have a public key ASAp61YCGgalcr3vbdvR8lKoi2w_K4ColkM_e1VnZ9n2jAo
To claim this, I am signing this object:
@protoEvangelion
protoEvangelion / Navigation.js
Created August 9, 2017 21:55
Rendering children elements
// Navigation Component
class Navigation extends Component {
render() {
return (
<div style={coolNavigationStyles}>
{this.props.children}
</div>
)
}
}
window.navigation = new metal.Navigation({
activeClass: 'reading',
completedClass: 'read',
element: '.reading-progress',
offset: 20
});
import Component from 'metal-jsx';
import ReadingProgress from './ReadingProgress';
window.ReadingProgress = node => {
return Component.render(<ReadingProgress />, node);
}
@protoEvangelion
protoEvangelion / branchDescriptions.js
Created October 19, 2017 15:32
Gets git branch descriptions with js
const getBranchDescription = () => (
getOutput('git branch')
.split('\n')
.map(branch => (
branch.indexOf('*') === 0
? branch.slice(1).trim()
: branch.trim()
))
.map(branch => (
getOutput(`git config branch.${branch}.description`)
@protoEvangelion
protoEvangelion / dark.md
Last active November 21, 2018 15:20 — forked from a7madgamal/dark.md
Dark Dracula mode for Slack on MacOS

Inspired by: https://gist.github.com/a7madgamal/c2ce04dde8520f426005e5ed28da8608

  1. Close slack
  2. Open this file /Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js
  3. Append this to it
document.addEventListener('DOMContentLoaded', function() {
  $.ajax({
 url: 'https://cdn.rawgit.com/protoEvangelion/45cefed63be646fab34a9b9c117888f5/raw/2fa5d6527f8e15f7cd4208b984c9ec28353a9609/slack-dracula.css',
@protoEvangelion
protoEvangelion / slack-dracula.css
Last active September 26, 2018 17:02
Slack Dark theme
body { background: #202020; color: #f8f8f2; }
a { color: #bd93f9; }
a:link, a:visited { color: #bd93f9; }
a:hover, a:active, a:focus { color: #8be9fd; }
hr { border-bottom: 1px solid #44475a; border-top: 1px solid #202020; }
@protoEvangelion
protoEvangelion / constructText.js
Last active January 31, 2019 21:20
Kindle Copy Text
[...temp1.children].reduce((accum, current) => {
return `${accum} ${current.innerText}`
}, '')
location ~ ^/(de/|de_DE/|en/|en_AU/|en_US/|es/|es_ES/|fr/|fr_FR/|it/|it_IT/|ja/|ja_JP/|pt/|pt_BR/|zh/|zh_CN/)?welcome-learn/?$ {
rewrite ^ https://dev.liferay.com/develop/portal permanent;
}