Skip to content

Instantly share code, notes, and snippets.

.mybtn{color:red}
<div data-tabs>
<div data-tab='one'>Tab1</div>
<div data-tab='t'>Tab2</div>
<div data-tab='y'>Tab3</div>
</div>
<div data-panes>
<div data-pane='one'>Pane1</div>
<div data-pane='t'>something
<div data-tabs>
@persianphilosopher
persianphilosopher / index.pug
Created March 28, 2019 00:11
[Pure JS] - Ripple effect
a.btn.btn-green(href="#", data-animation="ripple") Click me
a.btn.btn-blue(href="#", data-animation="ripple") Click me
@persianphilosopher
persianphilosopher / index.html
Created March 19, 2019 18:41
MetisMenu 2.6.0 - Compare to default bootstrap
<div class="container">
<!-- MetisMenu test -->
<div class="container">
<nav class="sidebar-nav">
<ul class="metismenu" id="menu">
<li class="active">
<a href="#">
<span class="sidebar-nav-item-icon fa fa-github fa-lg"></span>
<span class="sidebar-nav-item">metisMenu</span>
</a>
@persianphilosopher
persianphilosopher / Deluge-with-Deluge-Web-UI.md
Created February 8, 2019 07:35 — forked from nosmall/Deluge-with-Deluge-Web-UI.md
Deluge with Deluge-Web-UI on Ubuntu 16.04

Deluge with Deluge-Web on Ubuntu 16.04 (lazy guide)

sudo su
adduser deluge --shell /dev/null --disabled-password --disabled-login
add-apt-repository ppa:deluge-team/ppa \
@persianphilosopher
persianphilosopher / lame.sh
Created January 6, 2019 22:13 — forked from klappradla/lame.sh
Using lame command line tool (e.g. convert flac to mp3
# Convert .flac to .mp3 (lossless)
for f in *.flac; do ffmpeg -i "$f" -aq 1 "${f%flac}mp3"; done
# Convert .flac to .mp3, compress to ~ 120k
for f in *.flac; do ffmpeg -i "$f" -aq 5 "${f%flac}mp3"; done
# Convert .flac to mp3, compress to ~ 128k
for f in *.flac; do ffmpeg -i "$f" -b:a 128k "${f%flac}mp3"; done
# Convert .flac to mp3, compress to variable 190k
@persianphilosopher
persianphilosopher / encode.sh
Created January 5, 2019 19:07 — forked from lisamelton/encode.sh
This is the shell script I use to drive HandBrakeCLI to re-encode video files in a format suitable for playback on Apple TV, Roku 3, iOS, OS X, etc.
#!/bin/bash
# encode.sh
#
# Copyright (c) 2013 Don Melton
#
# This version published on June 7, 2013.
#
# Re-encode video files in a format suitable for playback on Apple TV, Roku 3,
# iOS, OS X, etc.
[{
"slug": "first/instance",
"content": "Se bella giu satore, Je notre so cafore, Je notre si cavore, Je la tu la ti la twah"
},
{
"slug": "second/one",
"content": "La spinash o la bouchon,Cigaretto Portabello,Si rakish spaghaletto,Ti la tu la ti la twah"
},
// ---------------------------------
// ---------- Plugin Name ----------
// ---------------------------------
// Brief plugin description
// ------------------------
/*
The semi-colon before the function invocation is a safety net against
concatenated scripts and/or other plugins which may not be closed properly.
<div class="remote" id='one'>
one
</div>
<div class="remote" id='two'>
two
</div>