Skip to content

Instantly share code, notes, and snippets.

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by
@owlpro
owlpro / Editable-Example.html
Last active December 25, 2019 05:32
Easy Ajax Edit - laravel (Jquery plugin)
<!DOCTYPE html>
<html>
<head>
<title>Editable - Example</title>
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="editable.js"></script>
</head>
<body>
<!-- canEdit Attr just is a seletor -->
<div canEdit table="posts" column="title" column-id="1">Title</div>
@owlpro
owlpro / waitolor.js
Created December 24, 2019 05:57
a simple package for element waiting mode
/**
* Waitolor Package
* Author: Mahdi Amiri
* Add simple waiting contents to element
* options :
* image [https://www.rostaaustralia.com.au/wGlobal/wGlobal/layout/images/transparent-google-loader-gif-4.gif]
* message [empty]
*/
(function ($) {
$.fn.waitolor = function (options = {}) {
@owlpro
owlpro / ZMQ-webSocket.html
Last active December 25, 2019 05:32
ZMQ & Ratchet webSocket Connection
<!DOCTYPE html>
<html>
<head>
<title>webSocket Example</title>
<script type="text/javascript" src="autobahn.js"></script>
</head>
<body>
<script type="text/javascript">
const Socket = new ZMQWS({
host: '127.0.0.1',
@owlpro
owlpro / webSocket.html
Last active December 25, 2019 05:32
Easy WebSocket Connection - JS
<!DOCTYPE html>
<html>
<head>
<title>webSocket Example</title>
</head>
<body>
<script type="text/javascript">
const Socket = new webSocket({
host: '127.0.0.1',
port: 8080,