Skip to content

Instantly share code, notes, and snippets.

View barsukov's full-sized avatar

Wowa Barsukov barsukov

  • Berlin, Germany
View GitHub Profile
@barsukov
barsukov / awesome-producing-music.md
Last active May 15, 2018 20:04
Good links for start producing EDM music
@barsukov
barsukov / sock_merchant_elixir.ex
Created December 27, 2016 14:30
Hacker rank sock-merchant solution for elixir.
https://www.hackerrank.com/challenges/sock-merchant
defmodule Solution do
def duplicate_socks() do
read = IO.read :all
[_ | result] = String.split(read, ~r/\W/, trim: true)
#IO.write(:stdio, result)
* https://habrahabr.ru/post/212323/
* http://eax.me/burnout/
* http://blogerator.ru/page/pochemu-vsjo-taki-ne-stoit-programmirovat-po-nocham-zdorovie-melatonin-rabota-nochju-rak-bolezni-programmista
* https://megamozg.ru/post/3692/
* https://megamozg.ru/post/3694/
* https://habrahabr.ru/post/239793/
* https://habrahabr.ru/company/edison/blog/268977/
* https://geektimes.ru/post/262344/
burnout prevention: https://gist.github.com/ypetya/7a9f4ed3621c3c20a762
@barsukov
barsukov / web-servers.md
Created June 16, 2016 15:49 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
defmodule Lucas do
use Application
# Import helpers for defining supervisors
import Supervisor.Spec
def start(_type, _args) do
IO.puts "starting"
# This time, we don't pass any argument because
# the argument will be given when we start the child
children = [
@barsukov
barsukov / mobux.txt
Last active April 1, 2016 15:34
Migrate from observable to Redux good links.
1) Good testing tool for react http://airbnb.io/enzyme/
2) Facebook immutable helpers: https://facebook.github.io/react/docs/update.html
3) Article collection: http://redux.js.org/docs/introduction/Ecosystem.html
4) Very good article of interface architecture types: http://staltz.com/unidirectional-user-interface-architectures.html
5) Good redux diagram https://voice.kadira.io/rethinking-redux-f1e96daba60c#.7s513o4py
6) React.js Conf 2016 - Jamison Dance - Rethinking All Practices: Building Applications in Elm:
https://www.youtube.com/watch?v=txxKx_I39a8
Our CMS project is here: www.scrivito.com
Github: https://github.com/barsukov
image = new Image()
image.crossOrigin = "Anonymous"
image.src = 'here is url from server'
image.onload = ->
kit = new ImglyKit(
renderer: "canvas"
assetsUrl: "/assets"
image: image
container:$(".image_kit_start")
ui:
@barsukov
barsukov / mkdir.sh
Last active August 29, 2015 14:27
Recursive mkdir use -p flag instead of -R
mkdir -p foo/bar/zoo/andsoforth
p means parent :)
@barsukov
barsukov / gist:c3fa7f5973c40ca8e8cd
Created June 8, 2015 09:45
trouble shouting with webpack and rails
1) rails new turbo
2) rails g scaffold post
3) rake db:migrate
IN YO MAN
mkdir client && cd $_
yo react-webpack
1) create client-bundle.js
2) webpack-dev-server/client?http://localhost:8000 in webpack
react hot loader integration
config.action_controller.asset_host = Proc.new do |source|
if source =~ /jsfile/
"http://localhost:8080/"
end
end