Skip to content

Instantly share code, notes, and snippets.

View Riu's full-sized avatar
:octocat:
Pay For Done + Hanariu

Radek Muszyński Riu

:octocat:
Pay For Done + Hanariu
View GitHub Profile
@Riu
Riu / example.conf
Created January 3, 2019 21:04 — forked from hyjk2000/example.conf
Nginx Virtual Host for PhalconPHP with Gzip and Expires
server {
listen 80;
server_name example.com;
# server_name _; # if no server name
root /usr/share/nginx/www/example.com/public;
index index.php index.html index.htm;
# rewrite to Phalcon bootstrap
try_files $uri $uri/ @rewrite;
@Riu
Riu / ripple.vue
Last active September 10, 2017 00:32
Directive v-ripple for vue
<script>
export default {
bind: function (el, argopts) {
el.addEventListener('click', function (event) {
ripple(event, el, argopts)
})
function ripple (e, argopts) {
let opts = Object.assign({ele: e.target, type: 'hit', bgc: 'rgba(0, 0, 0, 0.15)'}, argopts)
let target = opts.ele
if (target) {
@Riu
Riu / gist:cb341e81e9856dfb5be2a44ef0baa6ba
Created November 27, 2016 17:07
Temporary solution for sql mode - MySQL 5.6 and older
SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''))