Skip to content

Instantly share code, notes, and snippets.

View royteusink's full-sized avatar

Roy Teusink royteusink

View GitHub Profile
@royteusink
royteusink / styles.less
Last active January 13, 2017 11:47
Atom.io personal stylesheet
// Makes the scrollbar a little bit better to see.
atom-text-editor.editor ::-webkit-scrollbar-thumb {
background: #666 !important;
}
// Bidirectional text is broken, so let's pretend it doesn't exist.
atom-text-editor.editor .line {
unicode-bidi: bidi-override;
}
@royteusink
royteusink / change-sequence.js
Last active October 7, 2020 06:32
immutable.js - Move item in List to a specific location (change sequence, reorder)
if (action.toindex < 0) return state;
var olditem = state.get(action.index);
var newlist = state.delete(action.index).insert(action.toindex, olditem);
return newlist;