Skip to content

Instantly share code, notes, and snippets.

View maxov's full-sized avatar

Max Ovsiankin maxov

View GitHub Profile
@maxov
maxov / -
Created December 8, 2014 17:43
public interface Lightning extends WeatherEffect {
public interface WeatherEffect extends Entity {
public interface Boat extends Entity {
public interface Minecart extends Entity {
public interface MinecartChest extends MinecartContainer {
@maxov
maxov / -
Created December 8, 2014 17:46
<_sre.SRE_Match object at 0x10cd6c8a0>
<_sre.SRE_Match object at 0x10cd6c8a0>
<_sre.SRE_Match object at 0x10cd6c8a0>
<_sre.SRE_Match object at 0x10cd6c8a0>
<_sre.SRE_Match object at 0x10cd6c8a0>
<_sre.SRE_Match object at 0x10cd6c8a0>
<_sre.SRE_Match object at 0x10cd6c8a0>
<_sre.SRE_Match object at 0x10cd6c8a0>
<_sre.SRE_Match object at 0x10cd6c8a0>
<_sre.SRE_Match object at 0x10cd6c8a0>
@maxov
maxov / -
Created December 8, 2014 19:06
{'Ageable': ['Agent'],
'Agent': ['Living'],
'Animal': ['Ageable'],
'ArmorStand': ['Living'],
'Arrow': ['Projectile'],
'Bat': ['Agent'],
'Blaze': ['Monster'],
'Boat': ['Entity'],
'CaveSpider': ['Spider'],
'Chicken': ['Animal'],
@maxov
maxov / -
Created December 8, 2014 19:08
{
"Sheep": [
"Animal"
],
"Living": [
"Entity"
],
"Giant": [
"Monster"
],
@maxov
maxov / -
Created December 8, 2014 19:42
{'Ageable': ['Animal', 'Villager', 'Zombie'],
'Agent': ['Golem',
'EnderDragon',
'Monster',
'Tameable',
'Ageable',
'Bat',
'Human'],
'Animal': ['Sheep',
'Horse',
@maxov
maxov / -
Created December 9, 2014 06:49
--- file1.txt
+++ file2.txt
@@ -1,6 +1,6 @@
a
-b
+banana
+added
c
-d
-e
@maxov
maxov / -
Created December 13, 2014 05:33
var gulp = require('gulp');
var gutil = require('gulp-util');
var bower = require('main-bower-files');
var rimraf = require('gulp-rimraf');
var uglify = require('gulp-uglify');
var minify = require('gulp-minify-css');
var concat = require('gulp-concat');
var templates = require('gulp-jade');
var nodemon = require('gulp-nodemon');
var stylus = require('gulp-stylus');
abstract class Equation {
abstract double get(double x);
public Equation compose(Equation that) {
return new Equation {
double get(double x) {
this.get(that.get(x));
}
}
23:02 gratimax: turt2live: ehh
23:02 gratimax: here's a very high-level overview of docker:
23:03 gratimax: it uses libcontainer, which allows you to run virtual linux containers with very little overhead
23:03 gratimax: now, it has images which are very much like git commits - they're versions of an entire machine with filesystem and OS and such
23:03 gratimax: we "run" an image to get a container, which is like the VM
23:04 gratimax: but here's the really cool thing
23:04 gratimax: you can pull an image from the docker repository(takes a few minutes), but then running containers out of it takes seconds
23:04 gratimax: so there's no "building" if you already have an image that you want to run
23:05 gratimax: however, you will probably use a Dockerfile to build a new image to run your PRs in, but after the image is built you can deploy it to the docker hub and spin up containers very easily
23:06 gratimax: vagrant does some similar stuff, but it does use a VM which I consider as unecessary overhead compared t
@maxov
maxov / -
Created December 25, 2014 19:40
sphinx-intl update -p ../build/locale -l bn -l de -l fa -l hr -l ja -l mk -l pl -l si -l tr -l zh_TW -l ca -l es -l fi -l hu -l ko -l nb_NO -l pt_BR -l sk -l uk_UA -l cs -l et -l fr -l id -l lt -l ne -l pt_PT -l sl -l vi -l da -l eu -l he -l it -l lv -l nl -l ru -l sv -l zh_CN