Skip to content

Instantly share code, notes, and snippets.

View NickTaporuk's full-sized avatar
🎯
Focusing

Mykola Kuropatkin NickTaporuk

🎯
Focusing
View GitHub Profile

Keybase proof

I hereby claim:

To claim this, I am signing this object:

# Reference:
https://www.cloudgear.net/blog/2015/5-minutes-kubernetes-setup/
# install homebrew and cask
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# install virtualbox
brew cask install virtualbox
# install dockertoolbox
<?php
/**
* Class ImageHelper
*
* Simple class to manage image load, save and resize
*
* Usage:
*
* $image = new ImageHelper;
<?php
/*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
@NickTaporuk
NickTaporuk / iso639.js
Last active August 29, 2015 14:06 — forked from Loddan/iso639.js
#!/usr/bin/env node
var jsdom = require('jsdom');
var wikipedia = 'http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes';
var jquery = 'http://code.jquery.com/jquery.js';
jsdom.env(wikipedia, [jquery], function (errors, window) {
var $ = window.$;
var tds = $('table[class="wikitable sortable"] > tr > td');
if (tds.size() % 10 != 0) {
@NickTaporuk
NickTaporuk / pyforge.pyx
Last active August 29, 2015 14:06 — forked from c58/pyforge.pyx
# encoding: utf-8
# cython: profile=True
# cython: wraparound=False
# cython: boundscheck=False
# cython: infer_types=True
# filename: pyforge.pyx
from libc.stdlib cimport malloc, free, rand
cimport cython