Skip to content

Instantly share code, notes, and snippets.

@Darkside73
Darkside73 / keybindings.json
Created July 25, 2023 09:29
vscode keybindings
[
{
"key": "ctrl+cmd+p",
"command": "workbench.action.quickOpenRecent"
},
{
"key": "alt+cmd+r",
"command": "-revealFileInOS",
"when": "!editorFocus"
},
@Darkside73
Darkside73 / Default (Linux).sublime-keymap
Created August 27, 2020 10:36
Sublime Text 3 key bindings for Emmet 2
[
{
"keys": ["ctrl+shift+'"],
"command": "emmet_rename_tag"
},
{
"keys": ["ctrl+shift+g"],
"command": "emmet_wrap_with_abbreviation"
},
{
@Darkside73
Darkside73 / DateRangePicker.vue
Last active February 26, 2020 12:31
Vuetify DateRangePicker (obsolete since Vuetify has built-in range picker)
<template>
<v-date-picker
class="date-range-picker" :value="value" @input="onInput"
color="light-blue" event-color="light-blue lighten-4 date-in-range" :events="selectedRange"
:allowed-dates="allowedDates" no-title multiple
>
<slot></slot>
</v-date-picker>
</template>
@Darkside73
Darkside73 / acestream.desktop
Created June 20, 2018 13:50
ubuntu xdg-open acestream
# ~/.local/share/applications/acestream.desktop
[Desktop Entry]
Version=1.0
Name=Acestream
GenericName=Media player
Comment=Open Acestream links with VLC Media Player
Type=Application
StartupNotify=false
Exec=/snap/bin/acestreamplayer %u
TryExec=/snap/bin/acestreamplayer
@Darkside73
Darkside73 / Preferences.sublime-settings
Created February 20, 2018 16:34
sublime text base settings
{
"caret_style": "phase",
"default_line_ending": "unix",
"detect_slow_plugins": false,
"ensure_newline_at_eof_on_save": true,
"folder_exclude_patterns":
[
".git",
".svn",
".sass-cache",
@Darkside73
Darkside73 / component.vue
Created December 15, 2016 14:56
Vue UI notifications
<template>
<transition name="fade" enter-active-class="fadeInDown" leave-active-class="fadeOutDown">
<div :class="cssClass" class="ui animated message">
<i @click="triggerClose(notification)" class="close icon"></i>
<div v-if="notification.title" class="header">{{notification.title}}</div>
<p>{{notification.text}}</p>
</div>
</transition>
</template>
@Darkside73
Darkside73 / gist:3905c264146632f951998c29b4e1e0fa
Created November 9, 2016 14:40
Sublime Text 3 user settings
{
"caret_style": "phase",
"color_scheme": "Packages/RailsCasts Colour Scheme/RailsCastsColorScheme.tmTheme",
"default_line_ending": "unix",
"detect_slow_plugins": false,
"ensure_newline_at_eof_on_save": true,
"file_exclude_patterns":
[
".tags*",
"*.pyc",
[user]
name = darkside
email = andrey.garbuz@gmail.com
[color]
diff = auto
status = auto
branch = auto
[color "branch"]
current = green
local = yellow

Ubuntu 15.10 npm 3.5.3 node 4.2.6

test-sourcemaps@ /tmp/my-project
├─┬ babel-core@6.4.5
│ ├─┬ babel-code-frame@6.3.13
│ │ ├── js-tokens@1.0.2
│ │ ├─┬ line-numbers@0.2.0
@Darkside73
Darkside73 / webpack.server.js
Created January 14, 2016 08:22
Webpack dev server with hot reload
const webpack = require('webpack');
const WebpackDevServer = require('webpack-dev-server');
const config = require('../webpack.config');
const hotWebpackPort = process.env.HOT_WEBPACK_PORT || 3500;
config.output.publicPath = `https://localhost:${hotWebpackPort}/assets/`;
['entry1', 'entry2'].forEach(entryName => {
config.entry[entryName].push(
'webpack-dev-server/client?https://localhost:' + hotWebpackPort,
'webpack/hot/only-dev-server'