Skip to content

Instantly share code, notes, and snippets.

View donni106's full-sized avatar

Daniel donni106

View GitHub Profile
@donni106
donni106 / railscasts-vscode-integrated-terminal.json
Created July 1, 2022 13:06
Converted iTerm2 railscasts color scheme to use in VSCode integrated terminal as well.
"workbench.colorCustomizations": {
"terminal.background": "#1d1d1d",
"terminal.foreground": "#ebe7e3",
"terminalCursor.background": "#393939",
"terminalCursor.foreground": "#ebe7e3",
"terminal.ansiBlack": "#393939",
"terminal.ansiBlue": "#7facca",
"terminal.ansiBrightBlack": "#6d7891",
"terminal.ansiBrightBlue": "#dcd8d3",
"terminal.ansiBrightCyan": "#c9a46b",
@donni106
donni106 / defaultStackNavigatorConfig.js
Last active September 26, 2018 14:24
[React Navigation] A defaultStackNavigatorConfig with transparent container styles setting up a screenInterpolator without shadow offset.
import { I18nManager } from 'react-native';
import CardStackStyleInterpolator from 'react-navigation/src/views/StackView/StackViewStyleInterpolator';
import getSceneIndicesForInterpolationInputRange from 'react-navigation/src/utils/getSceneIndicesForInterpolationInputRange';
// a new own screenInterpolator with only a small change to CardStackStyleInterpolator.forHorizontal
const forHorizontalWithoutOffset = (props) => {
const { layout, position, scene } = props;
if (!layout.isMeasured) {
return CardStackStyleInterpolator.forInitial;