Skip to content

Instantly share code, notes, and snippets.

Darkside73

Block or report user

Report or block Darkside73

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Darkside73
Darkside73 / DateRangePicker.vue
Last active Sep 20, 2019
Vuetify DateRangePicker
View DateRangePicker.vue
<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 Jun 20, 2018
ubuntu xdg-open acestream
View acestream.desktop
# ~/.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
View Preferences.sublime-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 Dec 15, 2016
Vue UI notifications
View component.vue
<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>
View gist:3905c264146632f951998c29b4e1e0fa
{
"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",
View .gitconfig
[color]
diff = auto
status = auto
branch = auto
[color "branch"]
current = green
local = yellow
remote = magenta
[color "diff"]
meta = yellow
View sysinfo.md

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 Jan 14, 2016
Webpack dev server with hot reload
View webpack.server.js
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'
View User.php
<?php
class User extends UserAbstract {
public $old_password;
public $auth_hash;
public $usernameOnForum;
@Darkside73
Darkside73 / gist:1f1a34e13d585fddeb20
Created Mar 18, 2015
Ruby mixin example with configurable methods
View gist:1f1a34e13d585fddeb20
require 'active_support'
module Connectable
extend ActiveSupport::Concern
def connect
puts "connecting with #{self.class.params}"
end
class_methods do
You can’t perform that action at this time.