Skip to content

Instantly share code, notes, and snippets.


Valentin Radulescu RadValentin

View GitHub Profile
RadValentin /
Last active Nov 25, 2019
Project Ideas

Biohack Tracker

I'm constantly experimenting with different biohacks: nootropics, diets, anti-aging, etc. I'd like to have a way of tracking and comparing results at different stages.

Core functionality

  • One timeline with variable scale days-weeks-months that goes from left to right
  • Each experiment is a line (from - to) and lines are stacked vertically
  • Experiment information
    • on hover - specific interval details (ex: notes for day 25, notes for week 1)
  • on select - all interval details (list of all notes)
RadValentin / 7-lines-of-code.json
Last active Dec 21, 2017
Make billions with these seven lines of code (Visual Studio Code HTML Snippet)
View 7-lines-of-code.json
"$9.2 Billion Startup": {
"prefix": "disrupt",
"body": [
"aliqua. Ut",
RadValentin /
Last active Sep 8, 2022
Solve `yarn.lock` or `package.json` conflicts without losing your mind

NOTE: This guide is ONLY for devs who don't want to edit their yarn.lock file by hand. If you don't care about that please carry on.

So you've pulled the latest master

git checkout master
git pull
RadValentin /
Created Mar 4, 2017
How to stop ESLint/XO CRLF linebreak-style warnings in Windows

If you clone a git repo that enforces a linebreak-style: unix on a Windows machine then ESLint will probably throw the warning below even if you've made no local changes.

Expected linebreaks to be LF but found CRLF.  linebreak-style

In order to fix this you'll need to tell git to default to Unix style line endings rather that OS defaults.

git config --global core.eol lf
git config --global core.autocrlf input
RadValentin / Preferences.sublime-settings
Last active Aug 29, 2015
Common Sense Sublime Text Settings
View Preferences.sublime-settings
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"ensure_newline_at_eof_on_save": true,
"font_size": 12,
RadValentin / changelog-blog
Last active Aug 29, 2015
Changelog Blog Entry
View changelog-blog
#github-changelog a robust notification system built on top of GitHub
##What is it?
Building a large web app that needs to be updated frequently can sometimes present interesting challenges. When pushing out an update do you force your users to reload the entire app so they're always running the latest version? Or do you keep the update silent and hope everything works out somehow?
Obviously the first version is better but not perfect. Ideally you'd want your users to know about the update but they should be able to reload at their own will without fear of losing state.
This is where [github-changelog]( comes in. By using this simple jQuery plugin, every time an issue is closed on your GitHub repo, your users will get notified.
![changelog demo](
View gist:f11d5af484179d711d8c


We need a way to get the title and label for issues on a given branch on GitHub that are newer than a provided timestamp and that have a certain label(different from the one being returned)


  • Methods that integrate with the GitHub API and that will filter and extract titles and labels according to the provided timestamp, branch and label


View gist:e8bb45aa7c6439b30c90


Build LESS styling to support HTML structure so that it can be integrated with the plugin


  • LESS files and the generated CSS for styling and positioning the notification list


We'll need to create styling for the following:

  1. A notification button with a badge to show the number of new notifications
  2. A notification list that can be positioned according to it's css class with 4 main positions: top, bottom, left and right. Each of these positions can be modified by providing a second class: pull-left and pull-right for vertical positions and pull-top for horizontal positions. The purpose here is to make the list usable in any positioning scenario.
RadValentin / gist:89b0fd3b8f1ffdc15c85
Last active Aug 29, 2015
changelog wiki: html structure
View gist:89b0fd3b8f1ffdc15c85

HTML Structure

Changelog Wrapper

The widget is contained within an element with the class .changelog-wrapper

<div class="changelog-wrapper">

Notification button

View gist:1a73661be9a1769f87bd



As a user
I want to be able to get notifications about new changes to an application
So that I can stay informed and be able to reload the application at my own will