Skip to content

Instantly share code, notes, and snippets.

View GeorgeBekh's full-sized avatar

George Bekh-Ivanov GeorgeBekh

View GitHub Profile
@GeorgeBekh
GeorgeBekh / build.gradle
Created May 7, 2019 13:45
Cacheable exec task
task webpack(type: Exec) {
outputs.cacheIf { true }
inputs.file("package-lock.json")
inputs.dir("app")
// NOTE: Add inputs.file("webpack.config.js") for projects that have it
outputs.dir("$buildDir/js")
commandLine "$projectDir/node_modules/.bin/webpack", "app/index.js", "$buildDir/js/bundle.js"
}
[global]
map to guest = Bad User
log file = /var/log/samba/%m
log level = 1
[guest]
# This share allows anonymous (guest) access
# without authentication!
eval (ssh-agent -c) > /dev/null
function dps
docker ps $argv
end
function gp
git pull $argv
end
function gps
git push $argv
<?php
echo "HELLo World!";
@GeorgeBekh
GeorgeBekh / harmonograph
Created April 29, 2017 21:50
Draws Lissajous curves
#!/usr/bin/python
from PIL import Image, ImageFont, ImageDraw
from random import randint
import math
import gifmaker
import copy
isAnimation=False